|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.rex.RexNode
public abstract class RexNode
Row expression.
Every row-expression has a type. (Compare with SqlNode
, which is created before validation, and therefore
types may not be available.)
Some common row-expressions are: RexLiteral
(constant value),
RexVariable
(variable), RexCall
(call to operator with
operands). Expressions are generally created using a RexBuilder
factory.
Field Summary | |
---|---|
protected String |
digest
|
static RexNode[] |
EMPTY_ARRAY
|
Constructor Summary | |
---|---|
RexNode()
|
Method Summary | ||
---|---|---|
abstract
|
accept(RexVisitor<R> visitor)
Accepts a visitor, dispatching to the right overloaded visitXxx method. |
|
abstract RexNode |
clone()
|
|
RexKind |
getKind()
Returns the kind of node this is. |
|
abstract RelDataType |
getType()
|
|
boolean |
isA(RexKind kind)
|
|
boolean |
isAlwaysTrue()
Returns whether this expression always returns true. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RexNode[] EMPTY_ARRAY
protected String digest
Constructor Detail |
---|
public RexNode()
Method Detail |
---|
public abstract RelDataType getType()
public abstract RexNode clone()
clone
in class Object
public boolean isAlwaysTrue()
TRUE
.)
public boolean isA(RexKind kind)
public RexKind getKind()
RexKind
value, never nullpublic String toString()
toString
in class Object
public abstract <R> R accept(RexVisitor<R> visitor)
visitXxx
method.
Also see RexProgram.apply(RexVisitor, RexNode[], RexNode)
,
which applies a visitor to several expressions simultaneously.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |