Class HDF5ObjectsGenerator
- All Implemented Interfaces:
Generator<ObjectCollection>,TransformingGenerator<ObjectCollection, ObjectCollection>,ElementWriter<ObjectCollection>
A generator that writes a
ObjectCollection to a HDF5 file.- Author:
- Owen Feehan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the attribute in the root of the HDF5 that stores the number of objects. -
Constructor Summary
ConstructorsConstructorDescriptionCreates with compression activated.HDF5ObjectsGenerator(boolean compressed) Creates a newHDF5ObjectsGeneratorinstance. -
Method Summary
Modifier and TypeMethodDescriptionselectFileExtension(OutputWriteSettings settings, Optional<Logger> logger) voidwriteToFile(ObjectCollection element, OutputWriteSettings settings, Path filePath) Methods inherited from class org.anchoranalysis.io.generator.OneStageGenerator
transformMethods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeWithIndex
-
Field Details
-
NUMBER_OBJECTS_ATTRIBUTE_NAME
Name of the attribute in the root of the HDF5 that stores the number of objects.- See Also:
-
-
Constructor Details
-
HDF5ObjectsGenerator
public HDF5ObjectsGenerator()Creates with compression activated. -
HDF5ObjectsGenerator
public HDF5ObjectsGenerator(boolean compressed) Creates a newHDF5ObjectsGeneratorinstance.- Parameters:
compressed- Whether to use compression when writing the object-masks in HDF5.
-
-
Method Details
-
writeToFile
- Specified by:
writeToFilein classSingleFileTypeGenerator<ObjectCollection, ObjectCollection>
-
selectFileExtension
- Specified by:
selectFileExtensionin classSingleFileTypeGenerator<ObjectCollection, ObjectCollection>
-