public class IndexColumnOrder extends java.lang.Object implements ColumnOrdering, Formatable
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
ascending |
(package private) int |
colNum
This class implements Formatable.
|
(package private) boolean |
nullsOrderedLow
indicate whether NULL values should sort low.
|
| Constructor and Description |
|---|
IndexColumnOrder()
Niladic constructor for formatable
|
IndexColumnOrder(int colNum) |
IndexColumnOrder(int colNum,
boolean ascending) |
IndexColumnOrder(int colNum,
boolean ascending,
boolean nullsLow)
constructor used by the ORDER BY clause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnId() |
boolean |
getIsAscending() |
boolean |
getIsNullsOrderedLow()
Indicate whether NULL values should be ordered below non-NULL.
|
int |
getTypeFormatId()
Get the formatID which corresponds to this class.
|
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects.
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out)
Write this object out
|
int colNum
boolean ascending
boolean nullsOrderedLow
public IndexColumnOrder()
public IndexColumnOrder(int colNum)
public IndexColumnOrder(int colNum,
boolean ascending)
public IndexColumnOrder(int colNum,
boolean ascending,
boolean nullsLow)
colNum - number of this columnascending - whether the ORDER BY is ascendeing or descendingnullsLow - whether nulls should be ordered lowpublic int getColumnId()
getColumnId in interface ColumnOrderingpublic boolean getIsAscending()
getIsAscending in interface ColumnOrderingpublic boolean getIsNullsOrderedLow()
getIsNullsOrderedLow in interface ColumnOrderingpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.