@Immutable public abstract class Nc4ChunkingStrategy extends Object implements Nc4Chunking
Nc4Chunking.Strategy| Modifier | Constructor and Description |
|---|---|
protected |
Nc4ChunkingStrategy(int deflateLevel,
boolean shuffle) |
| Modifier and Type | Method and Description |
|---|---|
static Nc4Chunking |
factory(Nc4Chunking.Strategy type,
int deflateLevel,
boolean shuffle) |
protected Attribute |
getChunkAttribute(Variable v) |
long[] |
getChunking(Variable v) |
int |
getDeflateLevel(Variable.Builder<?> vb)
Get the deflation level.
|
boolean |
isShuffle(Variable.Builder<?> vb)
Set true to turn shuffling on which may improve compression.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeChunking, isChunked, 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.Builder<?> vb)
Nc4ChunkinggetDeflateLevel in interface Nc4Chunkingpublic boolean isShuffle(Variable.Builder<?> vb)
Nc4ChunkingisShuffle in interface Nc4Chunking@Nullable public long[] getChunking(Variable v)
getChunking in interface Nc4Chunking