org.apache.hadoop.hive.ql.io.sarg
Interface PredicateLeaf


public interface PredicateLeaf

The primitive predicates that form a SearchArgument.


Nested Class Summary
static class PredicateLeaf.Operator
          The possible operators for predicates.
static class PredicateLeaf.Type
          The possible types for sargs.
 
Method Summary
 String getColumnName()
          Get the simple column name.
 Object getLiteral()
          Get the literal half of the predicate leaf.
 List<Object> getLiteralList()
          For operators with multiple literals (IN and BETWEEN), get the literals.
 PredicateLeaf.Operator getOperator()
          Get the operator for the leaf.
 PredicateLeaf.Type getType()
          Get the type of the column and literal.
 

Method Detail

getOperator

PredicateLeaf.Operator getOperator()
Get the operator for the leaf.


getType

PredicateLeaf.Type getType()
Get the type of the column and literal.


getColumnName

String getColumnName()
Get the simple column name.

Returns:
the column name

getLiteral

Object getLiteral()
Get the literal half of the predicate leaf.

Returns:
a Long, Double, or String

getLiteralList

List<Object> getLiteralList()
For operators with multiple literals (IN and BETWEEN), get the literals.

Returns:
the list of literals (Longs, Doubles, or Strings)


Copyright © 2014 The Apache Software Foundation. All rights reserved.