Class ColumnarDataSource<T extends Output<T>>
java.lang.Object
org.tribuo.data.columnar.ColumnarDataSource<T>
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>,- Iterable<Example<T>>,- ConfigurableDataSource<T>,- DataSource<T>
- Direct Known Subclasses:
- CSVDataSource,- JsonDataSource,- SQLDataSource
public abstract class ColumnarDataSource<T extends Output<T>>
extends Object
implements ConfigurableDataSource<T>
A 
ConfigurableDataSource base class which takes columnar data (e.g., csv or DB table rows) and generates Examples.- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFor OLCUT.protectedColumnarDataSource(OutputFactory<T> outputFactory, RowProcessor<T> rowProcessor, boolean outputRequired) Constructs a columnar data source with the specified parameters.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the metadata keys and value types that are created by this DataSource.Returns the OutputFactory associated with this Output subclass.iterator()protected abstract ColumnarIteratorThe iterator that emitsColumnarIterator.Rowobjects from the underlying data source.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfigMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ProvenancablegetProvenance
- 
Field Details- 
rowProcessor@Config(mandatory=true, description="The row processor to use.") protected RowProcessor<T extends Output<T>> rowProcessor
- 
outputRequired
 
- 
- 
Constructor Details- 
ColumnarDataSourceprotected ColumnarDataSource()For OLCUT.
- 
ColumnarDataSourceprotected ColumnarDataSource(OutputFactory<T> outputFactory, RowProcessor<T> rowProcessor, boolean outputRequired) Constructs a columnar data source with the specified parameters.- Parameters:
- outputFactory- The output factory.
- rowProcessor- The row processor which converts rows into examples.
- outputRequired- Is an output required for each example.
 
 
- 
- 
Method Details- 
getMetadataTypesReturns the metadata keys and value types that are created by this DataSource.- Returns:
- The metadata keys and value types.
 
- 
getOutputFactoryDescription copied from interface:DataSourceReturns the OutputFactory associated with this Output subclass.- Specified by:
- getOutputFactoryin interface- DataSource<T extends Output<T>>
- Returns:
- The output factory.
 
- 
iterator
- 
rowIteratorThe iterator that emitsColumnarIterator.Rowobjects from the underlying data source.- Returns:
- The row level iterator.
 
 
-