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 SummaryFieldsFields inherited from interface org.tribuo.provenance.DataSourceProvenanceDATASOURCE_CREATION_TIME, FILE_MODIFIED_TIME, OUTPUT_FACTORY, RESOURCE_HASHFields inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenanceCLASS_NAME, DEFAULT_HASH_TYPE
- 
Constructor SummaryConstructorsModifierConstructorDescription<T extends Output<T>>SimpleDataSourceProvenance(String description, OffsetDateTime creationTime, OutputFactory<T> outputFactory) This constructor initialises the provenance using the supplied description, time and output factory.<T extends Output<T>>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 SummaryMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ObjectProvenancegenerateString
- 
Field Details- 
DESCRIPTION
 
- 
- 
Constructor Details- 
SimpleDataSourceProvenancepublic <T extends Output<T>> SimpleDataSourceProvenance(String description, OutputFactory<T> outputFactory) 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.
 
- 
SimpleDataSourceProvenancepublic <T extends Output<T>> 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
 
- 
- 
Method Details- 
equals
- 
hashCode
- 
getClassName- Specified by:
- getClassNamein interface- com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance
 
- 
iterator
- 
toString
 
-