Class AggregateDataSource<T extends Output<T>>
java.lang.Object
org.tribuo.datasource.AggregateDataSource<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>,Iterable<Example<T>>,DataSource<T>
Aggregates multiple
DataSources, uses AggregateDataSource.IterationOrder to control the
iteration order.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvenance for theAggregateDataSource.static enumSpecifies the iteration order of the inner sources. -
Constructor Summary
ConstructorsConstructorDescriptionAggregateDataSource(List<DataSource<T>> sources) Creates an aggregate data source which will iterate the provided sources in the order of the list (i.e., usingAggregateDataSource.IterationOrder.SEQUENTIAL.AggregateDataSource(List<DataSource<T>> sources, AggregateDataSource.IterationOrder order) Creates an aggregate data source using the supplied sources and iteration order. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AggregateDataSource
Creates an aggregate data source which will iterate the provided sources in the order of the list (i.e., usingAggregateDataSource.IterationOrder.SEQUENTIAL.- Parameters:
sources- The sources to aggregate.
-
AggregateDataSource
Creates an aggregate data source using the supplied sources and iteration order.- Parameters:
sources- The sources to iterate.order- The iteration order.
-
-
Method Details
-
toString
-
getOutputFactory
Description copied from interface:DataSourceReturns the OutputFactory associated with this Output subclass.- Specified by:
getOutputFactoryin interfaceDataSource<T extends Output<T>>- Returns:
- The output factory.
-
iterator
-
getProvenance
-