public class AxionQueryContext
extends java.lang.Object
Constructor and Description |
---|
AxionQueryContext() |
Modifier and Type | Method and Description |
---|---|
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. |
java.util.List |
createLiteralList() |
boolean |
foundAggregateFunction() |
java.lang.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.
|
java.util.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. |
Selectable |
getHaving() |
Literal |
getLimit() |
Literal |
getOffset() |
java.util.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() |
java.util.List |
getResolvedSelect() |
RowIterator |
getRows() |
java.util.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() |
int |
getTableCount() |
TableIdentifier[] |
getTables() |
TableIdentifier |
getTables(int i) |
Selectable |
getWhere()
Returns the
where tree for this query. |
boolean |
isCorrelatedSubQuery() |
boolean |
isExplain() |
boolean |
isResolved() |
boolean |
isTablePartOfSelect(TableIdentifier tid) |
void |
setAliasName(java.lang.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(java.util.List groupby)
Sets the group by clause for this query.
|
void |
setHaving(Selectable having) |
void |
setLimit(Literal limit) |
void |
setOffset(Literal offset) |
void |
setOrderBy(java.util.List orderby)
Sets the order by clause for this query.
|
void |
setParentRow(RowDecorator row) |
void |
setParentTables(TableIdentifier[] tables) |
void |
setResolved(boolean resolved) |
void |
setResolvedSelect(java.util.List select) |
void |
setRows(RowIterator rows) |
void |
setSelect(int i,
Selectable sel)
Sets the i th
Selectable being selected. |
void |
setSelect(java.util.List columns) |
void |
setSelected(Selectable[] selected) |
void |
setTables(TableIdentifier[] tables) |
void |
setWhere(Selectable where)
Sets the
where tree for this query. |
java.lang.String |
toString() |
public void addAllSelectToResolvedSelect()
public void addFrom(TableIdentifier table)
TableIdentifier
to the list of tables being selected from.table
- a TableIdentifier
java.lang.IllegalStateException
- if I have already been resolvedpublic void addOrderBy(OrderNode orderby)
OrderNode
to the order by clause for this queryorderby
- an OrderNode
to appendjava.lang.IllegalStateException
- if I have already been resolvedpublic void addSelect(Selectable column)
Selectable
to the list of items being selected.column
- the Selectable
to addjava.lang.IllegalStateException
- if I have already been resolvedpublic boolean foundAggregateFunction()
public java.lang.String getAliasName()
public boolean getDistinct()
ResultSet
generated from this object will contain
distinct tuples.true
for distinct tuplespublic TableIdentifier getFrom(int i)
i
- the zero-based indexpublic TableIdentifier[] getFromArray()
public int getFromCount()
public java.util.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 java.util.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 java.util.List getResolvedSelect()
public RowIterator getRows()
public java.util.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 TableIdentifier getTables(int i)
public int getTableCount()
public Selectable getWhere()
where tree
for this query. Clients should treat the
returned value as immutable.where tree
for this query, or null.public Selectable getHaving()
public boolean isCorrelatedSubQuery()
public boolean isExplain()
public boolean isResolved()
public boolean isTablePartOfSelect(TableIdentifier tid)
public void setAliasName(java.lang.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 setGroupBy(java.util.List groupby)
groupby
- a List
of Selectable
s.java.lang.IllegalStateException
- if I have already been resolvedpublic void setLimit(Literal limit)
public void setOffset(Literal offset)
public void setOrderBy(java.util.List orderby)
orderby
- a List
of OrderNode
s.java.lang.IllegalStateException
- if I have already been resolvedpublic void setParentRow(RowDecorator row)
public void setParentTables(TableIdentifier[] tables)
public void setResolved(boolean resolved)
public void setResolvedSelect(java.util.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
java.lang.IllegalStateException
- if I have already been resolvedpublic void setSelect(java.util.List columns)
public void setSelected(Selectable[] selected)
public void setTables(TableIdentifier[] tables)
public void setWhere(Selectable where)
where tree
for this query.where
- a boolean valued Selectable
java.lang.IllegalStateException
- if I have already been resolvedpublic void setHaving(Selectable having)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List createLiteralList()