|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.engine.commands.AxionQueryContext
public class AxionQueryContext
AxionQueryContext holds metadata for the Query or Sub-Query.
Constructor Summary | |
---|---|
AxionQueryContext()
|
Method Summary | |
---|---|
void |
addAllSelectToResolvedSelect()
|
void |
addFrom(TableIdentifier table)
Adds a TableIdentifier to the list of tables being selected from. |
void |
addOrderBy(OrderNode orderby)
Appends an OrderNode to the order by clause for this query |
void |
addSelect(Selectable column)
Adds a Selectable to the list of items being selected. |
boolean |
foundAggregateFunction()
|
String |
getAliasName()
|
boolean |
getDistinct()
Indicates if the ResultSet generated from this object will contain
distinct tuples. |
FromNode |
getFrom()
Gets the root FromNode for the select statement. |
TableIdentifier |
getFrom(int i)
Gets the i th table being selected. |
TableIdentifier[] |
getFromArray()
|
int |
getFromCount()
Gets the number of tables being from. |
List |
getGroupBy()
Gets Selectable in Group by clause. |
Selectable |
getGroupBy(int i)
Gets Selectable in Group by clause. |
int |
getGroupByCount()
Gets the number of Slectable s group by in my query. |
Literal |
getLimit()
|
Literal |
getOffset()
|
List |
getOrderBy()
Gets the List of OrderNode in my order by clause. |
OrderNode |
getOrderBy(int i)
Gets the i th OrderNode in my order by clause. |
int |
getOrderByCount()
Gets the number of OrderNode s in my query. |
RowDecorator |
getParentRow()
|
TableIdentifier[] |
getParentTables()
|
List |
getResolvedSelect()
|
RowIterator |
getRows()
|
List |
getSelect()
|
Selectable |
getSelect(int i)
Gets the i th Selectable being selected. |
int |
getSelectCount()
Gets the number of Selectable s being selected. |
Selectable[] |
getSelected()
|
TableIdentifier[] |
getTables()
|
Selectable |
getWhere()
Returns the where tree for this query. |
boolean |
isCorrelatedSubQuery()
|
boolean |
isExplain()
|
boolean |
isResolved()
|
boolean |
isTablePartOfSelect(TableIdentifier tid)
|
boolean |
isUpdatableIteratorRequested()
|
void |
setAliasName(String name)
|
void |
setCorrelatedSubQuery(boolean isCorrelatedSubQuery)
|
void |
setDistinct(boolean distinct)
Determines if the ResultSet generated from this object will
contain distinct tuples (default is false). |
void |
setExplain(boolean explain)
|
void |
setFoundAggregateFunction(boolean found)
|
void |
setFrom(FromNode from)
Sets the root FromNode for the select statement. |
void |
setGroupBy(List groupby)
Sets the group by clause for this query. |
void |
setLimit(Literal limit)
|
void |
setOffset(Literal offset)
|
void |
setOrderBy(List orderby)
Sets the order by clause for this query. |
void |
setParentRow(RowDecorator row)
|
void |
setParentTables(TableIdentifier[] tables)
|
void |
setResolved(boolean resolved)
|
void |
setResolvedSelect(List select)
|
void |
setRows(RowIterator rows)
|
void |
setSelect(int i,
Selectable sel)
Sets the i th Selectable being selected. |
void |
setSelect(List columns)
|
void |
setSelected(Selectable[] selected)
|
void |
setTables(TableIdentifier[] tables)
|
void |
setUpdatableIteratorRequested(boolean iteratorUpdatable)
|
void |
setWhere(Selectable where)
Sets the where tree for this query. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AxionQueryContext()
Method Detail |
---|
public void addAllSelectToResolvedSelect()
public void addFrom(TableIdentifier table)
TableIdentifier
to the list of tables being selected from.
table
- a TableIdentifier
IllegalStateException
- if I have already been resolvedpublic void addOrderBy(OrderNode orderby)
OrderNode
to the order by clause for this query
orderby
- an OrderNode
to append
IllegalStateException
- if I have already been resolvedpublic void addSelect(Selectable column)
Selectable
to the list of items being selected.
column
- the Selectable
to add
IllegalStateException
- if I have already been resolvedpublic boolean foundAggregateFunction()
public String getAliasName()
public boolean getDistinct()
ResultSet
generated from this object will contain
distinct tuples.
true
for distinct tuplespublic FromNode getFrom()
FromNode
for the select statement.
public TableIdentifier getFrom(int i)
i
- the zero-based indexpublic TableIdentifier[] getFromArray()
public int getFromCount()
public List getGroupBy()
public Selectable getGroupBy(int i)
i
- the zero-based indexpublic int getGroupByCount()
Slectable
s group by in my query.
public Literal getLimit()
public Literal getOffset()
public List getOrderBy()
OrderNode
in my order by clause.
public OrderNode getOrderBy(int i)
OrderNode
in my order by clause. Clients
should treat the returned value as immutable.
i
- the zero-based indexpublic int getOrderByCount()
OrderNode
s in my query.
public RowDecorator getParentRow()
public TableIdentifier[] getParentTables()
public List getResolvedSelect()
public RowIterator getRows()
public List getSelect()
public Selectable getSelect(int i)
Selectable
being selected. Clients should
treat the returned value as immutable.
i
- the zero-based indexpublic int getSelectCount()
Selectable
s being selected.
public Selectable[] getSelected()
public TableIdentifier[] getTables()
public Selectable getWhere()
where tree
for this query. Clients should treat the
returned value as immutable.
where tree
for this query, or null.public boolean isCorrelatedSubQuery()
public boolean isExplain()
public boolean isResolved()
public boolean isTablePartOfSelect(TableIdentifier tid)
public boolean isUpdatableIteratorRequested()
public void setAliasName(String name)
public void setCorrelatedSubQuery(boolean isCorrelatedSubQuery)
public void setDistinct(boolean distinct)
ResultSet
generated from this object will
contain distinct tuples (default is false).
distinct
- true for distinct tuplespublic void setExplain(boolean explain)
public void setFoundAggregateFunction(boolean found)
public void setFrom(FromNode from)
FromNode
for the select statement.
public void setGroupBy(List groupby)
groupby
- a List
of Selectable
s.
IllegalStateException
- if I have already been resolvedpublic void setLimit(Literal limit)
public void setOffset(Literal offset)
public void setOrderBy(List orderby)
orderby
- a List
of OrderNode
s.
IllegalStateException
- if I have already been resolvedpublic void setParentRow(RowDecorator row)
public void setParentTables(TableIdentifier[] tables)
public void setResolved(boolean resolved)
public void setResolvedSelect(List select)
public void setRows(RowIterator rows)
public void setSelect(int i, Selectable sel)
Selectable
being selected.
i
- the zero-based indexsel
- the new Selectable
IllegalStateException
- if I have already been resolvedpublic void setSelect(List columns)
public void setSelected(Selectable[] selected)
public void setTables(TableIdentifier[] tables)
public void setUpdatableIteratorRequested(boolean iteratorUpdatable)
public void setWhere(Selectable where)
where tree
for this query.
where
- a boolean valued Selectable
IllegalStateException
- if I have already been resolvedpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |