|
||||||||||
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(String fldname)
Creates a max aggregation function for the specified field. |
Method Summary | |
---|---|
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(String fldname)
fldname
- the name of the aggregated fieldMethod Detail |
---|
public void processFirst(Scan s)
processFirst
in interface AggregationFn
s
- the scan to aggregate over.AggregationFn.processFirst(simpledb.query.Scan)
public void processNext(Scan s)
processNext
in interface AggregationFn
s
- the scan to aggregate over.AggregationFn.processNext(simpledb.query.Scan)
public String fieldName()
fieldName
in interface AggregationFn
AggregationFn.fieldName()
public Constant value()
value
in interface AggregationFn
AggregationFn.value()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |