Package org.tribuo.provenance
Class SimpleDataSourceProvenance
java.lang.Object
org.tribuo.provenance.SimpleDataSourceProvenance
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
,com.oracle.labs.mlrg.olcut.provenance.Provenance
,Serializable
,Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,
,com.oracle.labs.mlrg.olcut.provenance.Provenance>> DataProvenance
,DataSourceProvenance
This class stores a String describing the data source, along with a
timestamp. It should not be used except for simple demos, or machine
created data. It is vastly preferable to create a
DataSource
implementation with a specific provenance, rather than using this
to construct an empty MutableDataset
.- See Also:
-
Field Summary
Fields inherited from interface org.tribuo.provenance.DataSourceProvenance
DATASOURCE_CREATION_TIME, FILE_MODIFIED_TIME, OUTPUT_FACTORY, RESOURCE_HASH
Fields inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
CLASS_NAME, DEFAULT_HASH_TYPE
-
Constructor Summary
ConstructorDescriptionSimpleDataSourceProvenance
(String description, OffsetDateTime creationTime, OutputFactory<T> outputFactory) This constructor initialises the provenance using the supplied description, time and output factory.SimpleDataSourceProvenance
(String description, OutputFactory<T> outputFactory) This constructor initialises the provenance using the current time in the system timezone.SimpleDataSourceProvenance
(Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> map) Used for provenance deserialization. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
generateString
-
Field Details
-
DESCRIPTION
The description field in the provenance.- See Also:
-
-
Constructor Details
-
SimpleDataSourceProvenance
This constructor initialises the provenance using the current time in the system timezone.- Type Parameters:
T
- The type of the output.- Parameters:
description
- The description of the data.outputFactory
- The output factory used to process it.
-
SimpleDataSourceProvenance
public SimpleDataSourceProvenance(String description, OffsetDateTime creationTime, OutputFactory<T> outputFactory) This constructor initialises the provenance using the supplied description, time and output factory.- Type Parameters:
T
- The type of the output.- Parameters:
description
- The description of the data.creationTime
- The time the data was created or processed.outputFactory
- The output factory used to process it.
-
SimpleDataSourceProvenance
Used for provenance deserialization.- Parameters:
map
- The provenance elements.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getClassName
- Specified by:
getClassName
in interfacecom.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
-
iterator
-
toString
-