public class HDF5DateTimeWriter extends java.lang.Object implements IHDF5DateTimeWriter
IHDF5DateTimeWriter
.Modifier and Type | Method and Description |
---|---|
void |
createArray(java.lang.String objectPath,
int size)
Creates a time stamp array (of rank 1).
|
void |
createArray(java.lang.String objectPath,
int size,
HDF5GenericStorageFeatures features)
Creates a time stamp array (of rank 1).
|
void |
createArray(java.lang.String objectPath,
long size,
int blockSize)
Creates a time stamp array (of rank 1).
|
void |
createArray(java.lang.String objectPath,
long length,
int blockSize,
HDF5GenericStorageFeatures features)
Creates a time stamp array (of rank 1).
|
void |
createMDArray(java.lang.String objectPath,
int[] dimensions)
Creates a multi-dimensional array of time stamps / dates.
|
void |
createMDArray(java.lang.String objectPath,
int[] dimensions,
HDF5IntStorageFeatures features)
Creates a multi-dimensional array of time stamps / dates.
|
void |
createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions)
Creates a multi-dimensional array of time stamps / dates.
|
void |
createMDArray(java.lang.String objectPath,
long[] dimensions,
int[] blockDimensions,
HDF5IntStorageFeatures features)
Creates a multi-dimensional array of time stamps / dates.
|
java.util.Date[] |
getArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a time stamp array attribute named attributeName from the data set
objectPath and returns it as a
Date[] . |
long[] |
getArrayAttrAsLong(java.lang.String objectPath,
java.lang.String attributeName)
Reads a time stamp array attribute named attributeName from the data set
objectPath.
|
java.util.Date |
getAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a time stamp attribute named attributeName from the data set
objectPath and returns it as a
Date . |
long |
getAttrAsLong(java.lang.String objectPath,
java.lang.String attributeName)
Reads a time stamp attribute named attributeName from the data set
objectPath.
|
java.lang.Iterable<HDF5DataBlock<java.util.Date[]>> |
getDateArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this one-dimensional data set of
Date s to iterate
over. |
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date>>> |
getDateMDArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> |
getMDArrayAttr(java.lang.String objectPath,
java.lang.String attributeName)
Reads a multi-dimension time stamp array attribute named attributeName from the
data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDLongArray |
getMDArrayAttrAsLong(java.lang.String objectPath,
java.lang.String attributeName)
Reads a multi-dimension time stamp array attribute named attributeName from the
data set objectPath.
|
java.lang.Iterable<HDF5DataBlock<long[]>> |
getTimeStampArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this one-dimensional data set of time stamps to iterate over.
|
java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDLongArray>> |
getTimeStampMDArrayNaturalBlocks(java.lang.String dataSetPath)
Provides all natural blocks of this multi-dimensional data set to iterate over.
|
boolean |
isTimeStamp(java.lang.String objectPath)
Returns
true , if the data set given by objectPath is a time stamp and
false otherwise. |
boolean |
isTimeStamp(java.lang.String objectPath,
java.lang.String attributeName)
Returns
true , if the attribute attributeName of data set
objectPath is a time stamp and false otherwise. |
java.util.Date |
readDate(java.lang.String objectPath)
Reads a time stamp value from the data set objectPath and returns it as a
Date . |
java.util.Date[] |
readDateArray(java.lang.String objectPath)
Reads a time stamp array (of rank 1) from the data set objectPath and returns it
as an array of
Date s. |
java.util.Date[] |
readDateArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block of a
Date array (of rank 1) from the data set objectPath. |
java.util.Date[] |
readDateArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block of a
Date array (of rank 1) from the data set objectPath. |
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> |
readDateMDArray(java.lang.String objectPath)
Reads a multi-dimensional array of
Date s from the data set objectPath. |
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> |
readDateMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a multi-dimensional array of
Date s from the data set objectPath. |
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> |
readDateMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a multi-dimensional array of
Date s from the data set objectPath. |
long |
readTimeStamp(java.lang.String objectPath)
Reads a time stamp value from the data set objectPath.
|
long[] |
readTimeStampArray(java.lang.String objectPath)
Reads a time stamp array from the data set objectPath.
|
long[] |
readTimeStampArrayBlock(java.lang.String objectPath,
int blockSize,
long blockNumber)
Reads a block of a time stamp array (of rank 1) from the data set objectPath.
|
long[] |
readTimeStampArrayBlockWithOffset(java.lang.String objectPath,
int blockSize,
long offset)
Reads a block of a time stamp array (of rank 1) from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDLongArray |
readTimeStampMDArray(java.lang.String objectPath)
Reads a multi-dimensional array of time stamps from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDLongArray |
readTimeStampMDArrayBlock(java.lang.String objectPath,
int[] blockDimensions,
long[] blockNumber)
Reads a multi-dimensional array of time stamps from the data set objectPath.
|
ch.systemsx.cisd.base.mdarray.MDLongArray |
readTimeStampMDArrayBlockWithOffset(java.lang.String objectPath,
int[] blockDimensions,
long[] offset)
Reads a multi-dimensional array of time stamps from the data set objectPath.
|
int[] |
readToMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray array,
int[] blockDimensions,
long[] offset,
int[] memoryOffset)
Reads a block of the multi-dimensional array data set objectPath of type time
stamp into a given array in memory.
|
int[] |
readToMDArrayWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray array,
int[] memoryOffset)
Reads a multi-dimensional array data set objectPath of type time stamp into a
given array in memory.
|
void |
setArrayAttr(java.lang.String objectPath,
java.lang.String name,
java.util.Date[] dates)
Set a date array value as attribute on the referenced object.
|
void |
setArrayAttr(java.lang.String objectPath,
java.lang.String name,
long[] timeStamps)
Set a time stamp array value as attribute on the referenced object.
|
void |
setAttr(java.lang.String objectPath,
java.lang.String name,
java.util.Date date)
Set a date value as attribute on the referenced object.
|
void |
setAttr(java.lang.String objectPath,
java.lang.String name,
long timeStamp)
Set a time stamp value as attribute on the referenced object.
|
void |
setMDArrayAttr(java.lang.String objectPath,
java.lang.String name,
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> value)
Sets a multi-dimensional timestamp array attribute on the referenced object.
|
void |
setMDArrayAttr(java.lang.String objectPath,
java.lang.String name,
ch.systemsx.cisd.base.mdarray.MDLongArray timeStamps)
Sets a multi-dimensional timestamp array attribute on the referenced object.
|
void |
write(java.lang.String objectPath,
java.util.Date date)
Writes out a time stamp value provided as a
Date . |
void |
write(java.lang.String objectPath,
long timeStamp)
Writes out a time stamp value.
|
void |
writeArray(java.lang.String objectPath,
java.util.Date[] dates)
Writes out a
Date array (of rank 1). |
void |
writeArray(java.lang.String objectPath,
java.util.Date[] dates,
HDF5GenericStorageFeatures features)
Writes out a
Date array (of rank 1). |
void |
writeArray(java.lang.String objectPath,
long[] timeStamps)
Writes out a time stamp array (of rank 1).
|
void |
writeArray(java.lang.String objectPath,
long[] timeStamps,
HDF5GenericStorageFeatures features)
Writes out a time stamp array (of rank 1).
|
void |
writeArrayBlock(java.lang.String objectPath,
long[] data,
long blockNumber)
Writes out a block of a time stamp array (which is stored as a
long array of
rank 1). |
void |
writeArrayBlockWithOffset(java.lang.String objectPath,
long[] data,
int dataSize,
long offset)
Writes out a block of a time stamp array (which is stored as a
long array of
rank 1). |
void |
writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data,
HDF5IntStorageFeatures features)
Writes out a multi-dimensional array of dates.
|
void |
writeMDArray(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray data,
HDF5IntStorageFeatures features)
Writes out a multi-dimensional array of time stamps.
|
void |
writeMDArrayBlock(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data,
long[] blockNumber)
Writes out a block of a multi-dimensional array of dates.
|
void |
writeMDArrayBlock(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray data,
long[] blockNumber)
Writes out a block of a multi-dimensional array of time stamps.
|
void |
writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data,
int[] blockDimensions,
long[] offset,
int[] memoryOffset)
Writes out a block of a multi-dimensional array of dates.
|
void |
writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data,
long[] offset)
Writes out a block of a multi-dimensional array of daates.
|
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 time stamps.
|
void |
writeMDArrayBlockWithOffset(java.lang.String objectPath,
ch.systemsx.cisd.base.mdarray.MDLongArray data,
long[] offset)
Writes out a block of a multi-dimensional array of time stamps.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArrayAttr, getArrayAttrAsLong, getAttr, getAttrAsLong, getDateArrayNaturalBlocks, getDateMDArrayNaturalBlocks, getMDArrayAttr, getMDArrayAttrAsLong, getTimeStampArrayNaturalBlocks, getTimeStampMDArrayNaturalBlocks, isTimeStamp, isTimeStamp, readDate, readDateArray, readDateArrayBlock, readDateArrayBlockWithOffset, readDateMDArray, readDateMDArrayBlock, readDateMDArrayBlockWithOffset, readTimeStamp, readTimeStampArray, readTimeStampArrayBlock, readTimeStampArrayBlockWithOffset, readTimeStampMDArray, readTimeStampMDArrayBlock, readTimeStampMDArrayBlockWithOffset, readToMDArrayBlockWithOffset, readToMDArrayWithOffset
public void setAttr(java.lang.String objectPath, java.lang.String name, long timeStamp)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.timeStamp
- The value of the attribute.public void setAttr(java.lang.String objectPath, java.lang.String name, java.util.Date date)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.date
- The value of the attribute.public void setArrayAttr(java.lang.String objectPath, java.lang.String name, java.util.Date[] dates)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setArrayAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.dates
- The value of the attribute.public void setArrayAttr(java.lang.String objectPath, java.lang.String name, long[] timeStamps)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setArrayAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.timeStamps
- The value of the attribute.public void setMDArrayAttr(java.lang.String objectPath, java.lang.String name, ch.systemsx.cisd.base.mdarray.MDLongArray timeStamps)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setMDArrayAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.timeStamps
- The value of the attribute.public void setMDArrayAttr(java.lang.String objectPath, java.lang.String name, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> value)
IHDF5DateTimeWriter
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
setMDArrayAttr
in interface IHDF5DateTimeWriter
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.value
- The value of the attribute.public void write(java.lang.String objectPath, long timeStamp)
IHDF5DateTimeWriter
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
write
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.timeStamp
- The timestamp to write as number of milliseconds since January 1, 1970,
00:00:00 GMT.public void createArray(java.lang.String objectPath, int size)
IHDF5DateTimeWriter
Note: Time stamps are stored as long
values.
createArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The size of the byte 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)
IHDF5DateTimeWriter
Note: Time stamps are stored as long
values.
createArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.size
- The length of the data set to create.blockSize
- The size of one block (for block-wise IO). Ignored if no extendable data
sets are used (see IHDF5WriterConfigurator.dontUseExtendableDataTypes()
)
and deflate == false
.public void createArray(java.lang.String objectPath, int size, HDF5GenericStorageFeatures features)
IHDF5DateTimeWriter
Note: Time stamps are stored as long
values.
createArray
in interface IHDF5DateTimeWriter
objectPath
- 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
HDF5GenericStorageFeatures
.features
- The storage features of the data set.public void createArray(java.lang.String objectPath, long length, int blockSize, HDF5GenericStorageFeatures features)
IHDF5DateTimeWriter
Note: Time stamps are stored as long
values.
createArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.length
- The length of the data set to create.blockSize
- The size of one block (for block-wise IO). Ignored if no extendable data
sets are used (see IHDF5WriterConfigurator.dontUseExtendableDataTypes()
)
and deflate == false
.features
- The storage features of the data set.public void writeArray(java.lang.String objectPath, long[] timeStamps)
IHDF5DateTimeWriter
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
writeArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.timeStamps
- The timestamps to write as number of milliseconds since January 1, 1970,
00:00:00 GMT.public void writeArray(java.lang.String objectPath, long[] timeStamps, HDF5GenericStorageFeatures features)
IHDF5DateTimeWriter
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
writeArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.timeStamps
- The timestamps to write as number of milliseconds since January 1, 1970,
00:00:00 GMT.features
- The storage features of the data set.public void writeArrayBlock(java.lang.String objectPath, long[] data, long blockNumber)
IHDF5DateTimeWriter
long
array of
rank 1). The data set needs to have been created by
IHDF5DateTimeWriter.createArray(String, long, int, HDF5GenericStorageFeatures)
beforehand.
Note: For best performance, the block size in this method should be chosen to be equal
to the blockSize argument of the
IHDF5LongWriter.createArray(String, long, int, HDF5IntStorageFeatures)
call that
was used to create the data set.
writeArrayBlock
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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, long[] data, int dataSize, long offset)
IHDF5DateTimeWriter
long
array of
rank 1). The data set needs to have been created by
IHDF5DateTimeWriter.createArray(String, long, int, HDF5GenericStorageFeatures)
beforehand.
Use this method instead of IHDF5DateTimeWriter.writeArrayBlock(String, long[], long)
if the
total size of the data set is not a multiple of the block size.
Note: For best performance, the typical dataSize in this method should be
chosen to be equal to the blockSize argument of the
IHDF5LongWriter.createArray(String, long, int, HDF5IntStorageFeatures)
call that
was used to create the data set.
writeArrayBlockWithOffset
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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 write(java.lang.String objectPath, java.util.Date date)
IHDF5DateTimeWriter
Date
.
Note: The time stamp is stored as long
array and tagged as the according
type variant.
write
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.date
- The date to write.IHDF5DateTimeWriter.write(String, long)
public void writeArray(java.lang.String objectPath, java.util.Date[] dates)
IHDF5DateTimeWriter
Date
array (of rank 1).
Note: Time stamps are stored as long[]
arrays and tagged as the according
type variant.
writeArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.dates
- The dates to write.IHDF5DateTimeWriter.writeArray(String, long[])
public void writeArray(java.lang.String objectPath, java.util.Date[] dates, HDF5GenericStorageFeatures features)
IHDF5DateTimeWriter
Date
array (of rank 1).
Note: Time date is stored as long[]
arrays and tagged as the according
type variant.
writeArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.dates
- The dates to write.features
- The storage features of the data set.IHDF5DateTimeWriter.writeArray(String, long[], HDF5GenericStorageFeatures)
public void writeMDArray(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray data, HDF5IntStorageFeatures features)
IHDF5DateTimeWriter
writeMDArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. Must not be null
. All columns need to have the
same length.features
- The storage features of the data set.public void createMDArray(java.lang.String objectPath, int[] dimensions)
IHDF5DateTimeWriter
createMDArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.dimensions
- When the writer is configured to use extendable data types (see
IHDF5WriterConfigurator.dontUseExtendableDataTypes()
), the initial dimensions
and the dimensions of a chunk of the array will be dimensions. When the
writer is configured to enforce a on-extendable data set, the initial dimensions
equal the dimensions and will be dimensions.public void createMDArray(java.lang.String objectPath, long[] dimensions, int[] blockDimensions)
IHDF5DateTimeWriter
createMDArray
in interface IHDF5DateTimeWriter
objectPath
- 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)
IHDF5DateTimeWriter
createMDArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.dimensions
- The dimensions of the long
array to create. When requesting
a chunked data set (e.g. HDF5IntStorageFeatures.INT_CHUNKED
),
the initial size of the array will be 0 and the chunk size will be dimensions.
When allowing a chunked data set (e.g.
HDF5IntStorageFeatures.INT_NO_COMPRESSION
when the writer is
not configured to avoid extendable data types, see
IHDF5WriterConfigurator.dontUseExtendableDataTypes()
), the initial size
and the chunk size of the array will be dimensions. When enforcing a
on-extendable data set (e.g.
HDF5IntStorageFeatures.INT_CONTIGUOUS
), the initial size equals
the total size and will be dimensions.features
- The storage features of the data set.public void createMDArray(java.lang.String objectPath, long[] dimensions, int[] blockDimensions, HDF5IntStorageFeatures features)
IHDF5DateTimeWriter
createMDArray
in interface IHDF5DateTimeWriter
objectPath
- 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.MDLongArray data, long[] blockNumber)
IHDF5DateTimeWriter
writeMDArrayBlock
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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.MDLongArray data, long[] offset)
IHDF5DateTimeWriter
writeMDArrayBlockWithOffset
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. Must not be null
. All columns need to have the
same length.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)
IHDF5DateTimeWriter
writeMDArrayBlockWithOffset
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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.public void writeMDArray(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, HDF5IntStorageFeatures features)
IHDF5DateTimeWriter
writeMDArray
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. Must not be null
. All columns need to have the
same length.features
- The storage features of the data set.public void writeMDArrayBlock(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, long[] blockNumber)
IHDF5DateTimeWriter
writeMDArrayBlock
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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.util.Date> data, long[] offset)
IHDF5DateTimeWriter
writeMDArrayBlockWithOffset
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data to write. Must not be null
. All columns need to have the
same length.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.MDArray<java.util.Date> data, int[] blockDimensions, long[] offset, int[] memoryOffset)
IHDF5DateTimeWriter
writeMDArrayBlockWithOffset
in interface IHDF5DateTimeWriter
objectPath
- The name (including path information) of the data set object in the file.data
- The data 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.public long getAttrAsLong(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
getAttrAsLong
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.util.Date getAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
Date
.getAttr
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.Date
.public long[] getArrayAttrAsLong(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
getArrayAttrAsLong
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public ch.systemsx.cisd.base.mdarray.MDLongArray getMDArrayAttrAsLong(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
getMDArrayAttrAsLong
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.public java.util.Date[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
Date[]
.getArrayAttr
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.Date
.public ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
IHDF5DateTimeReader
getMDArrayAttr
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.attributeName
- The name of the attribute to read.Date
.public boolean isTimeStamp(java.lang.String objectPath, java.lang.String attributeName) throws HDF5JavaException
IHDF5DateTimeReader
true
, if the attribute attributeName of data set
objectPath is a time stamp and false
otherwise.isTimeStamp
in interface IHDF5DateTimeReader
HDF5JavaException
public boolean isTimeStamp(java.lang.String objectPath) throws HDF5JavaException
IHDF5DateTimeReader
true
, if the data set given by objectPath is a time stamp and
false
otherwise.isTimeStamp
in interface IHDF5DateTimeReader
HDF5JavaException
public long readTimeStamp(java.lang.String objectPath) throws HDF5JavaException
IHDF5DateTimeReader
long
value in the HDF5 file. It needs to be tagged as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readTimeStamp
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not defined as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.public long[] readTimeStampArray(java.lang.String objectPath) throws HDF5JavaException
IHDF5DateTimeReader
long
value in the HDF5 file. It needs to be tagged as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readTimeStampArray
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.HDF5JavaException
- If the objectPath is not defined as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.public long[] readTimeStampArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
IHDF5DateTimeReader
long
value in the HDF5 file. It needs to be tagged as
type variant HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readTimeStampArrayBlock
in interface IHDF5DateTimeReader
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).public long[] readTimeStampArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
IHDF5DateTimeReader
long
value in the HDF5 file. It needs to be tagged as
type variant HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readTimeStampArrayBlockWithOffset
in interface IHDF5DateTimeReader
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).public java.util.Date readDate(java.lang.String objectPath) throws HDF5JavaException
IHDF5DateTimeReader
Date
. The time stamp is stored as a long
value in the HDF5 file. It
needs to be tagged as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readDate
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.Date
.HDF5JavaException
- If the objectPath does not denote a time stamp.public java.util.Date[] readDateArray(java.lang.String objectPath) throws HDF5JavaException
IHDF5DateTimeReader
Date
s. The time stamp array is stored as a an array of
long
values in the HDF5 file. It needs to be tagged as type variant
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readDateArray
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.Date
.HDF5JavaException
- If the objectPath does not denote a time stamp.public ch.systemsx.cisd.base.mdarray.MDLongArray readTimeStampMDArray(java.lang.String objectPath)
IHDF5DateTimeReader
readTimeStampMDArray
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.public ch.systemsx.cisd.base.mdarray.MDLongArray readTimeStampMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
IHDF5DateTimeReader
readTimeStampMDArrayBlock
in interface IHDF5DateTimeReader
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).public ch.systemsx.cisd.base.mdarray.MDLongArray readTimeStampMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
IHDF5DateTimeReader
readTimeStampMDArrayBlockWithOffset
in interface IHDF5DateTimeReader
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.public int[] readToMDArrayWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray array, int[] memoryOffset)
IHDF5DateTimeReader
readToMDArrayWithOffset
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.array
- The array to read the data into.memoryOffset
- The offset in the array to write the data to.public int[] readToMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray array, int[] blockDimensions, long[] offset, int[] memoryOffset)
IHDF5DateTimeReader
readToMDArrayBlockWithOffset
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.array
- The array to read the data into.blockDimensions
- The size of the block to read along each axis.offset
- The offset of the block in the data set.memoryOffset
- The offset of the block in the array to write the data to.public java.lang.Iterable<HDF5DataBlock<long[]>> getTimeStampArrayNaturalBlocks(java.lang.String dataSetPath) throws HDF5JavaException
IHDF5DateTimeReader
getTimeStampArrayNaturalBlocks
in interface IHDF5DateTimeReader
HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
public java.util.Date[] readDateArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
IHDF5DateTimeReader
Date
array (of rank 1) from the data set objectPath.
The time stamp is stored as a long
value in the HDF5 file. It needs to be tagged
as type variant HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readDateArrayBlock
in interface IHDF5DateTimeReader
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).public java.util.Date[] readDateArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
IHDF5DateTimeReader
Date
array (of rank 1) from the data set objectPath.
The time stamp is stored as a long
value in the HDF5 file. It needs to be tagged
as type variant HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
This tagging is done by the writer when using
IHDF5SimpleWriter.writeTimeDuration(String, HDF5TimeDuration)
or can be done by calling
IHDF5ObjectReadWriteInfoProviderHandler.setTypeVariant(String, HDF5DataTypeVariant)
,
most conveniently by code like
writer.addTypeVariant("/dataSetPath", HDF5TimeUnit.SECONDS.getTypeVariant());
readDateArrayBlockWithOffset
in interface IHDF5DateTimeReader
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).public java.lang.Iterable<HDF5DataBlock<java.util.Date[]>> getDateArrayNaturalBlocks(java.lang.String dataSetPath) throws HDF5JavaException
IHDF5DateTimeReader
Date
s to iterate
over.getDateArrayNaturalBlocks
in interface IHDF5DateTimeReader
HDF5JavaException
- If the data set is not of rank 1.HDF5DataBlock
public java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDLongArray>> getTimeStampMDArrayNaturalBlocks(java.lang.String dataSetPath)
IHDF5DateTimeReader
getTimeStampMDArrayNaturalBlocks
in interface IHDF5DateTimeReader
HDF5MDDataBlock
public ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> readDateMDArray(java.lang.String objectPath)
IHDF5DateTimeReader
Date
s from the data set objectPath.readDateMDArray
in interface IHDF5DateTimeReader
objectPath
- The name (including path information) of the data set object in the file.public ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> readDateMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
IHDF5DateTimeReader
Date
s from the data set objectPath.readDateMDArrayBlock
in interface IHDF5DateTimeReader
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).public ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> readDateMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
IHDF5DateTimeReader
Date
s from the data set objectPath.readDateMDArrayBlockWithOffset
in interface IHDF5DateTimeReader
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.public java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date>>> getDateMDArrayNaturalBlocks(java.lang.String dataSetPath)
IHDF5DateTimeReader
getDateMDArrayNaturalBlocks
in interface IHDF5DateTimeReader
HDF5MDDataBlock