org.apache.derby.impl.sql.execute
Class IndexColumnOrder
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.IndexColumnOrder
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ColumnOrdering
public class IndexColumnOrder extends java.lang.Object implements ColumnOrdering, Formatable
Basic implementation of ColumnOrdering. Not sure what to tell callers about 0-based versus 1-based numbering. Assume 0-based for now.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description IndexColumnOrder()Niladic constructor for formatableIndexColumnOrder(int colNum)IndexColumnOrder(int colNum, boolean ascending)IndexColumnOrder(int colNum, boolean ascending, boolean nullsLow)constructor used by the ORDER BY clause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetColumnId()booleangetIsAscending()booleangetIsNullsOrderedLow()Indicate whether NULL values should be ordered below non-NULL.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)Write this object out
-
-
-
Constructor Detail
-
IndexColumnOrder
public IndexColumnOrder()
Niladic constructor for formatable
-
IndexColumnOrder
public IndexColumnOrder(int colNum)
-
IndexColumnOrder
public IndexColumnOrder(int colNum, boolean ascending)
-
IndexColumnOrder
public IndexColumnOrder(int colNum, boolean ascending, boolean nullsLow)constructor used by the ORDER BY clause. This version of the constructor is used by the compiler when it processes an ORDER BY clause in a SQL statement. For such statements, the user gets to control whether NULL values are ordered as lower than all non-NULL values, or higher than all non-NULL values.- Parameters:
colNum- number of this columnascending- whether the ORDER BY is ascendeing or descendingnullsLow- whether nulls should be ordered low
-
-
Method Detail
-
getColumnId
public int getColumnId()
- Specified by:
getColumnIdin interfaceColumnOrdering
-
getIsAscending
public boolean getIsAscending()
- Specified by:
getIsAscendingin interfaceColumnOrdering
-
getIsNullsOrderedLow
public boolean getIsNullsOrderedLow()
Indicate whether NULL values should be ordered below non-NULL. This function returns TRUE if the user has specified, via theclause in the ORDER BY clause, that NULL values of this column should sort lower than non-NULL values. - Specified by:
getIsNullsOrderedLowin interfaceColumnOrdering- Returns:
- whether nulls should sort low
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object out- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here- Throws:
java.io.IOException- thrown on error
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG