public class TsIteratorIterator extends MoveIterator
Timestamps are not checked. Elements are produced in order of input iterators. So timestamps may not be ascending.
schema
Constructor and Description |
---|
TsIteratorIterator(java.lang.Iterable<TsIterator> input,
java.lang.String[] outputSchema)
Creates concatenated of collection of inputs
|
TsIteratorIterator(java.util.Iterator<TsIterator> input_iterator,
java.lang.String[] outputSchema)
Creates concatenated of collection of inputs
|
Modifier and Type | Method and Description |
---|---|
static <T> TsIteratorIterator |
create(java.lang.Iterable<T> input,
java.util.function.Function<T,TsIterator> function)
Creates concatenated of collection of inputs.
|
static <T> TsIteratorIterator |
create(java.util.Iterator<T> input_iterator,
java.util.function.Function<T,TsIterator> function)
Creates concatenated of collection of inputs
Column names of iterator is union of column names of input iterators.
|
protected TsEntry |
getNext()
Request next element.
|
close, hasNext, next
getNames, getSchema, isLive, isNotLive, toSchemas, toString, toTimeSeries, toTimestampSeries, writeConsole, writeConsole, writeCSV
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProcessingChain, getProcessingTitle
createUnknown, of
createUnknown
public TsIteratorIterator(java.lang.Iterable<TsIterator> input, java.lang.String[] outputSchema)
input
- collection of input iteratorsoutputSchema
- schema of iteratorpublic TsIteratorIterator(java.util.Iterator<TsIterator> input_iterator, java.lang.String[] outputSchema)
input_iterator
- iterator over input iteratorsoutputSchema
- schema of iteratorpublic static <T> TsIteratorIterator create(java.lang.Iterable<T> input, java.util.function.Function<T,TsIterator> function)
Column names of iterator is union of column names of input iterators.
input
- source objectsfunction
- mapping to iteratorpublic static <T> TsIteratorIterator create(java.util.Iterator<T> input_iterator, java.util.function.Function<T,TsIterator> function)
Column names of iterator is union of column names of input iterators.
input
- iterator over source objectsfunction
- mapping to iteratorprotected TsEntry getNext()
MoveIterator
It's guaranteed to not be called again when it first returns null (no next element).
This method should be called by MoveIterator internal only.
getNext
in class MoveIterator