public class MinMaxAggWindow extends AbstractDataWindow
Modifier and Type | Class and Description |
---|---|
static class |
MinMaxAggWindow.MaxAggregationWindow |
static class |
MinMaxAggWindow.MinAggregationWindow |
protected static class |
MinMaxAggWindow.MinOrMaxAggregationWindow |
Constructor and Description |
---|
MinMaxAggWindow(long start,
long end) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(HistoricalValue value)
Adds a value to the window.
|
void |
finalize(HistoricalValue trailingValue)
Provides the window with the value that comes next, outside of the window, in order to finalize calculations.
|
HistoricalValue |
getEntryValue()
Returns the edge value of the window, which will be used for interpolation from the previous value.
|
HistoricalValue |
getExitValue()
Returns the "exit" value of this window.
|
HistoricalValue |
getValue(int level)
Returns the value for the specified "level" of the window.
|
boolean |
hasMore(int level) |
void |
initialize(HistoricalValue entryValue)
Provides the window with the previous window's value.
|
protected boolean |
isEntry(HistoricalValue val) |
protected boolean |
isLatest(HistoricalValue val) |
protected boolean |
isMax(HistoricalValue val) |
protected boolean |
isMin(HistoricalValue val) |
protected boolean |
isMinFirst() |
getEndTime, getStartTime
public boolean hasMore(int level)
protected boolean isMinFirst()
public HistoricalValue getValue(int level)
DataWindow
public HistoricalValue getEntryValue()
DataWindow
public HistoricalValue getExitValue()
DataWindow
public void initialize(HistoricalValue entryValue)
DataWindow
public void finalize(HistoricalValue trailingValue)
DataWindow
public void addValue(HistoricalValue value)
DataWindow
protected boolean isMin(HistoricalValue val)
protected boolean isMax(HistoricalValue val)
protected boolean isEntry(HistoricalValue val)
protected boolean isLatest(HistoricalValue val)