|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Group
public final class Group
Implementation of the group by clause.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Constructor Summary | |
|---|---|
Group(Grp[] g)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(QueryContext ctx)
Adds the items to be grouped. |
Expr |
comp(QueryContext ctx)
Optimizes and compiles the expression. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
Group |
remove(Var v)
Removes the specified variable in a sub expression. |
String |
toString()
|
boolean |
uses(Expr.Use use,
QueryContext ctx)
Indicates if an expression uses the specified type. |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, atomic, checkCtx, checkDbl, checkItr, duplicates, e, ebv, i, indexAccessible, indexEquivalent, removable, returned, sameAs, size, test, v |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info, name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Group(Grp[] g)
g - groups| Method Detail |
|---|
public Expr comp(QueryContext ctx)
throws QueryException
Expr
comp in class Exprctx - query context
QueryException - query exceptionpublic Iter iter(QueryContext ctx)
ExprExpr.atomic(org.basex.query.QueryContext) must be implemented.
iter in class Exprctx - query context
public void add(QueryContext ctx)
throws QueryException
ctx - query context
QueryException - query exception
public boolean uses(Expr.Use use,
QueryContext ctx)
Exprtrue is returned by default and thus assumed as "worst-case".
uses in class Expruse - use type to be checkedctx - query context
public Group remove(Var v)
Expr
remove in class Exprv - variable to be removed
public void plan(Serializer ser)
throws IOException
ExprInfo
plan in class ExprInfoser - serializer
IOException - I/O exceptionpublic String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||