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)
AggregationFnprocessFirst in class AggregationFnrec - a record to aggregate over.public void processNext(Record rec)
AggregationFnprocessNext in class AggregationFnrec - a rec to aggregate over.public String argumentFieldName()
AggregationFnargumentFieldName in class AggregationFnpublic String fieldName()
AggregationFnfieldName in class AggregationFnpublic Constant value()
AggregationFnvalue in class AggregationFnpublic Type fieldType()
AggregationFnfieldType in class AggregationFnpublic boolean isArgumentTypeDependent()
AggregationFnisArgumentTypeDependent in class AggregationFnpublic int hashCode()
AggregationFnhashCode in class AggregationFnpublic boolean equals(Object other)
AggregationFnequals in class AggregationFnCopyright © 2022 VanillaDB Organization. All rights reserved.