Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

public abstract Class OrderedColumn

extends QueryTreeNode
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.compile.GroupByColumn, org.apache.derby.impl.sql.compile.OrderByColumn
Imports
org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager

An ordered column has position. It is an abstract class for group by and order by columns.

Field Summary

Modifier and TypeField and Description
protected int
protected static final int
Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
AUTOINCREMENT_CREATE_MODIFYAUTOINCREMENT_CYCLEAUTOINCREMENT_INC_INDEXAUTOINCREMENT_IS_AUTOINCREMENT_INDEXAUTOINCREMENT_START_INDEX

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv int

Returns:

The position of this column
getColumnPosition
()

Get the position of this column

pack-priv boolean

Returns:

true
isAscending
()

Indicate whether this column is ascending or not.

pack-priv boolean

Returns:

false
isNullsOrderedLow
()

Indicate whether this column should be ordered NULLS low.

pack-priv void
setColumnPosition(int columnPosition)

Set the position of this column

public String

Returns:

This object as a String
toString
()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
acceptacceptChildrenaddTagaddUDTUsagePrivaddUDTUsagePrivbindOffsetFetchbindRowMultiSetbindUserCatalogTypebindUserTypecheckReliabilitycheckReliabilityconvertDefaultNodecopyTagsFromcreateTypeDependencydebugFlushdebugPrintdisablePrivilegeCollectionformatNodeStringgenerategenerateAuthorizeCheckgetBeginOffsetgetClassFactorygetCompilerContextgetContextgetContextManagergetDataDictionarygetDependencyManagergetEndOffsetgetExecutionFactorygetGenericConstantActionFactorygetIntPropertygetLanguageConnectionContextgetLongPropertygetNullNodegetOffsetOrderedNodesgetOptimizerFactorygetOptimizerTracergetParameterTypesgetSchemaDescriptorgetSchemaDescriptorgetStatementTypegetTableDescriptorgetTypeCompilergetUDTDescisAtomicisPrivilegeCollectionRequiredisSessionSchemaisSessionSchemamakeConstantActionmakeTableNamemakeTableNamenodeHeaderoptimizerTracingIsOnorReliabilityparseSearchConditionparseStatementprintLabelprintSubNodesreferencesSessionSchemaresolveTableToSynonymsetBeginOffsetsetEndOffsetsetRefActionInfostackPrinttaggedWithtreePrinttreePrintverifyClassExist

Field Detail

columnPositionback to summary
protected int columnPosition
UNMATCHEDPOSITIONback to summary
protected static final int UNMATCHEDPOSITION

Constructor Detail

OrderedColumnback to summary
public OrderedColumn(ContextManager cm)

Method Detail

getColumnPositionback to summary
pack-priv int getColumnPosition()

Get the position of this column

Returns:int

The position of this column

isAscendingback to summary
pack-priv 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:boolean

true

isNullsOrderedLowback to summary
pack-priv 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:boolean

false

setColumnPositionback to summary
pack-priv void setColumnPosition(int columnPosition)

Set the position of this column

toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Returns:String

This object as a String

Annotations
@Override