public interface IHDF5ObjectReadWriteInfoProviderHandler extends IHDF5ObjectReadOnlyInfoProviderHandler
Obtain an object implementing this interface by calling IHDF5Writer.object()
.
Modifier and Type | Method and Description |
---|---|
void |
createExternalLink(java.lang.String targetFileName,
java.lang.String targetPath,
java.lang.String linkPath)
Creates an external link, that is a link to a data set in another HDF5 file, the
target .
|
void |
createGroup(java.lang.String groupPath)
Creates a group with path objectPath in the HDF5 file.
|
void |
createGroup(java.lang.String groupPath,
int sizeHint)
Creates a group with path objectPath in the HDF5 file, giving the library a hint
about the size (sizeHint).
|
void |
createGroup(java.lang.String groupPath,
int maxCompact,
int minDense)
Creates a group with path objectPath in the HDF5 file, giving the library hints
about when to switch between compact and dense.
|
void |
createHardLink(java.lang.String currentPath,
java.lang.String newPath)
Creates a hard link.
|
void |
createOrUpdateExternalLink(java.lang.String targetFileName,
java.lang.String targetPath,
java.lang.String linkPath)
Creates or updates an external link, that is a link to a data set in another HDF5 file, the
target .
|
void |
createOrUpdateSoftLink(java.lang.String targetPath,
java.lang.String linkPath)
Creates or updates a soft link.
|
void |
createSoftLink(java.lang.String targetPath,
java.lang.String linkPath)
Creates a soft link.
|
void |
delete(java.lang.String objectPath)
Removes an object from the file.
|
void |
deleteAttribute(java.lang.String objectPath,
java.lang.String name)
Deletes an attribute.
|
void |
deleteTypeVariant(java.lang.String objectPath)
Deletes the typeVariant from objectPath.
|
void |
deleteTypeVariant(java.lang.String objectPath,
java.lang.String attributeName)
Deletes the typeVariant from attributeName of objectPath.
|
void |
move(java.lang.String oldLinkPath,
java.lang.String newLinkPath)
Moves or renames a link in the file atomically.
|
void |
setDataSetDimensions(java.lang.String objectPath,
long[] newDimensions)
Sets the data set size of a multi-dimensional data set to newDimensions.
|
void |
setDataSetSize(java.lang.String objectPath,
long newSize)
Sets the data set size of a one-dimensional data set to newSize.
|
void |
setTypeVariant(java.lang.String objectPath,
HDF5DataTypeVariant typeVariant)
Sets a typeVariant of object objectPath.
|
void |
setTypeVariant(java.lang.String objectPath,
java.lang.String attributeName,
HDF5DataTypeVariant typeVariant)
Sets a typeVariant of attribute attributeName of object
objectPath.
|
copy, copy, copyAll, exists, exists, getAllAttributeNames, getAllGroupMemberInformation, getAllGroupMembers, getArrayDimensions, getArrayRank, getAttributeInformation, getAttributeInformation, getAttributeNames, getDataSetInformation, getDataSetInformation, getDimensions, getElementSize, getGroupMemberInformation, getGroupMemberPaths, getGroupMembers, getLinkInformation, getNumberOfElements, getObjectInformation, getObjectType, getObjectType, getRank, getSize, getSpaceDimensions, getSpaceRank, hasAttribute, isDataSet, isDataSet, isDataType, isDataType, isExternalLink, isGroup, isGroup, isHouseKeepingObject, isSoftLink, isSymbolicLink, openDataSet, toHouseKeepingPath, tryGetDataTypePath, tryGetDataTypePath, tryGetExternalLinkFilename, tryGetExternalLinkTarget, tryGetSymbolicLinkTarget, tryGetTypeVariant, tryGetTypeVariant
void createHardLink(java.lang.String currentPath, java.lang.String newPath)
currentPath
- The name of the data set (including path information) to create a link to.newPath
- The name (including path information) of the link to create.void createSoftLink(java.lang.String targetPath, java.lang.String linkPath)
targetPath
- The name of the data set (including path information) to create a link to.linkPath
- The name (including path information) of the link to create.void createOrUpdateSoftLink(java.lang.String targetPath, java.lang.String linkPath)
Note: This method will never overwrite a data set, but only a symbolic link.
targetPath
- The name of the data set (including path information) to create a link to.linkPath
- The name (including path information) of the link to create.void createExternalLink(java.lang.String targetFileName, java.lang.String targetPath, java.lang.String linkPath) throws java.lang.IllegalStateException
Note: This method is only allowed when the IHDF5WriterConfigurator
was not
configured to enforce strict HDF5 1.6 compatibility.
targetFileName
- The name of the file where the data set resides that should be linked.targetPath
- The name of the data set (including path information) in the
targetFileName to create a link to.linkPath
- The name (including path information) of the link to create.java.lang.IllegalStateException
- If the IHDF5WriterConfigurator
was configured to
enforce strict HDF5 1.6 compatibility.void createOrUpdateExternalLink(java.lang.String targetFileName, java.lang.String targetPath, java.lang.String linkPath) throws java.lang.IllegalStateException
Note: This method will never overwrite a data set, but only a symbolic link.
Note: This method is only allowed when the IHDF5WriterConfigurator
was not
configured to enforce strict HDF5 1.6 compatibility.
targetFileName
- The name of the file where the data set resides that should be linked.targetPath
- The name of the data set (including path information) in the
targetFileName to create a link to.linkPath
- The name (including path information) of the link to create.java.lang.IllegalStateException
- If the IHDF5WriterConfigurator
was configured to
enforce strict HDF5 1.6 compatibility.void delete(java.lang.String objectPath)
void move(java.lang.String oldLinkPath, java.lang.String newLinkPath) throws HDF5SymbolTableException
HDF5SymbolTableException
- If oldLinkPath does not exist or if
newLinkPath already exists.void createGroup(java.lang.String groupPath)
All intermediate groups will be created as well, if they do not already exist.
groupPath
- The path of the group to create.void createGroup(java.lang.String groupPath, int sizeHint)
All intermediate groups will be created as well, if they do not already exist.
Note: This method creates an "old-style group", that is the type of group of HDF5 1.6 and earlier.
groupPath
- The path of the group to create.sizeHint
- The estimated size of all group entries (in bytes).void createGroup(java.lang.String groupPath, int maxCompact, int minDense)
All intermediate groups will be created as well, if they do not already exist.
Note: This method creates a "new-style group", that is the type of group of HDF5 1.8 and above. Thus it will fail, if the writer is configured to enforce HDF5 1.6 compatibility.
groupPath
- The path of the group to create.maxCompact
- When the group grows to more than this number of entries, the library will
convert the group style from compact to dense.minDense
- When the group shrinks below this number of entries, the library will convert
the group style from dense to compact.void setDataSetSize(java.lang.String objectPath, long newSize)
HDF5JavaException
- If the data set objectPath is not extendable.void setDataSetDimensions(java.lang.String objectPath, long[] newDimensions)
HDF5JavaException
- If the data set objectPath is not extendable.void setTypeVariant(java.lang.String objectPath, HDF5DataTypeVariant typeVariant)
objectPath
- The name of the object to add the type variant to.typeVariant
- The type variant to add.void setTypeVariant(java.lang.String objectPath, java.lang.String attributeName, HDF5DataTypeVariant typeVariant)
objectPath
- The name of the object.attributeName
- The name of attribute to add the type variant to.typeVariant
- The type variant to add.void deleteTypeVariant(java.lang.String objectPath)
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 delete the type variant from.void deleteTypeVariant(java.lang.String objectPath, java.lang.String attributeName)
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.attributeName
- The name of the attribute to delete the type variant from.void deleteAttribute(java.lang.String objectPath, java.lang.String name)
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 delete the attribute from.name
- The name of the attribute to delete.