public class HDF5ObjectsGenerator extends OneStageGenerator<ObjectCollection>
ObjectCollection
to a HDF5 file.Modifier and Type | Field and Description |
---|---|
static String |
NUMBER_OBJECTS_ATTRIBUTE_NAME
Name of the attribute in the root of the HDF5 that stores the number of objects.
|
Constructor and Description |
---|
HDF5ObjectsGenerator()
Creates with compression activated.
|
HDF5ObjectsGenerator(boolean compressed) |
Modifier and Type | Method and Description |
---|---|
String |
selectFileExtension(OutputWriteSettings settings,
Optional<Logger> logger)
Selects the file/extension to be used for outputting the file.
|
void |
writeToFile(ObjectCollection element,
OutputWriteSettings settings,
Path filePath) |
transform
write, writeWithIndex
public static final String NUMBER_OBJECTS_ATTRIBUTE_NAME
public HDF5ObjectsGenerator()
public HDF5ObjectsGenerator(boolean compressed)
public void writeToFile(ObjectCollection element, OutputWriteSettings settings, Path filePath)
writeToFile
in class SingleFileTypeGenerator<ObjectCollection,ObjectCollection>
public String selectFileExtension(OutputWriteSettings settings, Optional<Logger> logger)
SingleFileTypeGenerator
selectFileExtension
in class SingleFileTypeGenerator<ObjectCollection,ObjectCollection>
settings
- settings for outputting.logger
- logger for warning for information messages when outputting.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.