public class AggregateDataSource<T extends Output<T>> extends Object implements DataSource<T>
DataSource
s, uses AggregateDataSource.IterationOrder
to control the
iteration order.Modifier and Type | Class and Description |
---|---|
static class |
AggregateDataSource.AggregateDataSourceProvenance
Provenance for the
AggregateDataSource . |
static class |
AggregateDataSource.IterationOrder
Specifies the iteration order of the inner sources.
|
Constructor and Description |
---|
AggregateDataSource(List<DataSource<T>> sources)
Creates an aggregate data source which will iterate the provided
sources in the order of the list (i.e., using
AggregateDataSource.IterationOrder.SEQUENTIAL . |
AggregateDataSource(List<DataSource<T>> sources,
AggregateDataSource.IterationOrder order)
Creates an aggregate data source using the supplied sources and iteration order.
|
Modifier and Type | Method and Description |
---|---|
OutputFactory<T> |
getOutputFactory()
Returns the OutputFactory associated with this Output subclass.
|
DataSourceProvenance |
getProvenance() |
Iterator<Example<T>> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AggregateDataSource(List<DataSource<T>> sources)
AggregateDataSource.IterationOrder.SEQUENTIAL
.sources
- The sources to aggregate.public AggregateDataSource(List<DataSource<T>> sources, AggregateDataSource.IterationOrder order)
sources
- The sources to iterate.order
- The iteration order.public OutputFactory<T> getOutputFactory()
DataSource
getOutputFactory
in interface DataSource<T extends Output<T>>
public DataSourceProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<DataSourceProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.