public class TranslatedN5Reader extends Object implements org.janelia.saalfeldlab.n5.GsonN5Reader
org.janelia.saalfeldlab.n5.N5Reader.Version| Modifier and Type | Field and Description |
|---|---|
protected InvertibleTreeTranslation |
translation |
NO_VERSION, VERSION, VERSION_KEY| Constructor and Description |
|---|
TranslatedN5Reader(org.janelia.saalfeldlab.n5.GsonN5Reader n5Base,
String fwdTranslation,
String invTranslation) |
TranslatedN5Reader(org.janelia.saalfeldlab.n5.N5Reader n5Base,
com.google.gson.Gson gson,
String fwdTranslation,
String invTranslation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockExists(String pathName,
org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes,
long... gridPosition) |
boolean |
exists(String pathName) |
com.google.gson.JsonElement |
getAttributes(String pathName) |
String |
getAttributesKey() |
com.google.gson.Gson |
getGson() |
InvertibleTreeTranslation |
getTranslation() |
URI |
getURI() |
String |
groupPath(String... nodes) |
String[] |
list(String pathName) |
Map<String,Class<?>> |
listAttributes(String pathName) |
String |
originalPath(String pathName)
Returns the path in the original container given the path in the translated container.
|
org.janelia.saalfeldlab.n5.DataBlock<?> |
readBlock(String pathName,
org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes,
long... gridPosition) |
org.janelia.saalfeldlab.n5.DataBlock<?> |
readChunk(String pathName,
org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes,
long... gridPosition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDatasetAttributes, getAttribute, getAttribute, getDatasetAttributesclose, datasetExists, deepList, deepList, deepList, deepList, deepList, deepListDatasets, deepListDatasets, deepListDatasets, deepListDatasets, deepListHelper, getConvertedDatasetAttributes, getGroupSeparator, getVersion, readChunks, readSerializedBlockprotected final InvertibleTreeTranslation translation
public TranslatedN5Reader(org.janelia.saalfeldlab.n5.N5Reader n5Base, com.google.gson.Gson gson, String fwdTranslation, String invTranslation)
public TranslatedN5Reader(org.janelia.saalfeldlab.n5.GsonN5Reader n5Base, String fwdTranslation, String invTranslation)
public InvertibleTreeTranslation getTranslation()
public com.google.gson.JsonElement getAttributes(String pathName) throws org.janelia.saalfeldlab.n5.N5Exception.N5IOException
getAttributes in interface org.janelia.saalfeldlab.n5.GsonN5Readerorg.janelia.saalfeldlab.n5.N5Exception.N5IOExceptionpublic String originalPath(String pathName)
pathName - the path in the translated containerpublic org.janelia.saalfeldlab.n5.DataBlock<?> readChunk(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long... gridPosition)
readChunk in interface org.janelia.saalfeldlab.n5.N5Readerpublic org.janelia.saalfeldlab.n5.DataBlock<?> readBlock(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long... gridPosition)
readBlock in interface org.janelia.saalfeldlab.n5.N5Readerpublic boolean exists(String pathName)
exists in interface org.janelia.saalfeldlab.n5.N5Readerpublic boolean blockExists(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long... gridPosition) throws org.janelia.saalfeldlab.n5.N5Exception
blockExists in interface org.janelia.saalfeldlab.n5.N5Readerorg.janelia.saalfeldlab.n5.N5Exceptionpublic String[] list(String pathName)
list in interface org.janelia.saalfeldlab.n5.N5Readerpublic Map<String,Class<?>> listAttributes(String pathName)
listAttributes in interface org.janelia.saalfeldlab.n5.GsonN5ReaderlistAttributes in interface org.janelia.saalfeldlab.n5.N5Readerpublic String groupPath(String... nodes)
groupPath in interface org.janelia.saalfeldlab.n5.N5Readerpublic URI getURI()
getURI in interface org.janelia.saalfeldlab.n5.N5Readerpublic com.google.gson.Gson getGson()
getGson in interface org.janelia.saalfeldlab.n5.GsonN5Readerpublic String getAttributesKey()
getAttributesKey in interface org.janelia.saalfeldlab.n5.GsonN5ReaderCopyright © 2021–2026 Saalfeld Lab. All rights reserved.