org.eigenbase.rex
Class RexSlot

java.lang.Object
  extended by org.eigenbase.rex.RexNode
      extended by org.eigenbase.rex.RexVariable
          extended by org.eigenbase.rex.RexSlot
Direct Known Subclasses:
RexInputRef, RexLocalRef

public abstract class RexSlot
extends RexVariable

Abstract base class for RexInputRef and RexLocalRef.

Since:
Oct 25, 2005
Version:
$Id: //open/dev/farrago/src/org/eigenbase/rex/RexSlot.java#7 $
Author:
jhyde

Field Summary
protected  int index
           
 
Fields inherited from class org.eigenbase.rex.RexVariable
name, type
 
Fields inherited from class org.eigenbase.rex.RexNode
digest, EMPTY_ARRAY
 
Constructor Summary
protected RexSlot(String name, int index, RelDataType type)
          Creates a slot.
 
Method Summary
 int getIndex()
           
protected static String[] makeArray(int length, String prefix)
           
 
Methods inherited from class org.eigenbase.rex.RexVariable
getName, getType
 
Methods inherited from class org.eigenbase.rex.RexNode
accept, clone, getKind, isA, isAlwaysTrue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected final int index
Constructor Detail

RexSlot

protected RexSlot(String name,
                  int index,
                  RelDataType type)
Creates a slot.

Parameters:
index - Index of the field in the underlying rowtype
type - Type of the column
"Precondition:"
type != null, index >= 0
Method Detail

getIndex

public int getIndex()

makeArray

protected static String[] makeArray(int length,
                                    String prefix)