|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sarg.SargEndpoint
public class SargEndpoint
SargEndpoint represents an endpoint of a (SargInterval
).
Instances of SargEndpoint are immutable from outside this package.
Subclass SargMutableEndpoint
is provided for manipulation from
outside the package.
Field Summary | |
---|---|
protected SargBoundType |
boundType
|
protected RexNode |
coordinate
Coordinate for this endpoint, constrained to be either RexLiteral , RexInputRef , RexDynamicParam , or null to
represent infinity (positive or negative infinity is implied by
boundType). |
protected RelDataType |
dataType
Datatype for endpoint value. |
protected SargFactory |
factory
Factory which produced this endpoint. |
protected SargStrictness |
strictness
|
Constructor Summary | |
---|---|
SargEndpoint(SargFactory factory,
RelDataType dataType)
|
Method Summary | |
---|---|
(package private) static int |
compareCoordinates(RexNode coord1,
RexNode coord2)
|
int |
compareTo(SargEndpoint other)
|
private int |
convertBytes(ByteBuffer value)
|
private int |
convertNumber(BigDecimal value)
|
private int |
convertString(NlsString value)
|
private void |
convertToTargetType()
|
(package private) void |
copyFrom(SargEndpoint other)
|
boolean |
equals(Object other)
|
SargBoundType |
getBoundType()
|
RexNode |
getCoordinate()
|
RelDataType |
getDataType()
|
int |
getInfinitude()
|
SargStrictness |
getStrictness()
|
SargStrictness |
getStrictnessComplement()
|
int |
getStrictnessSign()
|
int |
hashCode()
|
boolean |
isClosed()
|
boolean |
isFinite()
|
boolean |
isNull()
|
boolean |
isOpen()
|
boolean |
isTouching(SargEndpoint other)
Tests whether this endpoint "touches" another one (not necessarily overlapping). |
(package private) void |
setFinite(SargBoundType boundType,
SargStrictness strictness,
RexNode coordinate)
Sets a finite value for this endpoint. |
(package private) void |
setInfinity(int infinitude)
Sets this endpoint to either negative or positive infinity. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SargFactory factory
protected final RelDataType dataType
protected RexNode coordinate
RexLiteral
, RexInputRef
, RexDynamicParam
, or null to
represent infinity (positive or negative infinity is implied by
boundType).
protected SargBoundType boundType
getBoundType()
protected SargStrictness strictness
getStrictness()
Constructor Detail |
---|
SargEndpoint(SargFactory factory, RelDataType dataType)
SargFactory.newEndpoint(org.eigenbase.reltype.RelDataType)
Method Detail |
---|
void copyFrom(SargEndpoint other)
void setInfinity(int infinitude)
infinitude
- either -1 or +1void setFinite(SargBoundType boundType, SargStrictness strictness, RexNode coordinate)
boundType
- bound type (upper/lower)strictness
- boundary strictnesscoordinate
- endpoint positionprivate void convertToTargetType()
private int convertString(NlsString value)
private int convertBytes(ByteBuffer value)
private int convertNumber(BigDecimal value)
public boolean isClosed()
public boolean isOpen()
public boolean isFinite()
public int getInfinitude()
public RexNode getCoordinate()
public boolean isNull()
public RelDataType getDataType()
public SargBoundType getBoundType()
public boolean isTouching(SargEndpoint other)
other
- the other endpoint to test
static int compareCoordinates(RexNode coord1, RexNode coord2)
public String toString()
toString
in class Object
public int compareTo(SargEndpoint other)
compareTo
in interface Comparable<SargEndpoint>
public SargStrictness getStrictness()
public SargStrictness getStrictnessComplement()
public int getStrictnessSign()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |