public class AggregatorMinMaxEver extends java.lang.Object implements AggregationMethod
Modifier and Type | Field and Description |
---|---|
protected java.lang.Comparable |
currentMinMax |
protected MinMaxTypeEnum |
minMaxTypeEnum |
Constructor and Description |
---|
AggregatorMinMaxEver(MinMaxTypeEnum minMaxTypeEnum)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static void |
applyEnterCodegen(AggregationMethodFactoryMinMax forge,
int column,
CodegenMethodNode method,
ExprForgeCodegenSymbol symbols,
ExprForge[] forges,
CodegenClassScope classScope) |
void |
clear()
Clear out the collection.
|
static void |
clearCodegen(int column,
CodegenMethodNode method,
CodegenClassScope classScope) |
void |
enter(java.lang.Object object)
Apply the value as entering aggregation (entering window).
|
java.lang.Comparable |
getCurrentMinMax() |
java.lang.Object |
getValue()
Returns the current value held.
|
static void |
getValueCodegen(int column,
CodegenMethodNode method) |
void |
leave(java.lang.Object object)
Apply the value as leaving aggregation (leaving window).
|
static void |
rowMemberCodegen(int column,
CodegenCtor ctor,
CodegenMembersColumnized membersColumnized) |
void |
setCurrentMinMax(java.lang.Comparable currentMinMax) |
protected final MinMaxTypeEnum minMaxTypeEnum
protected java.lang.Comparable currentMinMax
public AggregatorMinMaxEver(MinMaxTypeEnum minMaxTypeEnum)
minMaxTypeEnum
- - enum indicating to return minimum or maximum valuespublic static void rowMemberCodegen(int column, CodegenCtor ctor, CodegenMembersColumnized membersColumnized)
public void enter(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
enter
in interface AggregationMethod
object
- to add to aggregatepublic static void applyEnterCodegen(AggregationMethodFactoryMinMax forge, int column, CodegenMethodNode method, ExprForgeCodegenSymbol symbols, ExprForge[] forges, CodegenClassScope classScope)
public void leave(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
leave
in interface AggregationMethod
object
- to remove from aggregatepublic void clear()
AggregationMethod
clear
in interface AggregationMethod
public static void clearCodegen(int column, CodegenMethodNode method, CodegenClassScope classScope)
public java.lang.Object getValue()
AggregationMethod
getValue
in interface AggregationMethod
public static void getValueCodegen(int column, CodegenMethodNode method)
public void setCurrentMinMax(java.lang.Comparable currentMinMax)
public java.lang.Comparable getCurrentMinMax()