TimeIterator<V>
public final class CoalesceIterator<V> extends BufferedTimeIterator<V>
This iterator will output values with the highest granularity respect its operands, upscaling the inputs when in need of adapting.
Constructor | Description |
---|---|
CoalesceIterator(Collection<UpscalableIterator<V>> arguments) |
Construct a coalesce iterator from the given arguments.
|
CoalesceIterator(TimeIterator<?> first,
UpscalableIterator<?>... others) |
Construct a coalesce iterator from the given arguments.
|
CoalesceIterator(UpscalableIterator<V>... arguments) |
Construct a coalesce iterator from the given arguments.
|
Modifier and Type | Method | Description |
---|---|---|
protected Sample<V> |
concreteNext() |
Fetch the next element.
|
String |
toString() |
hasNext, next, peekNext
public CoalesceIterator(TimeIterator<?> first, UpscalableIterator<?>... others)
first
- First source iterator, which is not required to be upscalableothers
- Rest source iteratorspublic CoalesceIterator(Collection<UpscalableIterator<V>> arguments)
arguments
- Source iteratorspublic CoalesceIterator(UpscalableIterator<V>... arguments)
arguments
- Source iteratorsprotected Sample<V> concreteNext()
BufferedTimeIterator
This method must return null when reaching the end of the stream.
concreteNext
in class BufferedTimeIterator<V>
Copyright © 2019. All rights reserved.