@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) |
boolean |
isShuffle(Variable v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeChunking, isChunked
protected 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)
getDeflateLevel
in interface Nc4Chunking
public boolean isShuffle(Variable v)
isShuffle
in interface Nc4Chunking
protected int[] computeChunkingFromAttribute(Variable v)