|
|||||||||
| 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.ResultSetNode
org.apache.derby.impl.sql.compile.FromTable
org.apache.derby.impl.sql.compile.SingleChildResultSetNode
org.apache.derby.impl.sql.compile.OrderByNode
public class OrderByNode
An OrderByNode represents a result set for a sort operation for an order by list. It is expected to only be generated at the end of optimization, once we have determined that a sort is required.
| Field Summary | |
|---|---|
(package private) OrderByList |
orderByList
|
| Fields inherited from class org.apache.derby.impl.sql.compile.SingleChildResultSetNode |
|---|
childResult, hasTrulyTheBestAccessPath |
| Fields inherited from class org.apache.derby.impl.sql.compile.FromTable |
|---|
ADD_PLAN, bestAccessPath, bestCostEstimate, bestSortAvoidancePath, correlationName, corrTableName, currentAccessPath, hashKeyColumns, initialCapacity, level, LOAD_PLAN, loadFactor, maxCapacity, origTableName, REMOVE_PLAN, tableNumber, tableProperties, trulyTheBestAccessPath, userSpecifiedJoinStrategy |
| Fields inherited from class org.apache.derby.impl.sql.compile.ResultSetNode |
|---|
costEstimate, cursorTargetTable, finalCostEstimate, insertSource, optimizer, referencedTableMap, resultColumns, resultSetNumber, scratchCostEstimate, statementResultSet |
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
OrderByNode()
|
|
| Method Summary | |
|---|---|
void |
generate(ActivationClassBuilder acb,
MethodBuilder mb)
generate the distinct result set operating over the source resultset. |
void |
init(java.lang.Object childResult,
java.lang.Object orderByList,
java.lang.Object tableProperties)
Initializer for a OrderByNode. |
(package private) ResultColumnDescriptor[] |
makeResultDescriptors()
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.sql.compile.Optimizable |
|---|
getDataDictionary, getReferencedTableMap, getResultSetNumber |
| Field Detail |
|---|
OrderByList orderByList
| Constructor Detail |
|---|
public OrderByNode()
| Method Detail |
|---|
public void init(java.lang.Object childResult,
java.lang.Object orderByList,
java.lang.Object tableProperties)
throws StandardException
init in interface Nodeinit in class QueryTreeNodechildResult - The child ResultSetNodeorderByList - The order by list.tableProperties - Properties list associated with the table
StandardException - Thrown on errorpublic void printSubNodes(int depth)
printSubNodes in class SingleChildResultSetNodedepth - The depth of this node in the treeResultColumnDescriptor[] makeResultDescriptors()
makeResultDescriptors in class ResultSetNode
public void generate(ActivationClassBuilder acb,
MethodBuilder mb)
throws StandardException
generate in class QueryTreeNodeacb - The ActivationClassBuilder for the class being builtmb - The method for the generated code to go into
StandardException - Thrown on error
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||