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