|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.tinyos.tinydb.AggExpr
Class to represent an aggregation expression. Aggregates are of the form: [aggf(fielda),groupby(fieldb)] Aggf is an aggregation function from AggOp, and groupby may be NO_GROUPING, indicating an ungrouped aggregate
Field Summary | |
static short |
NO_GROUPING
|
Constructor Summary | |
AggExpr(short field,
net.tinyos.tinydb.AggOp op)
Create an aggregate expression and set the groupBy field later. |
|
AggExpr(short field,
net.tinyos.tinydb.AggOp op,
short groupBy)
Create an aggregate expression applying the specified operation to field, grouping by field groupBy. |
|
AggExpr(short field,
java.lang.String fieldOp,
short fieldConst,
net.tinyos.tinydb.AggOp op)
|
|
AggExpr(short field,
java.lang.String fieldOp,
short fieldConst,
net.tinyos.tinydb.AggOp op,
short groupBy)
Create an aggregate expression that applies a simple arithmetic expression to the field before applying the aggregate operator |
Method Summary | |
net.tinyos.tinydb.AggOp |
getAgg()
|
byte |
getAggOpCode()
|
short |
getField()
Return the id of the field this expression applies to |
short |
getFieldConst()
fieldConst is the constant in the arithmetic operation specified by fieldOp |
short |
getFieldOp()
fieldOp is a constant representing a simple arithmetic operator that will be performed on the value of the attribute before the aggregate is computed. |
short |
getGroupField()
|
short |
getGroupFieldConst()
groupFieldConst is a constant value that is used inthe arithmetic operation specified by groupFieldOp |
short |
getGroupFieldOp()
groupFieldOp is a constant representing a simple arithmetic operator that will be performed on the value of the group by attribute before the groups are defined. |
boolean |
isAgg()
Return true if this expression is an aggregator |
boolean |
isTemporalAgg()
|
void |
setFieldConst(short fieldConst)
|
void |
setFieldOp(java.lang.String fieldOpStr)
|
void |
setGroupField(short groupBy)
|
void |
setGroupFieldConst(short groupFieldConst)
|
void |
setGroupFieldOp(java.lang.String groupFieldOpStr)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short NO_GROUPING
Constructor Detail |
public AggExpr(short field, net.tinyos.tinydb.AggOp op, short groupBy)
field
- The field to aggregateop
- The operator to aggregate withgroupBy
- The field to group by, or NO_GROUPINGpublic AggExpr(short field, java.lang.String fieldOp, short fieldConst, net.tinyos.tinydb.AggOp op, short groupBy)
public AggExpr(short field, net.tinyos.tinydb.AggOp op)
public AggExpr(short field, java.lang.String fieldOp, short fieldConst, net.tinyos.tinydb.AggOp op)
Method Detail |
public boolean isAgg()
QueryExpr
isAgg
in interface QueryExpr
public boolean isTemporalAgg()
public short getField()
QueryExpr
getField
in interface QueryExpr
public short getGroupField()
public void setGroupField(short groupBy)
public byte getAggOpCode()
public net.tinyos.tinydb.AggOp getAgg()
public short getGroupFieldOp()
public void setGroupFieldOp(java.lang.String groupFieldOpStr)
public short getGroupFieldConst()
public void setGroupFieldConst(short groupFieldConst)
public short getFieldOp()
getFieldOp
in interface QueryExpr
public void setFieldOp(java.lang.String fieldOpStr)
public short getFieldConst()
getFieldConst
in interface QueryExpr
public void setFieldConst(short fieldConst)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |