TimeIterator<Object[]>
, UpscalableIterator<Object[]>
public final class UnionIterator extends BufferedTimeIterator<Object[]> implements UpscalableIterator<Object[]>
This iterator will output values with the highest granularity respect its operands, upscaling the inputs when in need of adapting.
Constructor | Description |
---|---|
UnionIterator(Collection<UpscalableIterator<?>> arguments) |
Construct a intesect iterator from the given arguments.
|
UnionIterator(UpscalableIterator<?> first,
UpscalableIterator<?>... others) |
Construct a intersect iterator from the given arguments.
|
Modifier and Type | Method | Description |
---|---|---|
protected Sample<Object[]> |
concreteNext() |
Fetch the next element.
|
Sample<Object[]> |
peekUpscaleNext(Interval interval) |
Peek the next value upscaling it for the given interval.
|
String |
toString() |
hasNext, next, peekNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasNext, next, peekNext
public UnionIterator(UpscalableIterator<?> first, UpscalableIterator<?>... others)
first
- First source iteratorothers
- Rest source iteratorspublic UnionIterator(Collection<UpscalableIterator<?>> arguments)
arguments
- Source iteratorsprotected final Sample<Object[]> concreteNext()
BufferedTimeIterator
This method must return null when reaching the end of the stream.
concreteNext
in class BufferedTimeIterator<Object[]>
public final Sample<Object[]> peekUpscaleNext(Interval interval)
peekUpscaleNext
in interface UpscalableIterator<Object[]>
interval
- The interval to upscale the values withCopyright © 2019. All rights reserved.