public class AggregatorFirstEver extends java.lang.Object implements AggregationMethod
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
firstValue |
protected boolean |
isSet |
Constructor and Description |
---|
AggregatorFirstEver() |
Modifier and Type | Method and Description |
---|---|
static void |
applyEnterCodegen(boolean hasFilter,
int column,
CodegenMethodNode method,
ExprForgeCodegenSymbol symbols,
ExprForge[] forges,
CodegenClassScope classScope) |
void |
clear()
Clear out the collection.
|
static void |
clearCodegen(int column,
CodegenMethodNode method) |
void |
enter(java.lang.Object object)
Apply the value as entering aggregation (entering window).
|
java.lang.Object |
getFirstValue() |
java.lang.Object |
getValue()
Returns the current value held.
|
static void |
getValueCodegen(int column,
CodegenMethodNode method) |
boolean |
isSet() |
void |
leave(java.lang.Object object)
Apply the value as leaving aggregation (leaving window).
|
static void |
rowMemberCodegen(int column,
CodegenCtor ctor,
CodegenMembersColumnized membersColumnized) |
void |
setFirstValue(java.lang.Object firstValue) |
void |
setSet(boolean set) |
public 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(boolean hasFilter, 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)
public java.lang.Object getValue()
AggregationMethod
getValue
in interface AggregationMethod
public static void getValueCodegen(int column, CodegenMethodNode method)
public boolean isSet()
public void setSet(boolean set)
public java.lang.Object getFirstValue()
public void setFirstValue(java.lang.Object firstValue)