|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sarg.SargFactory
public class SargFactory
SargFactory creates new instances of various sarg-related objects.
Field Summary | |
---|---|
private RexBuilder |
rexBuilder
|
private RexNode |
rexNull
|
Constructor Summary | |
---|---|
SargFactory(RexBuilder rexBuilder)
Creates a new SargFactory. |
Method Summary | |
---|---|
RexBuilder |
getRexBuilder()
|
SargMutableEndpoint |
newEndpoint(RelDataType dataType)
Creates a new endpoint. |
SargIntervalExpr |
newIntervalExpr(RelDataType dataType)
Creates a new interval expression. |
SargIntervalExpr |
newIntervalExpr(RelDataType dataType,
SqlNullSemantics nullSemantics)
Creates a new unbounded interval expression with non-default null semantics. |
RexNode |
newNullLiteral()
|
SargRexAnalyzer |
newRexAnalyzer()
|
SargRexAnalyzer |
newRexAnalyzer(boolean simpleMode)
|
SargRexAnalyzer |
newRexAnalyzer(int lowerRexInputIdx,
int upperRexInputIdx)
|
SargSetExpr |
newSetExpr(RelDataType dataType,
SargSetOperator setOp)
Creates a new set expression, initially with no children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final RexBuilder rexBuilder
private final RexNode rexNull
Constructor Detail |
---|
public SargFactory(RexBuilder rexBuilder)
rexBuilder
- factory for instances of RexNode
, needed
internally in the sarg representation, and also for recomposing sargs
into equivalent rex treesMethod Detail |
---|
public SargMutableEndpoint newEndpoint(RelDataType dataType)
dataType
- datatype for domain
public SargIntervalExpr newIntervalExpr(RelDataType dataType)
dataType
- datatype for domainpublic SargIntervalExpr newIntervalExpr(RelDataType dataType, SqlNullSemantics nullSemantics)
dataType
- datatype for domainnullSemantics
- null semantics governing searches on this intervalpublic SargSetExpr newSetExpr(RelDataType dataType, SargSetOperator setOp)
dataType
- datatype for domainsetOp
- set operatorpublic SargRexAnalyzer newRexAnalyzer()
public SargRexAnalyzer newRexAnalyzer(boolean simpleMode)
simpleMode
- if true, the analyzer restricts the types of predicates
it allows; the following are disallowed - conjuntions on the same
RexInputRef, more than one range predicate, and all disjunctions
public SargRexAnalyzer newRexAnalyzer(int lowerRexInputIdx, int upperRexInputIdx)
lowerRexInputIdx
- if >= 0, treat RexInputRefs whose index is within
the range [lowerRexInputIdx, upperRexInputIdx) as coordinates in
expressionsupperRexInputIdx
- if >= 0, treat RexInputRefs whose index is within
the range [lowerRexInputIdx, upperRexInputIdx) as coordinates in
expressions
public RexNode newNullLiteral()
public RexBuilder getRexBuilder()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |