public class ZarrV3KeyValueReader extends org.janelia.saalfeldlab.n5.N5KeyValueReader
org.janelia.saalfeldlab.n5.N5Reader.Version| Modifier and Type | Field and Description |
|---|---|
protected HashMap<org.janelia.saalfeldlab.n5.DatasetAttributes,ZarrV3DatasetAttributes> |
datasetAttributesMap |
static String |
DEFAULT_DIMENSION_SEPARATOR |
protected String |
dimensionSeparator |
static org.janelia.saalfeldlab.n5.N5Reader.Version |
VERSION |
static String |
ZARR_KEY |
ATTRIBUTES_JSON, cacheMeta, gson, keyValueAccess, uriNO_VERSION, VERSION_KEY| Modifier | Constructor and Description |
|---|---|
|
ZarrV3KeyValueReader(boolean checkVersion,
org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess,
String basePath,
com.google.gson.GsonBuilder gsonBuilder,
boolean cacheMeta)
Opens an
ZarrV3KeyValueReader at a given base path with a custom
GsonBuilder to support custom attributes. |
protected |
ZarrV3KeyValueReader(boolean checkVersion,
org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess,
String basePath,
com.google.gson.GsonBuilder gsonBuilder,
boolean cacheMeta,
boolean checkRootExists) |
|
ZarrV3KeyValueReader(org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess,
String basePath,
com.google.gson.GsonBuilder gsonBuilder,
boolean cacheMeta)
Opens an
ZarrV3KeyValueReader at a given base path with a custom
GsonBuilder to support custom attributes. |
cacheMeta, getCache, getGson, getKeyValueAccess, getURI, registerGsonclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdatasetExists, existsFromContainer, getAttributesFromContainer, getDatasetAttributes, groupExists, hasDatasetAttributes, isDatasetFromContainer, list, listFromContainer, newCache, normalGetDatasetAttributesabsoluteAttributesPath, absoluteGroupPath, blockExists, readBlock, readChunk, readChunkslistAttributesclose, deepList, deepList, deepList, deepList, deepList, deepListDatasets, deepListDatasets, deepListDatasets, deepListDatasets, deepListHelper, getGroupSeparator, groupPath, readSerializedBlockprotected HashMap<org.janelia.saalfeldlab.n5.DatasetAttributes,ZarrV3DatasetAttributes> datasetAttributesMap
public static final org.janelia.saalfeldlab.n5.N5Reader.Version VERSION
public static final String ZARR_KEY
public static final String DEFAULT_DIMENSION_SEPARATOR
protected String dimensionSeparator
public ZarrV3KeyValueReader(boolean checkVersion,
org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess,
String basePath,
com.google.gson.GsonBuilder gsonBuilder,
boolean cacheMeta)
throws org.janelia.saalfeldlab.n5.N5Exception
ZarrV3KeyValueReader at a given base path with a custom
GsonBuilder to support custom attributes.checkVersion - perform version checkkeyValueAccess - basePath - N5 base pathgsonBuilder - the gson buildercacheMeta - cache attributes and meta data
Setting this to true avoids frequent reading and parsing of
JSON
encoded attributes and other meta data that requires accessing
the
store. This is most interesting for high latency backends.
Changes
of cached attributes and meta data by an independent writer
will
not be tracked.org.janelia.saalfeldlab.n5.N5Exception - if the base path cannot be read or does not exist,
if the N5 version of the container is not compatible with
this
implementation.public ZarrV3KeyValueReader(org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess, String basePath, com.google.gson.GsonBuilder gsonBuilder, boolean cacheMeta) throws org.janelia.saalfeldlab.n5.N5Exception
ZarrV3KeyValueReader at a given base path with a custom
GsonBuilder to support custom attributes.keyValueAccess - basePath - N5 base pathgsonBuilder - GSON buildercacheMeta - cache attributes and meta data Setting this to true avoids
frequent reading and parsing of JSON encoded attributes and
other meta data that requires accessing the store. This is
most interesting for high latency backends. Changes of cached
attributes and meta data by an independent writer will not be
tracked.org.janelia.saalfeldlab.n5.N5Exception - if the base path cannot be read or does not exist, if the N5
version of the container is not compatible with this
implementation.protected ZarrV3KeyValueReader(boolean checkVersion,
org.janelia.saalfeldlab.n5.KeyValueAccess keyValueAccess,
String basePath,
com.google.gson.GsonBuilder gsonBuilder,
boolean cacheMeta,
boolean checkRootExists)
public String getDimensionSeparator()
public void setDimensionSeparator(String dimensionSeparator)
public String getAttributesKey()
getAttributesKey in interface org.janelia.saalfeldlab.n5.GsonN5ReadergetAttributesKey in class org.janelia.saalfeldlab.n5.N5KeyValueReaderpublic org.janelia.saalfeldlab.n5.N5Reader.Version getVersion() throws org.janelia.saalfeldlab.n5.N5Exception
public org.janelia.saalfeldlab.n5.N5Reader.Version getVersion(String path) throws org.janelia.saalfeldlab.n5.N5Exception
protected static org.janelia.saalfeldlab.n5.N5Reader.Version getVersion(com.google.gson.JsonElement json)
public boolean exists(String pathName)
public boolean isGroupFromContainer(String normalPath)
public boolean isGroupFromAttributes(String normalCacheKey, com.google.gson.JsonElement attributes)
public boolean isDatasetFromAttributes(String normalCacheKey, com.google.gson.JsonElement attributes)
public ZarrV3DatasetAttributes createDatasetAttributes(com.google.gson.JsonElement attributes)
public ZarrV3DatasetAttributes getConvertedDatasetAttributes(org.janelia.saalfeldlab.n5.DatasetAttributes attributes)
public com.google.gson.JsonElement getRawAttributes(String pathName) throws org.janelia.saalfeldlab.n5.N5Exception.N5IOException
public com.google.gson.JsonElement getAttributes(String pathName) throws org.janelia.saalfeldlab.n5.N5Exception.N5IOException
public <T> T getAttribute(String pathName, String key, Type type) throws org.janelia.saalfeldlab.n5.N5Exception
public <T> T getRawAttribute(String pathName, String key, Class<T> clazz) throws org.janelia.saalfeldlab.n5.N5Exception
public <T> T getAttribute(String pathName, String key, Class<T> clazz) throws org.janelia.saalfeldlab.n5.N5Exception
protected static com.google.gson.GsonBuilder addTypeAdapters(com.google.gson.GsonBuilder gsonBuilder)
protected String mapAttributeKey(String attributePath)
attributePath - protected boolean isAttributes(String attributePath)
Copyright © 2019–2026 Saalfeld Lab. All rights reserved.