|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sarg.SargIntervalBase
public abstract class SargIntervalBase
SargIntervalBase is a common base for SargInterval
and SargIntervalExpr
.
Field Summary | |
---|---|
protected SargFactory |
factory
|
protected SargMutableEndpoint |
lowerBound
|
protected SargMutableEndpoint |
upperBound
|
Constructor Summary | |
---|---|
SargIntervalBase(SargFactory factory,
RelDataType dataType)
|
Method Summary | |
---|---|
RelDataType |
getDataType()
|
SargFactory |
getFactory()
|
SargEndpoint |
getLowerBound()
|
SargEndpoint |
getUpperBound()
|
boolean |
isEmpty()
|
boolean |
isPoint()
|
boolean |
isRange()
|
boolean |
isUnconstrained()
|
private void |
printBound(StringBuilder sb,
SargEndpoint endpoint)
|
(package private) void |
setEmpty()
Sets this interval to empty (matching nothing at all). |
(package private) void |
setLower(RexNode coordinate,
SargStrictness strictness)
Sets the lower bound for this interval. |
(package private) void |
setNull()
Sets this interval to represent a single point matching the null value. |
(package private) void |
setPoint(RexNode coordinate)
Sets this interval to represent a single point (possibly the null value). |
(package private) void |
setUnconstrained()
Sets this interval to unconstrained (matching everything, including null). |
(package private) void |
setUpper(RexNode coordinate,
SargStrictness strictness)
Sets the upper bound for this interval. |
String |
toString()
|
(package private) void |
unsetLower()
Removes the lower bound for this interval, setting it to -infinity. |
(package private) void |
unsetUpper()
Removes the upper bound for this interval, setting it to +infinity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SargFactory factory
protected final SargMutableEndpoint lowerBound
protected final SargMutableEndpoint upperBound
Constructor Detail |
---|
SargIntervalBase(SargFactory factory, RelDataType dataType)
SargFactory.newIntervalExpr(org.eigenbase.reltype.RelDataType)
Method Detail |
---|
public SargEndpoint getLowerBound()
public SargEndpoint getUpperBound()
public boolean isPoint()
public boolean isEmpty()
public boolean isRange()
public boolean isUnconstrained()
public SargFactory getFactory()
void setPoint(RexNode coordinate)
coordinate
- coordinate of point to set, or null for the null valuevoid setNull()
void setLower(RexNode coordinate, SargStrictness strictness)
coordinate
- coordinate of point to set, must not be nullstrictness
- strictnessvoid setUpper(RexNode coordinate, SargStrictness strictness)
coordinate
- coordinate of point to setstrictness
- boundary strictnessvoid unsetLower()
void unsetUpper()
void setUnconstrained()
void setEmpty()
public RelDataType getDataType()
public String toString()
toString
in class Object
private void printBound(StringBuilder sb, SargEndpoint endpoint)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |