org.eigenbase.sarg
Class SargMutableEndpoint

java.lang.Object
  extended by org.eigenbase.sarg.SargEndpoint
      extended by 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

Field Summary
 
Fields inherited from class org.eigenbase.sarg.SargEndpoint
boundType, coordinate, dataType, factory, strictness
 
Constructor Summary
SargMutableEndpoint(SargFactory factory, RelDataType dataType)
           
 
Method Summary
 void setFinite(SargBoundType boundType, SargStrictness strictness, RexNode coordinate)
          Sets a finite value for this endpoint.
 void setInfinity(int infinitude)
          Sets this endpoint to either negative or positive infinity.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SargMutableEndpoint

SargMutableEndpoint(SargFactory factory,
                    RelDataType dataType)
See Also:
SargFactory.newEndpoint(org.eigenbase.reltype.RelDataType)
Method Detail

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 strictness
coordinate - endpoint position