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

Public Member Functions

 PartitionKeyValue (String colName, Expr value)
 
void analyze (Analyzer analyzer) throws AnalysisException
 
String getColName ()
 
Expr getValue ()
 
LiteralExpr getLiteralValue ()
 
boolean isDynamic ()
 
boolean isStatic ()
 
String toString ()
 
String toPredicateSql ()
 

Static Public Member Functions

static String getPartitionKeyValueString (LiteralExpr literalValue, String nullPartitionKeyValue)
 

Private Attributes

final String colName_
 
final Expr value_
 
LiteralExpr literalValue_
 

Detailed Description

Representation of a single column:value element in the PARTITION (...) clause of an insert or alter table statement.

Definition at line 24 of file PartitionKeyValue.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.PartitionKeyValue.PartitionKeyValue ( String  colName,
Expr  value 
)
inline

Definition at line 32 of file PartitionKeyValue.java.

Member Function Documentation

String com.cloudera.impala.analysis.PartitionKeyValue.getColName ( )
inline
LiteralExpr com.cloudera.impala.analysis.PartitionKeyValue.getLiteralValue ( )
inline
static String com.cloudera.impala.analysis.PartitionKeyValue.getPartitionKeyValueString ( LiteralExpr  literalValue,
String  nullPartitionKeyValue 
)
inlinestatic

Utility method that returns the string value for the given partition key. For NULL values (a NullLiteral type) or empty literal values this will return the given null partition key value.

Definition at line 77 of file PartitionKeyValue.java.

References com.cloudera.impala.analysis.LiteralExpr.getStringValue().

Expr com.cloudera.impala.analysis.PartitionKeyValue.getValue ( )
inline
boolean com.cloudera.impala.analysis.PartitionKeyValue.isDynamic ( )
inline
String com.cloudera.impala.analysis.PartitionKeyValue.toPredicateSql ( )
inline

Returns a binary predicate as a SQL string which matches the column and value of this PartitionKeyValue. If the value is null, correctly substitutes 'IS' as the operator.

Definition at line 63 of file PartitionKeyValue.java.

References com.cloudera.impala.analysis.PartitionKeyValue.colName_, com.cloudera.impala.analysis.LiteralExpr.getStringValue(), com.cloudera.impala.analysis.PartitionKeyValue.isStatic(), and com.cloudera.impala.analysis.PartitionKeyValue.literalValue_.

String com.cloudera.impala.analysis.PartitionKeyValue.toString ( )
inline

Member Data Documentation


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