public interface IHDF5ReferenceReader
Obtain an object implementing this interface by calling IHDF5Reader.reference()
.
For an explanation about references, see IHDF5ReferenceWriter
.
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a 1D object reference array attribute named attributeName from the object
objectPath, resolving the names of the objects.
|
java.lang.String[] |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName,
boolean resolveName)
Reads a 1D object reference array attribute named attributeName from the object
objectPath.
|
java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> |
getArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this one-dimensional data set to iterate over.
|
java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> |
getArrayNaturalBlocks(java.lang.String dataSetPath,
boolean resolveName)
Provides all natural blocks of this one-dimensional data set to iterate over.
|
java.lang.String |
getAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads an object reference attribute named attributeName from the object
objectPath, resolving the name of the object.
|
java.lang.String |
getAttr(java.lang.String objectPath,
java.lang.String attributeName,
boolean resolveName)
Reads an object reference attribute named attributeName from the object
objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
getMDArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads an object reference array attribute named attributeName from the object
objectPath, resolving the names of the objects.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
getMDArrayAttr(java.lang.String objectPath,
java.lang.String attributeName,
boolean resolveName)
Reads an object reference array attribute named attributeName from the object
objectPath.
|
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> |
getMDArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> |
getMDArrayNaturalBlocks(java.lang.String dataSetPath,
boolean resolveName)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
java.lang.String |
read(java.lang.String objectPath)
Reads an object reference from the object objectPath, resolving the name of the
object.
|
java.lang.String |
read(java.lang.String objectPath,
boolean resolveName)
Reads an object reference from the object objectPath.
|
java.lang.String[] |
readArray(java.lang.String objectPath)
Reads an array of object references from the object objectPath, resolving the
names of the objects.
|
java.lang.String[] |
readArray(java.lang.String objectPath,
boolean resolveName)
Reads an array of object references from the object objectPath.
|
java.lang.String[] |
readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block from an array (of rank 1) of object references from the data set
objectPath, resolving the names of the objects.
|
java.lang.String[] |
readArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber,
boolean resolveName)
Reads a block from an array (of rank 1) of object references from the data set
objectPath.
|
java.lang.String[] |
readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block from an array (of rank 1) of object references from the data set
objectPath, resolving the names of the objects.
|
java.lang.String[] |
readArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset,
boolean resolveName)
Reads a block from an array (of rank 1) of object references from the data set
objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArray(java.lang.String objectPath)
Reads an array (or rank N) of object references from the object objectPath,
resolving the names of the objects.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArray(java.lang.String objectPath,
boolean resolveName)
Reads an array (or rank N) of object references from the object objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a multi-dimensional array of object references from the data set objectPath,
resolving the names of the objects.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber,
boolean resolveName)
Reads a multi-dimensional array of object references from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a multi-dimensional array of object references from the data set objectPath,
resolving the names of the objects.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> |
readMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset,
boolean resolveName)
Reads a multi-dimensional array of object references from the data set objectPath.
|
java.lang.String |
resolvePath(java.lang.String reference)
Resolves the path of a reference which has been read without name resolution.
|
java.lang.String resolvePath(java.lang.String reference) throws HDF5JavaException
reference
- Reference encoded as string.HDF5JavaException
- if reference is not a string-encoded reference.readArray(String, boolean)
java.lang.String getAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String getAttr(java.lang.String objectPath, java.lang.String attributeName, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.resolveName
- If true
, resolves the name of the object referenced,
otherwise returns the references itself.java.lang.String[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.java.lang.String[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.java.lang.String read(java.lang.String objectPath)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.java.lang.String read(java.lang.String objectPath, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.resolveName
- If true
, resolves the name of the object referenced,
otherwise returns the references itself.java.lang.String[] readArray(java.lang.String objectPath)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.java.lang.String[] readArray(java.lang.String objectPath, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.java.lang.String[] readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the length of the long[]
returned
if the data set is long enough).blockNumber
- The number of the block to read (starting with 0, offset: multiply with
blockSize).java.lang.String[] readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the length of the long[]
returned
if the data set is long enough).blockNumber
- The number of the block to read (starting with 0, offset: multiply with
blockSize).resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.java.lang.String[] readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the length of the long[]
returned).offset
- The offset of the block in the data set to start reading from (starting with
0).java.lang.String[] readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.blockSize
- The block size (this will be the length of the long[]
returned).offset
- The offset of the block in the data set to start reading from (starting with
0).resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArray(java.lang.String objectPath)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArray(java.lang.String objectPath, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block in each dimension.blockNumber
- The block number in each dimension (offset: multiply with the
blockDimensions in the according dimension).ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block in each dimension.blockNumber
- The block number in each dimension (offset: multiply with the
blockDimensions in the according dimension).resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
IHDF5ReaderConfigurator.noAutoDereference()
).objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block in each dimension.offset
- The offset in the data set to start reading from in each dimension.ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String> readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset, boolean resolveName)
IHDF5ReaderConfigurator.noAutoDereference()
), a reference can be provided in all
places where an object path is expected. This is considerably faster than resolving the
name/path of the reference if the name/path by itself is not needed.objectPath
- The name (including path information) of the data set object in the file.blockDimensions
- The extent of the block in each dimension.offset
- The offset in the data set to start reading from in each dimension.resolveName
- If true
, resolves the names of the objects referenced,
otherwise returns the references itself.java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocks(java.lang.String dataSetPath)
HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
java.lang.Iterable<HDF5DataBlock<java.lang.String[]>> getArrayNaturalBlocks(java.lang.String dataSetPath, boolean resolveName)
HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocks(java.lang.String dataSetPath)
HDF5MDDataBlock
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.lang.String>>> getMDArrayNaturalBlocks(java.lang.String dataSetPath, boolean resolveName)
HDF5MDDataBlock