|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.OrderedColumn
org.apache.derby.impl.sql.compile.OrderByColumn
An OrderByColumn is a column in the ORDER BY clause. An OrderByColumn can be ordered ascending or descending. We need to make sure that the named columns are columns in that query, and that positions are within range.
Field Summary | |
private boolean |
ascending
|
private java.lang.String |
columnName
|
private java.lang.String |
correlationName
|
private ResultColumn |
resultCol
|
private java.lang.String |
schemaName
|
Fields inherited from class org.apache.derby.impl.sql.compile.OrderedColumn |
columnPosition, UNMATCHEDPOSITION |
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
OrderByColumn()
|
Method Summary | |
void |
bindOrderByColumn(ResultSetNode target)
Bind this column. |
(package private) boolean |
constantColumn(PredicateList whereClause)
Is this OrderByColumn constant, according to the given predicate list? |
java.lang.String |
getColumnName()
Get the name of this column |
(package private) ValueNode |
getNonRedundantExpression()
Get the underlying expression, skipping over ResultColumns that are marked redundant. |
(package private) ResultColumn |
getResultColumn()
Get the underlying ResultColumn. |
void |
init(java.lang.Object columnPosition)
Initializer. |
void |
init(java.lang.Object columnName,
java.lang.Object correlationName,
java.lang.Object schemaName)
Initializer. |
boolean |
isAscending()
Get the column order. |
void |
pullUpOrderByColumn(ResultSetNode target)
Pull up this orderby column if it doesn't appear in the resultset |
(package private) void |
remapColumnReferencesToExpressions()
Remap all the column references under this OrderByColumn to their expressions. |
(package private) void |
resetToSourceRC()
Order by columns now point to the PRN above the node of interest. |
void |
setDescending()
Mark the column as descending order |
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class org.apache.derby.impl.sql.compile.OrderedColumn |
getColumnPosition, setColumnPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ResultColumn resultCol
private java.lang.String columnName
private java.lang.String correlationName
private java.lang.String schemaName
private boolean ascending
Constructor Detail |
public OrderByColumn()
Method Detail |
public void init(java.lang.Object columnName, java.lang.Object correlationName, java.lang.Object schemaName)
init
in class QueryTreeNode
columnName
- The name of the column being referencedcorrelationName
- The correlation name, if anypublic void init(java.lang.Object columnPosition)
init
in class QueryTreeNode
columnPosition
- The position of the column being referencedpublic java.lang.String toString()
toString
in class OrderedColumn
public java.lang.String getColumnName()
public void setDescending()
public boolean isAscending()
isAscending
in class OrderedColumn
ResultColumn getResultColumn()
ValueNode getNonRedundantExpression()
public void bindOrderByColumn(ResultSetNode target) throws StandardException
target
- The result set being selected from
StandardException
- Thrown on error
StandardException
- Thrown when column not foundpublic void pullUpOrderByColumn(ResultSetNode target) throws StandardException
target
- The result set being selected from
StandardException
void resetToSourceRC()
boolean constantColumn(PredicateList whereClause)
void remapColumnReferencesToExpressions() throws StandardException
StandardException
- Thrown on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |