@Immutable public abstract class Nc4ChunkingStrategy extends java.lang.Object implements Nc4Chunking
Nc4Chunking.Strategy| Modifier | Constructor and Description |
|---|---|
protected |
Nc4ChunkingStrategy(int deflateLevel,
boolean shuffle) |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
computeChunkingFromAttribute(Variable v) |
static Nc4Chunking |
factory(Nc4Chunking.Strategy type,
int deflateLevel,
boolean shuffle) |
protected Attribute |
getChunkAttribute(Variable v) |
int |
getDeflateLevel(Variable v)
Get the deflation level.
|
boolean |
isShuffle(Variable v)
Set true to turn shuffling on which may improve compression.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeChunking, isChunkedprotected Nc4ChunkingStrategy(int deflateLevel,
boolean shuffle)
public static Nc4Chunking factory(Nc4Chunking.Strategy type, int deflateLevel, boolean shuffle)
type - Strategy typedeflateLevel - 0 corresponds to no compression and 9 to maximum compression,shuffle - true to turn shuffling on which may improve compression. This option is ignored unless a non-zero
deflation level is specified.public int getDeflateLevel(Variable v)
Nc4ChunkinggetDeflateLevel in interface Nc4Chunkingpublic boolean isShuffle(Variable v)
Nc4ChunkingisShuffle in interface Nc4Chunkingprotected int[] computeChunkingFromAttribute(Variable v)