public interface IHDF5DateTimeWriter extends IHDF5DateTimeReader
Obtain an object implementing this interface by calling IHDF5Writer.time()
.
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 size,
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.
|
void |
setArrayAttr(java.lang.String objectPath,
java.lang.String attributeName,
java.util.Date[] dates)
Set a date array value as attribute on the referenced object.
|
void |
setArrayAttr(java.lang.String objectPath,
java.lang.String attributeName,
long[] timeStamps)
Set a time stamp array value as attribute on the referenced object.
|
void |
setAttr(java.lang.String objectPath,
java.lang.String attributeName,
java.util.Date date)
Set a date value as attribute on the referenced object.
|
void |
setAttr(java.lang.String objectPath,
java.lang.String attributeName,
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 value)
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.
|
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
void setAttr(java.lang.String objectPath, java.lang.String attributeName, java.util.Date date)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.attributeName
- The name of the attribute.date
- The value of the attribute.void setArrayAttr(java.lang.String objectPath, java.lang.String attributeName, java.util.Date[] dates)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.attributeName
- The name of the attribute.dates
- The value of the attribute.void setAttr(java.lang.String objectPath, java.lang.String attributeName, long timeStamp)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.attributeName
- The name of the attribute.timeStamp
- The value of the attribute.void setArrayAttr(java.lang.String objectPath, java.lang.String attributeName, long[] timeStamps)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.attributeName
- The name of the attribute.timeStamps
- The value of the attribute.void setMDArrayAttr(java.lang.String objectPath, java.lang.String name, ch.systemsx.cisd.base.mdarray.MDLongArray value)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.value
- The value of the attribute.void setMDArrayAttr(java.lang.String objectPath, java.lang.String name, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> value)
The referenced object must exist, that is it need to have been written before by one of the
write()
methods.
objectPath
- The name of the object to add the attribute to.name
- The name of the attribute.value
- The value of the attribute.void write(java.lang.String objectPath, long timeStamp)
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
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.void createArray(java.lang.String objectPath, long size, int blockSize)
Note: Time stamps are stored as long
values.
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
.void createArray(java.lang.String objectPath, int size)
Note: Time stamps are stored as long
values.
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()
.void createArray(java.lang.String objectPath, long size, int blockSize, HDF5GenericStorageFeatures features)
Note: Time stamps are stored as long
values.
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
.features
- The storage features of the data set.void createArray(java.lang.String objectPath, int size, HDF5GenericStorageFeatures features)
Note: Time stamps are stored as long
values.
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.void writeArray(java.lang.String objectPath, long[] timeStamps)
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
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.void writeArray(java.lang.String objectPath, long[] timeStamps, HDF5GenericStorageFeatures features)
HDF5DataTypeVariant.TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
.
Note: Time stamps are stored as long
values.
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.void writeArrayBlock(java.lang.String objectPath, long[] data, long blockNumber)
long
array of
rank 1). The data set needs to have been created by
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.
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.void writeArrayBlockWithOffset(java.lang.String objectPath, long[] data, int dataSize, long offset)
long
array of
rank 1). The data set needs to have been created by
createArray(String, long, int, HDF5GenericStorageFeatures)
beforehand.
Use this method instead of 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.
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.void write(java.lang.String objectPath, java.util.Date date)
Date
.
Note: The time stamp is stored as long
array and tagged as the according
type variant.
objectPath
- The name (including path information) of the data set object in the file.date
- The date to write.write(String, long)
void writeArray(java.lang.String objectPath, java.util.Date[] dates)
Date
array (of rank 1).
Note: Time stamps are stored as long[]
arrays and tagged as the according
type variant.
objectPath
- The name (including path information) of the data set object in the file.dates
- The dates to write.writeArray(String, long[])
void writeArray(java.lang.String objectPath, java.util.Date[] dates, HDF5GenericStorageFeatures features)
Date
array (of rank 1).
Note: Time date is stored as long[]
arrays and tagged as the according
type variant.
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.writeArray(String, long[], HDF5GenericStorageFeatures)
void writeMDArray(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray data, HDF5IntStorageFeatures features)
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.void createMDArray(java.lang.String objectPath, int[] dimensions)
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.void createMDArray(java.lang.String objectPath, long[] dimensions, int[] blockDimensions)
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.void createMDArray(java.lang.String objectPath, int[] dimensions, HDF5IntStorageFeatures features)
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.void createMDArray(java.lang.String objectPath, long[] dimensions, int[] blockDimensions, HDF5IntStorageFeatures features)
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.void writeMDArrayBlock(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray data, long[] blockNumber)
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).void writeMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray data, long[] offset)
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.void writeMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDLongArray data, int[] blockDimensions, long[] offset, int[] memoryOffset)
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.void writeMDArray(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, HDF5IntStorageFeatures features)
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.void writeMDArrayBlock(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, long[] blockNumber)
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).void writeMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, long[] offset)
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.void writeMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDArray<java.util.Date> data, int[] blockDimensions, long[] offset, int[] memoryOffset)
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.