Package net.vleo.timel.iterator
Class NestedLoopUpscalableIterator<S,D>
- java.lang.Object
-
- net.vleo.timel.iterator.NestedLoopTimeIterator<S,D>
-
- net.vleo.timel.iterator.NestedLoopUpscalableIterator<S,D>
-
- Type Parameters:
S
- Source value Java typeD
- Target value Java type
- All Implemented Interfaces:
TimeIterator<D>
,UpscalableIterator<D>
public abstract class NestedLoopUpscalableIterator<S,D> extends NestedLoopTimeIterator<S,D> implements UpscalableIterator<D>
Upscalable iterator version of NestedLoopTimeIterator.- Author:
- Andrea Leofreddi
-
-
Field Summary
-
Fields inherited from class net.vleo.timel.iterator.NestedLoopTimeIterator
iterator, nestedIterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NestedLoopUpscalableIterator(TimeIterator<S> iterator)
Protected constructor.
-
Method Summary
Modifier and Type Method Description protected abstract UpscalableIterator<D>
nestedIterator(Sample<S> value)
Sample<D>
peekUpscaleNext(Interval interval)
Retrieve a sample which contains the upscaled value, relative to the given interval, for the next value.String
toString()
-
Methods inherited from class net.vleo.timel.iterator.NestedLoopTimeIterator
hasNext, next, peekNext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.vleo.timel.iterator.TimeIterator
hasNext, next, peekNext
-
-
-
-
Constructor Detail
-
NestedLoopUpscalableIterator
protected NestedLoopUpscalableIterator(TimeIterator<S> iterator)
Protected constructor.- Parameters:
iterator
- Source iterator
-
-
Method Detail
-
nestedIterator
protected abstract UpscalableIterator<D> nestedIterator(Sample<S> value)
- Specified by:
nestedIterator
in classNestedLoopTimeIterator<S,D>
-
peekUpscaleNext
public final Sample<D> peekUpscaleNext(Interval interval)
Description copied from interface:UpscalableIterator
Retrieve a sample which contains the upscaled value, relative to the given interval, for the next value. As this operation peeks the next value, the iterator is not moved forward.- Specified by:
peekUpscaleNext
in interfaceUpscalableIterator<S>
- Parameters:
interval
- The interval to upscaler the value with- Returns:
- The upscaled next
-
toString
public String toString()
- Overrides:
toString
in classNestedLoopTimeIterator<S,D>
-
-