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

Public Member Functions

 HdfsTableSink (Table targetTable, List< Expr > partitionKeyExprs, boolean overwrite)
 
void computeCosts ()
 
String getExplainString (String prefix, String detailPrefix, TExplainLevel explainLevel)
 
void setFragment (PlanFragment fragment)
 
PlanFragment getFragment ()
 
long getPerHostMemCost ()
 

Static Public Member Functions

static DataSink createDataSink (Table table, List< Expr > partitionKeyExprs, boolean overwrite)
 

Protected Member Functions

TDataSink toThrift ()
 

Protected Attributes

final long DEFAULT_NUM_PARTITIONS = 10
 
final List< ExprpartitionKeyExprs_
 
final boolean overwrite_
 
final Table targetTable_
 
long perHostMemCost_ = -1
 
PlanFragment fragment_
 

Private Member Functions

long getPerPartitionMemReq (HdfsFileFormat format)
 

Detailed Description

Base class for Hdfs data sinks such as HdfsTextTableSink.

Definition at line 36 of file HdfsTableSink.java.

Constructor & Destructor Documentation

com.cloudera.impala.planner.HdfsTableSink.HdfsTableSink ( Table  targetTable,
List< Expr partitionKeyExprs,
boolean  overwrite 
)
inline

Member Function Documentation

static DataSink com.cloudera.impala.planner.DataSink.createDataSink ( Table  table,
List< Expr partitionKeyExprs,
boolean  overwrite 
)
inlinestaticinherited

Returns an output sink appropriate for writing to the given table.

Definition at line 59 of file DataSink.java.

String com.cloudera.impala.planner.HdfsTableSink.getExplainString ( String  prefix,
String  detailPrefix,
TExplainLevel  explainLevel 
)
inline
PlanFragment com.cloudera.impala.planner.DataSink.getFragment ( )
inlineinherited

Definition at line 53 of file DataSink.java.

References com.cloudera.impala.planner.DataSink.fragment_.

long com.cloudera.impala.planner.DataSink.getPerHostMemCost ( )
inlineinherited
long com.cloudera.impala.planner.HdfsTableSink.getPerPartitionMemReq ( HdfsFileFormat  format)
inlineprivate

Returns the per-partition memory requirement for inserting into the given file format.

Definition at line 85 of file HdfsTableSink.java.

Referenced by com.cloudera.impala.planner.HdfsTableSink.computeCosts().

void com.cloudera.impala.planner.DataSink.setFragment ( PlanFragment  fragment)
inlineinherited

Definition at line 52 of file DataSink.java.

References com.cloudera.impala.planner.DataSink.fragment_.

Member Data Documentation

final long com.cloudera.impala.planner.HdfsTableSink.DEFAULT_NUM_PARTITIONS = 10
protected
PlanFragment com.cloudera.impala.planner.DataSink.fragment_
protectedinherited
final boolean com.cloudera.impala.planner.HdfsTableSink.overwrite_
protected

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