public class HDF5ReferenceWriter extends HDF5ReferenceReader implements IHDF5ReferenceWriter
IHDF5ReferenceWriter.| Modifier and Type | Method and Description |
|---|---|
void |
createArray(java.lang.String objectPath,
int size)
Creates an array (of rank 1) of object references.
|
void |
createArray(java.lang.String objectPath,
int size,
HDF5IntStorageFeatures features)
Creates an array (of rank 1) of object references.
|
void |
createArray(java.lang.String objectPath,
long size,
int blockSize)
Creates an array (of rank 1) of object references.
|
void |
createArray(java.lang.String objectPath,
long size,
int blockSize,
HDF5IntStorageFeatures features)
Creates an array (of rank 1) of object references.
|
void |
createMDArray(java.lang.String objectPath,
int[] dimensions)
Creates a multi-dimensional array of object references.
|
void |
createMDArray(java.lang.String objectPath,
int[] dimensions,
HDF5IntStorageFeatures features)
Creates a multi-dimensional array of object references.
|
void |
createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions)
Creates a multi-dimensional array of object references.
|
void |
createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions,
HDF5IntStorageFeatures features)
Creates a multi-dimensional array of object references.
|
void |
setArrayAttr(java.lang.String objectPath,
java.lang.String name,
java.lang.String[] referencedObjectPaths)
Sets a 1D object reference array attribute to referenced objects.
|
void |
setAttr(java.lang.String objectPath,
java.lang.String name,
java.lang.String referencedObjectPath)
Sets an object reference attribute to the referenced object.
|
void |
setMDArrayAttr(java.lang.String objectPath,
java.lang.String name,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths)
Sets an object reference array attribute to referenced objects.
|
void |
write(java.lang.String objectPath,
java.lang.String referencedObjectPath)
Writes an object reference to the referenced object.
|
void |
writeArray(java.lang.String objectPath,
java.lang.String[] referencedObjectPath)
Writes an array (of rank 1) of object references.
|
void |
writeArray(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
HDF5IntStorageFeatures features)
Writes an array (of rank 1) of object references.
|
void |
writeArrayBlock(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
long blockNumber)
Writes out a block of an array (of rank 1) of object references.
|
void |
writeArrayBlockWithOffset(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
int dataSize,
long offset)
Writes out a block of an array (of rank 1) of object references.
|
void |
writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths)
Writes an array (of rank N) of object references.
|
void |
writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
HDF5IntStorageFeatures features)
Writes an array (of rank N) of object references.
|
void |
writeMDArrayBlock(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
long[] blockNumber)
Writes out a block of a multi-dimensional array of object references.
|
void |
writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
long[] offset)
Writes out a block of a multi-dimensional array of object references.
|
void |
writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray data,
int[] blockDimensions,
long[] offset,
int[] memoryOffset)
Writes out a block of a multi-dimensional array of object references.
|
getArrayAttr, getArrayAttr, getArrayNaturalBlocks, getArrayNaturalBlocks, getAttr, getAttr, getMDArrayAttr, getMDArrayAttr, getMDArrayNaturalBlocks, getMDArrayNaturalBlocks, read, read, readArray, readArray, readArrayBlock, readArrayBlock, readArrayBlockWithOffset, readArrayBlockWithOffset, readMDArray, readMDArray, readMDArrayBlock, readMDArrayBlock, readMDArrayBlockWithOffset, readMDArrayBlockWithOffset, resolvePathequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArrayAttr, getArrayAttr, getArrayNaturalBlocks, getArrayNaturalBlocks, getAttr, getAttr, getMDArrayAttr, getMDArrayAttr, getMDArrayNaturalBlocks, getMDArrayNaturalBlocks, read, read, readArray, readArray, readArrayBlock, readArrayBlock, readArrayBlockWithOffset, readArrayBlockWithOffset, readMDArray, readMDArray, readMDArrayBlock, readMDArrayBlock, readMDArrayBlockWithOffset, readMDArrayBlockWithOffset, resolvePathpublic void setAttr(java.lang.String objectPath,
java.lang.String name,
java.lang.String referencedObjectPath)
IHDF5ReferenceWriter
Both the object referenced with objectPath and referencedObjectPath
must exist, that is it need to have been written before by one of the write() or
create() methods.
setAttr in interface IHDF5ReferenceWriterobjectPath - The name of the object to add the attribute to.name - The name of the attribute.referencedObjectPath - The path of the object to reference.public void setArrayAttr(java.lang.String objectPath,
java.lang.String name,
java.lang.String[] referencedObjectPaths)
IHDF5ReferenceWriter
Both the object referenced with objectPath and all
referencedObjectPaths must exist, that is it need to have been written before by
one of the write() or create() methods.
setArrayAttr in interface IHDF5ReferenceWriterobjectPath - The name of the object to add the attribute to.name - The name of the attribute.referencedObjectPaths - The paths of the objects to reference.public void setMDArrayAttr(java.lang.String objectPath,
java.lang.String name,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths)
IHDF5ReferenceWriter
Both the object referenced with objectPath and all
referencedObjectPaths must exist, that is it need to have been written before by
one of the write() or create() methods.
setMDArrayAttr in interface IHDF5ReferenceWriterobjectPath - The name of the object to add the attribute to.name - The name of the attribute.referencedObjectPaths - The paths of the objects to reference.public void write(java.lang.String objectPath,
java.lang.String referencedObjectPath)
IHDF5ReferenceWriter
The object referenced with referencedObjectPath must exist, that is it need to
have been written before by one of the write() or create() methods.
write in interface IHDF5ReferenceWriterobjectPath - The name of the object to write.referencedObjectPath - The path of the object to reference.public void writeArray(java.lang.String objectPath,
java.lang.String[] referencedObjectPath)
IHDF5ReferenceWriterwriteArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPath - The names of the object to write.public void writeArray(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
HDF5IntStorageFeatures features)
IHDF5ReferenceWriterwriteArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The names of the object to write.features - The storage features of the data set.public void createArray(java.lang.String objectPath,
int size)
IHDF5ReferenceWritercreateArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.size - The size of the array to create. This will be the total size for non-extendable
data sets and the size of one chunk for extendable (chunked) data sets. For
extendable data sets the initial size of the array will be 0, see
IHDF5WriterConfigurator.dontUseExtendableDataTypes().public void createArray(java.lang.String objectPath,
long size,
int blockSize)
IHDF5ReferenceWritercreateArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.size - The size of the array to create. When using extendable data sets ((see
IHDF5WriterConfigurator.dontUseExtendableDataTypes())), then no data set
smaller than this size can be created, however data sets may be larger.blockSize - The size of one block (for block-wise IO). Ignored if no extendable data
sets are used (see IHDF5WriterConfigurator.dontUseExtendableDataTypes()).public void createArray(java.lang.String objectPath,
int size,
HDF5IntStorageFeatures features)
IHDF5ReferenceWritercreateArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.size - The size of the array to create. This will be the total size for non-extendable
data sets and the size of one chunk for extendable (chunked) data sets. For
extendable data sets the initial size of the array will be 0, see
HDF5IntStorageFeatures.features - The storage features of the data set.public void createArray(java.lang.String objectPath,
long size,
int blockSize,
HDF5IntStorageFeatures features)
IHDF5ReferenceWritercreateArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.size - The size of the array to create. When using extendable data sets ((see
IHDF5WriterConfigurator.dontUseExtendableDataTypes())), then no data set
smaller than this size can be created, however data sets may be larger.blockSize - The size of one block (for block-wise IO). Ignored if no extendable data
sets are used (see IHDF5WriterConfigurator.dontUseExtendableDataTypes())
and features is HDF5IntStorageFeature.INTNO_COMPRESSION.features - The storage features of the data set.public void writeArrayBlock(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
long blockNumber)
IHDF5ReferenceWriterIHDF5ReferenceWriter.createArray(String, long, int, HDF5IntStorageFeatures) beforehand.
Note: For best performance, the block size in this method should be chosen to be equal
to the blockSize argument of the
IHDF5ReferenceWriter.createArray(String, long, int, HDF5IntStorageFeatures) call that was used to create
the data set.
writeArrayBlock in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The paths of the referenced objects to write. The length defines
the block size. Must not be null or of length 0.blockNumber - The number of the block to write.public void writeArrayBlockWithOffset(java.lang.String objectPath,
java.lang.String[] referencedObjectPaths,
int dataSize,
long offset)
IHDF5ReferenceWriterIHDF5ReferenceWriter.createArray(String, long, int, HDF5IntStorageFeatures) beforehand.
Note: For best performance, the block size in this method should be chosen to be equal
to the blockSize argument of the
IHDF5ReferenceWriter.createArray(String, long, int, HDF5IntStorageFeatures) call that was used to create
the data set.
writeArrayBlockWithOffset in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The paths of the referenced objects to write. The length defines
the block size. Must not be null or of length 0.dataSize - The (real) size of data (needs to be <= data.length
)offset - The offset in the data set to start writing to.public void writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths)
IHDF5ReferenceWriterwriteMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The names of the object to write.public void writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
HDF5IntStorageFeatures features)
IHDF5ReferenceWriterwriteMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The names of the object to write.features - The storage features of the data set.public void createMDArray(java.lang.String objectPath,
int[] dimensions)
IHDF5ReferenceWritercreateMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.dimensions - The dimensions of the array to create. This will be the total dimensions
for non-extendable data sets and the dimensions of one chunk (extent along each
axis) for extendable (chunked) data sets. For extendable data sets the initial
size of the array along each axis will be 0, see
IHDF5WriterConfigurator.dontUseExtendableDataTypes().public void createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions)
IHDF5ReferenceWritercreateMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.dimensions - The dimensions of the array.blockDimensions - The dimensions of one block (chunk) of the array.public void createMDArray(java.lang.String objectPath,
int[] dimensions,
HDF5IntStorageFeatures features)
IHDF5ReferenceWritercreateMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.dimensions - The dimensions of the array to create. This will be the total dimensions
for non-extendable data sets and the dimensions of one chunk (extent along each
axis) for extendable (chunked) data sets. For extendable data sets the initial
size of the array along each axis will be 0, see
IHDF5WriterConfigurator.dontUseExtendableDataTypes().features - The storage features of the data set.public void createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions,
HDF5IntStorageFeatures features)
IHDF5ReferenceWritercreateMDArray in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.dimensions - The dimensions of the array.blockDimensions - The dimensions of one block (chunk) of the array.features - The storage features of the data set.public void writeMDArrayBlock(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
long[] blockNumber)
IHDF5ReferenceWriterwriteMDArrayBlock in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The paths of the object references to write. Must not be
null. All columns need to have the same length.blockNumber - The block number in each dimension (offset: multiply with the extend in
the according dimension).public void writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> referencedObjectPaths,
long[] offset)
IHDF5ReferenceWriterwriteMDArrayBlockWithOffset in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.referencedObjectPaths - The paths of the object references to write. Must not be
null.offset - The offset in the data set to start writing to in each dimension.public void writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray data,
int[] blockDimensions,
long[] offset,
int[] memoryOffset)
IHDF5ReferenceWriterwriteMDArrayBlockWithOffset in interface IHDF5ReferenceWriterobjectPath - The name (including path information) of the data set object in the file.data - The paths of the object references to write. Must not be
null.blockDimensions - The dimensions of the block to write to the data set.offset - The offset of the block in the data set to start writing to in each dimension.memoryOffset - The offset of the block in the data array.