org.eigenbase.rel
Class RelFieldCollation

java.lang.Object
  extended by org.eigenbase.rel.RelFieldCollation

public class RelFieldCollation
extends Object

RelFieldCollation defines the ordering for one field of a RelNode whose output is to be sorted.

TODO: collation sequence (including ASC/DESC)


Nested Class Summary
static class RelFieldCollation.Direction
          Direction that a field is ordered in.
 
Field Summary
private  RelFieldCollation.Direction direction
          Direction of sorting.
static RelFieldCollation[] emptyCollationArray
           
private  int fieldIndex
          0-based index of field being sorted.
 
Constructor Summary
RelFieldCollation(int fieldIndex)
          Creates an ascending field collation.
RelFieldCollation(int fieldIndex, RelFieldCollation.Direction direction)
          Creates a field collation.
 
Method Summary
 boolean equals(Object obj)
           
 RelFieldCollation.Direction getDirection()
           
 int getFieldIndex()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

emptyCollationArray

public static final RelFieldCollation[] emptyCollationArray

fieldIndex

private final int fieldIndex
0-based index of field being sorted.


direction

private final RelFieldCollation.Direction direction
Direction of sorting.

Constructor Detail

RelFieldCollation

public RelFieldCollation(int fieldIndex)
Creates an ascending field collation.


RelFieldCollation

public RelFieldCollation(int fieldIndex,
                         RelFieldCollation.Direction direction)
Creates a field collation.

Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getFieldIndex

public int getFieldIndex()

getDirection

public RelFieldCollation.Direction getDirection()

toString

public String toString()
Overrides:
toString in class Object