| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.materialize.GroupByScan
public class GroupByScan
The Scan class for the groupby operator.
| Constructor Summary | |
|---|---|
GroupByScan(Scan s,
            Collection<String> groupfields,
            Collection<AggregationFn> aggfns)
Creates a groupby scan, given a grouped table scan.  | 
|
| Method Summary | |
|---|---|
 void | 
beforeFirst()
Positions the scan before the first group.  | 
 void | 
close()
Closes the scan by closing the underlying scan.  | 
 int | 
getInt(String fldname)
Gets the integer value of the specified field.  | 
 String | 
getString(String fldname)
Gets the string value of the specified field.  | 
 Constant | 
getVal(String fldname)
Gets the Constant value of the specified field.  | 
 boolean | 
hasField(String fldname)
Returns true if the scan has the specified field.  | 
 boolean | 
next()
Moves to the next group.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GroupByScan(Scan s,
                   Collection<String> groupfields,
                   Collection<AggregationFn> aggfns)
s - the grouped scangroupfields - the group fieldsaggfns - the aggregation functions| Method Detail | 
|---|
public void beforeFirst()
beforeFirst in interface ScanScan.beforeFirst()public boolean next()
next in interface ScanScan.next()public void close()
close in interface ScanScan.close()public Constant getVal(String fldname)
getVal in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public int getInt(String fldname)
getInt in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public String getString(String fldname)
getString in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public boolean hasField(String fldname)
Scan
hasField in interface Scanfldname - the name of the field
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||