|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.materialize.CountFn
public class CountFn
The count aggregation function.
| Constructor Summary | |
|---|---|
CountFn(String fldname)
Creates a count aggregation function for the specified field. |
|
| Method Summary | |
|---|---|
String |
fieldName()
Returns the field's name, prepended by "countof". |
void |
processFirst(Scan s)
Starts a new count. |
void |
processNext(Scan s)
Since SimpleDB does not support null values, this method always increments the count, regardless of the field. |
Constant |
value()
Returns the current count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountFn(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 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 | |||||||||