Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.planner.ValueRange Class Reference
Collaboration diagram for com.cloudera.impala.planner.ValueRange:

Public Member Functions

boolean isEqRange ()
 
boolean isInRange (Analyzer analyzer, Expr valueExpr) throws InternalException
 

Static Public Member Functions

static ValueRange createEqRange (Expr valueExpr)
 

Package Functions

Expr getLowerBound ()
 
void setLowerBound (Expr e)
 
boolean getLowerBoundInclusive ()
 
void setLowerBoundInclusive (boolean b)
 
Expr getUpperBound ()
 
void setUpperBound (Expr e)
 
boolean getUpperBoundInclusive ()
 
void setUpperBoundInclusive (boolean b)
 

Private Attributes

Expr lowerBound_
 
boolean lowerBoundInclusive_
 
Expr upperBound_
 
boolean upperBoundInclusive_
 

Static Private Attributes

static final Logger LOG = LoggerFactory.getLogger(ValueRange.class)
 

Detailed Description

Representation of a two-sided interval of values. Either one of the sides is optional, and can be exclusive or inclusive. For a range representing a single value, both bounds are set.

Definition at line 35 of file ValueRange.java.

Member Function Documentation

static ValueRange com.cloudera.impala.planner.ValueRange.createEqRange ( Expr  valueExpr)
inlinestatic

Definition at line 52 of file ValueRange.java.

Expr com.cloudera.impala.planner.ValueRange.getLowerBound ( )
inlinepackage
boolean com.cloudera.impala.planner.ValueRange.getLowerBoundInclusive ( )
inlinepackage
Expr com.cloudera.impala.planner.ValueRange.getUpperBound ( )
inlinepackage
boolean com.cloudera.impala.planner.ValueRange.getUpperBoundInclusive ( )
inlinepackage
boolean com.cloudera.impala.planner.ValueRange.isInRange ( Analyzer  analyzer,
Expr  valueExpr 
) throws InternalException
inline

Determines whether a given constant expr is within the range. Does this by constructing predicate that represents the range, with the valueExpr inserted appropriately, and then calls the backend for evaluation.

Definition at line 71 of file ValueRange.java.

References com.cloudera.impala.planner.ValueRange.lowerBound_, com.cloudera.impala.planner.ValueRange.lowerBoundInclusive_, com.cloudera.impala.planner.ValueRange.upperBound_, and com.cloudera.impala.planner.ValueRange.upperBoundInclusive_.

void com.cloudera.impala.planner.ValueRange.setLowerBound ( Expr  e)
inlinepackage
void com.cloudera.impala.planner.ValueRange.setLowerBoundInclusive ( boolean  b)
inlinepackage
void com.cloudera.impala.planner.ValueRange.setUpperBound ( Expr  e)
inlinepackage
void com.cloudera.impala.planner.ValueRange.setUpperBoundInclusive ( boolean  b)
inlinepackage

Member Data Documentation

final Logger com.cloudera.impala.planner.ValueRange.LOG = LoggerFactory.getLogger(ValueRange.class)
staticprivate

Definition at line 36 of file ValueRange.java.


The documentation for this class was generated from the following file: