Class OrderedColumn
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.OrderedColumn
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
GroupByColumn
,OrderByColumn
An ordered column has position. It is an
abstract class for group by and order by
columns.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected static final int
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Get the position of this column(package private) boolean
Indicate whether this column is ascending or not.(package private) boolean
Indicate whether this column should be ordered NULLS low.(package private) void
setColumnPosition
(int columnPosition) Set the position of this columntoString()
Convert this object to a String.Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
-
Field Details
-
UNMATCHEDPOSITION
protected static final int UNMATCHEDPOSITION- See Also:
-
columnPosition
protected int columnPosition
-
-
Constructor Details
-
OrderedColumn
-
-
Method Details
-
isAscending
boolean isAscending()Indicate whether this column is ascending or not. By default assume that all ordered columns are necessarily ascending. If this class is inherited by someone that can be desceneded, they are expected to override this method.- Returns:
- true
-
isNullsOrderedLow
boolean isNullsOrderedLow()Indicate whether this column should be ordered NULLS low. By default we assume that all ordered columns are ordered with NULLS higher than non-null values. If this class is inherited by someone that can be specified to have NULLs ordered lower than non-null values, they are expected to override this method.- Returns:
- false
-
toString
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.- Overrides:
toString
in classQueryTreeNode
- Returns:
- This object as a String
-
getColumnPosition
int getColumnPosition()Get the position of this column- Returns:
- The position of this column
-
setColumnPosition
void setColumnPosition(int columnPosition) Set the position of this column
-