Package org.fairdatapipeline.api
Class Object_component_read
java.lang.Object
org.fairdatapipeline.api.Object_component
org.fairdatapipeline.api.Object_component_read
This represents an object_component to read from (or raise issues with) An object_component
without a name is the 'whole_object' component. Ideally the user should only read from named
components on toml and h5 files, and only read from the 'whole_object' on any other files. This
is not enforced at the moment.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidread the Distribution that was stored as this component in a TOML file.read the Estimate that was stored as this component in a TOML file.get the CleanableFileChannel to read directly from the file.readLink()get the filePath to read from; only for whole_object componentread the Samples that were stored as this component in a TOML file.Methods inherited from class org.fairdatapipeline.api.Object_component
raise_issue
-
Method Details
-
populate_component
protected void populate_component() -
readLink
get the filePath to read from; only for whole_object component- Returns:
- Path the Path of the data object.
-
readFileChannel
get the CleanableFileChannel to read directly from the file. only for whole_object component.- Returns:
- CleanableFileChannel the filechannel to read from.
- Throws:
IOException- if the file can't be opened.
-
readEstimate
read the Estimate that was stored as this component in a TOML file.- Returns:
- the estimate as Number
-
readDistribution
read the Distribution that was stored as this component in a TOML file.- Returns:
- the Distribution
-
readSamples
read the Samples that were stored as this component in a TOML file.- Returns:
- the Samples object
-