public class N5HDF5Writer extends N5HDF5Reader implements org.janelia.saalfeldlab.n5.GsonN5Writer
N5Writer implementation for HDF5 files.org.janelia.saalfeldlab.n5.N5Writer.DataBlockSupplier<T>org.janelia.saalfeldlab.n5.N5Reader.Version| Modifier and Type | Field and Description |
|---|---|
protected ch.systemsx.cisd.hdf5.IHDF5Writer |
writer |
defaultBlockSize, FILE_SYSTEM_KEY_VALUE_ACCESS, gson, N5_JSON_ROOT_KEY, openDataSetCache, overrideBlockSize, reader, VERSIONNO_VERSION, VERSION, VERSION_KEY| Constructor and Description |
|---|
N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
boolean overrideBlockSize,
com.google.gson.GsonBuilder gsonBuilder,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
boolean overrideBlockSize,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
N5HDF5Writer(String hdf5Path,
boolean overrideBlockSize,
com.google.gson.GsonBuilder gsonBuilder,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
N5HDF5Writer(String hdf5Path,
boolean overrideBlockSize,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
N5HDF5Writer(String hdf5Path,
int... defaultBlockSize)
Opens an
N5HDF5Writer for a given HDF5 file. |
blockExists, close, containsEscapeCharacters, cropBlockSize, datasetExists, doesOverrideBlockSize, exists, getAttribute, getAttribute, getAttributes, getAttributesKey, getDatasetAttributes, getDataType, getDefaultBlockSizeCopy, getFilename, getGson, getURI, list, listAttributes, normalizeHdf5PathLocation, readBlock, readChunk, reorder, reorder, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDatasetAttributes, getAttribute, getAttribute, getAttributes, getAttributesKey, getDatasetAttributes, getGson, listAttributescreateDataset, deleteChunks, setVersion, writeChunks, writeSerializedBlockblockExists, close, datasetExists, deepList, deepList, deepList, deepList, deepList, deepListDatasets, deepListDatasets, deepListDatasets, deepListDatasets, deepListHelper, exists, getConvertedDatasetAttributes, getGroupSeparator, getURI, getVersion, groupPath, list, readBlock, readChunk, readChunks, readSerializedBlockpublic N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
boolean overrideBlockSize,
com.google.gson.GsonBuilder gsonBuilder,
int... defaultBlockSize)
throws org.janelia.saalfeldlab.n5.N5Exception
N5HDF5Writer for a given HDF5 file.writer - HDF5 writeroverrideBlockSize - true if you want this N5HDF5Writer to use the
defaultBlockSize instead of the chunk-size for reading
datasetsgsonBuilder - custom GsonBuilder to support custom attributesdefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedorg.janelia.saalfeldlab.n5.N5Exception - the exceptionpublic N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
boolean overrideBlockSize,
int... defaultBlockSize)
throws IOException
N5HDF5Writer for a given HDF5 file.writer - HDF5 writeroverrideBlockSize - true if you want this N5HDF5Writer to use the
defaultBlockSize instead of the chunk-size for reading
datasetsdefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedIOException - the exceptionpublic N5HDF5Writer(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
int... defaultBlockSize)
throws IOException
N5HDF5Writer for a given HDF5 file.writer - HDF5 writerdefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedIOException - the exceptionpublic N5HDF5Writer(String hdf5Path, boolean overrideBlockSize, com.google.gson.GsonBuilder gsonBuilder, int... defaultBlockSize)
N5HDF5Writer for a given HDF5 file.hdf5Path - HDF5 writeroverrideBlockSize - true if you want this N5HDF5Writer to use the
defaultBlockSize instead of the chunk-size for reading
datasetsgsonBuilder - custom GsonBuilder to support custom attributesdefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedpublic N5HDF5Writer(String hdf5Path, boolean overrideBlockSize, int... defaultBlockSize)
N5HDF5Writer for a given HDF5 file.hdf5Path - HDF5 file nameoverrideBlockSize - true if you want this N5HDF5Writer to use the
defaultBlockSize instead of the chunk-size for reading
datasetsdefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedpublic N5HDF5Writer(String hdf5Path, int... defaultBlockSize)
N5HDF5Writer for a given HDF5 file.hdf5Path - HDF5 file namedefaultBlockSize - for all dimensions > defaultBlockSize.length, and for all
dimensions with defaultBlockSize[i] <= 0, the size of the
dataset will be usedpublic org.janelia.saalfeldlab.n5.DatasetAttributes createDataset(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes) throws org.janelia.saalfeldlab.n5.N5Exception
createDataset in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic void createGroup(String pathName) throws org.janelia.saalfeldlab.n5.N5Exception
createGroup in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> void setAttribute(String pathName, String key, T attribute) throws org.janelia.saalfeldlab.n5.N5Exception
setAttribute in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic void setAttributes(String pathName, Map<String,?> attributes) throws org.janelia.saalfeldlab.n5.N5Exception
setAttributes in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic void setAttributes(String groupPath, com.google.gson.JsonElement attributes) throws org.janelia.saalfeldlab.n5.N5Exception
setAttributes in interface org.janelia.saalfeldlab.n5.GsonN5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic void setDatasetAttributes(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes) throws org.janelia.saalfeldlab.n5.N5Exception
setDatasetAttributes in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean removeAttribute(String pathName, String key) throws org.janelia.saalfeldlab.n5.N5Exception
removeAttribute in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> T removeAttribute(String pathName, String key, Class<T> cls) throws org.janelia.saalfeldlab.n5.N5Exception
removeAttribute in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean removeAttributes(String pathName, List<String> attributes) throws org.janelia.saalfeldlab.n5.N5Exception
removeAttributes in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> void writeChunk(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, org.janelia.saalfeldlab.n5.DataBlock<T> dataBlock) throws org.janelia.saalfeldlab.n5.N5Exception
writeChunk in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> void writeBlock(String pathName, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, org.janelia.saalfeldlab.n5.DataBlock<T> dataBlock) throws org.janelia.saalfeldlab.n5.N5Exception
writeBlock in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> void writeRegion(String datasetPath, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long[] min, long[] size, org.janelia.saalfeldlab.n5.N5Writer.DataBlockSupplier<T> dataBlocks, boolean writeFully) throws org.janelia.saalfeldlab.n5.N5Exception
writeRegion in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic <T> void writeRegion(String datasetPath, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long[] min, long[] size, org.janelia.saalfeldlab.n5.N5Writer.DataBlockSupplier<T> dataBlocks, boolean writeFully, ExecutorService exec) throws org.janelia.saalfeldlab.n5.N5Exception, InterruptedException, ExecutionException
writeRegion in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5ExceptionInterruptedExceptionExecutionExceptionpublic boolean deleteChunk(String pathName, long... gridPosition) throws org.janelia.saalfeldlab.n5.N5Exception
deleteChunk in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean deleteChunk(String datasetPath, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long... gridPosition) throws org.janelia.saalfeldlab.n5.N5Exception
deleteChunk in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean deleteBlock(String pathName, long... gridPosition) throws org.janelia.saalfeldlab.n5.N5Exception
deleteBlock in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean deleteBlock(String datasetPath, org.janelia.saalfeldlab.n5.DatasetAttributes datasetAttributes, long... gridPosition) throws org.janelia.saalfeldlab.n5.N5Exception
deleteBlock in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5Exceptionpublic boolean remove()
remove in interface org.janelia.saalfeldlab.n5.N5Writerpublic boolean remove(String pathName) throws org.janelia.saalfeldlab.n5.N5Exception
remove in interface org.janelia.saalfeldlab.n5.N5Writerorg.janelia.saalfeldlab.n5.N5ExceptionCopyright © 2017–2026 Saalfeld Lab. All rights reserved.