public class DatasetAttributes extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DatasetAttributes.Builder |
static class |
DatasetAttributes.DatasetAttributesAdapter |
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCK_SIZE_KEY |
static String |
CODEC_KEY |
static String |
COMPRESSION_KEY |
protected static String |
compressionTypeKey |
static String |
DATA_TYPE_KEY |
static String |
DIMENSIONS_KEY |
static String[] |
N5_DATASET_ATTRIBUTES |
static String |
SHARD_SIZE_KEY |
| Constructor and Description |
|---|
DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType)
Constructs a DatasetAttributes instance with specified dimensions, block size, data type, and default codecs
|
DatasetAttributes(long[] dimensions,
int[] outerBlockSize,
DataType dataType,
BlockCodecInfo blockCodecInfo,
DataCodecInfo... dataCodecInfos) |
DatasetAttributes(long[] dimensions,
int[] outerBlockSize,
DataType dataType,
BlockCodecInfo blockCodecInfo,
DatasetCodecInfo[] datasetCodecInfos,
DataCodecInfo... dataCodecInfos) |
DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType,
DataCodecInfo... dataCodecInfos)
Constructs a DatasetAttributes instance with specified dimensions, block size, data type,
and single compressor with default codec.
|
DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType,
com.google.gson.JsonElement defaultValue,
BlockCodecInfo blockCodecInfo,
DatasetCodecInfo[] datasetCodecInfos,
DataCodecInfo... dataCodecInfos) |
public static final String DIMENSIONS_KEY
public static final String BLOCK_SIZE_KEY
public static final String SHARD_SIZE_KEY
public static final String DATA_TYPE_KEY
public static final String COMPRESSION_KEY
public static final String CODEC_KEY
public static final String[] N5_DATASET_ATTRIBUTES
protected static final String compressionTypeKey
public DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType,
com.google.gson.JsonElement defaultValue,
BlockCodecInfo blockCodecInfo,
DatasetCodecInfo[] datasetCodecInfos,
DataCodecInfo... dataCodecInfos)
public DatasetAttributes(long[] dimensions,
int[] outerBlockSize,
DataType dataType,
BlockCodecInfo blockCodecInfo,
DatasetCodecInfo[] datasetCodecInfos,
DataCodecInfo... dataCodecInfos)
public DatasetAttributes(long[] dimensions,
int[] outerBlockSize,
DataType dataType,
BlockCodecInfo blockCodecInfo,
DataCodecInfo... dataCodecInfos)
public DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType,
DataCodecInfo... dataCodecInfos)
dimensions - the dimensions of the datasetblockSize - the size of the blocks in the datasetdataType - the data type of the datasetdataCodecInfos - the codecs used encode/decode the datapublic DatasetAttributes(long[] dimensions,
int[] blockSize,
DataType dataType)
dimensions - the dimensions of the datasetblockSize - the size of the blocks in the datasetdataType - the data type of the datasetprotected BlockCodecInfo defaultBlockCodecInfo()
public long[] getDimensions()
public int getNumDimensions()
public int[] getChunkSize()
public int[] getBlockSize()
public com.google.gson.JsonElement getDefaultValue()
public boolean isSharded()
@Deprecated public Compression getCompression()
Compression is no longer a special case. Prefer to reference getDataCodecInfos()
Will return RawCompression if no compression is otherwise provided, for legacy compatibility.
Deprecated in favor of getDataCodecInfos().
public DataType getDataType()
protected <T> DatasetAccess<T> getDatasetAccess()
DatasetAccess for this dataset.DatasetAccess for this datasetpublic Nesting.NestedGrid getNestedBlockGrid()
NestedGrid for this dataset, from which block and
shard sizes are accessible.public BlockCodecInfo getBlockCodecInfo()
public DataCodecInfo[] getDataCodecInfos()
public DatasetCodecInfo[] getDatasetCodecInfos()
public String relativeBlockPath(long... position)
public static DatasetAttributes.Builder builder(long[] dimensions, DataType dataType)
public static DatasetAttributes.Builder builder(DatasetAttributes attributes)
protected static int[] defaultBlockSize(long[] dimensions)
public static DatasetAttributes.DatasetAttributesAdapter getJsonAdapter()
Copyright © 2017–2026 Saalfeld Lab. All rights reserved.