|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.materialize.MaxFn
public class MaxFn
The max aggregation function.
| Constructor Summary | |
|---|---|
MaxFn(java.lang.String fldname)
Creates a max aggregation function for the specified field. |
|
| Method Summary | |
|---|---|
java.lang.String |
fieldName()
Returns the field's name, prepended by "maxof". |
void |
processFirst(Scan s)
Starts a new maximum to be the field value in the current record. |
void |
processNext(Scan s)
Replaces the current maximum by the field value in the current record, if it is higher. |
Constant |
value()
Returns the current maximum. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxFn(java.lang.String fldname)
fldname - the name of the aggregated field| Method Detail |
|---|
public void processFirst(Scan s)
processFirst in interface AggregationFns - the scan to aggregate over.AggregationFn.processFirst(simpledb.query.Scan)public void processNext(Scan s)
processNext in interface AggregationFns - the scan to aggregate over.AggregationFn.processNext(simpledb.query.Scan)public java.lang.String fieldName()
fieldName in interface AggregationFnAggregationFn.fieldName()public Constant value()
value in interface AggregationFnAggregationFn.value()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||