public abstract class AggregationFn extends Object
Note that the aggregation function should implement Object.hashCode()
and Object.equals(Object)
which are used to verify the equality of
aggregation functions.
Constructor and Description |
---|
AggregationFn() |
Modifier and Type | Method and Description |
---|---|
abstract String |
argumentFieldName()
Returns the name of the argument field.
|
abstract boolean |
equals(Object other)
Returns a hash code value for the object.
|
abstract String |
fieldName()
Returns the name of the new aggregation field.
|
abstract Type |
fieldType()
Returns the type of aggregation value.
|
abstract int |
hashCode()
Returns a hash code value for the object.
|
abstract boolean |
isArgumentTypeDependent()
Returns true if the type of aggregation value is depend on the argument
field.
|
abstract void |
processFirst(Record rec)
Processes the specified record by regarding it as the first record in a
group.
|
abstract void |
processNext(Record rec)
Processes the specified record by regarding it as a following up record
in a group.
|
abstract Constant |
value()
Returns the computed aggregation value given the records processed
previously.
|
public abstract void processFirst(Record rec)
rec
- a record to aggregate over.public abstract void processNext(Record rec)
rec
- a rec to aggregate over.public abstract String argumentFieldName()
public abstract String fieldName()
public abstract Constant value()
public abstract Type fieldType()
public abstract boolean isArgumentTypeDependent()
public abstract int hashCode()
Copyright © 2022 VanillaDB Organization. All rights reserved.