org.eigenbase.sarg
Class SargMutableEndpoint
java.lang.Object
org.eigenbase.sarg.SargEndpoint
org.eigenbase.sarg.SargMutableEndpoint
- All Implemented Interfaces:
- Comparable<SargEndpoint>
public class SargMutableEndpoint
- extends SargEndpoint
SargMutableEndpoint exposes methods for modifying a SargEndpoint
.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sarg/SargMutableEndpoint.java#8 $
- Author:
- John V. Sichi
Methods inherited from class org.eigenbase.sarg.SargEndpoint |
compareCoordinates, compareTo, copyFrom, equals, getBoundType, getCoordinate, getDataType, getInfinitude, getStrictness, getStrictnessComplement, getStrictnessSign, hashCode, isClosed, isFinite, isNull, isOpen, isTouching, toString |
SargMutableEndpoint
SargMutableEndpoint(SargFactory factory,
RelDataType dataType)
- See Also:
SargFactory.newEndpoint(org.eigenbase.reltype.RelDataType)
setInfinity
public void setInfinity(int infinitude)
- Description copied from class:
SargEndpoint
- Sets this endpoint to either negative or positive infinity. An infinite
endpoint implies an open bound (negative infinity implies a lower bound,
while positive infinity implies an upper bound).
- Overrides:
setInfinity
in class SargEndpoint
- Parameters:
infinitude
- either -1 or +1
setFinite
public void setFinite(SargBoundType boundType,
SargStrictness strictness,
RexNode coordinate)
- Description copied from class:
SargEndpoint
- Sets a finite value for this endpoint.
- Overrides:
setFinite
in class SargEndpoint
- Parameters:
boundType
- bound type (upper/lower)strictness
- boundary strictnesscoordinate
- endpoint position