java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, ColumnOrdering
public class IndexColumnOrder extends java.lang.Object implements ColumnOrdering, Formatable
Modifier and Type | Field | 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 | 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 | 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 ColumnOrdering
public boolean getIsAscending()
getIsAscending
in interface ColumnOrdering
public boolean getIsNullsOrderedLow()
getIsNullsOrderedLow
in interface ColumnOrdering
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- 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.Externalizable
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.