Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
LoadDataStmt (TableName tableName, HdfsUri sourceDataPath, boolean overwrite, PartitionSpec partitionSpec) | |
String | getTbl () |
String | getDb () |
String | toSql () |
void | analyze (Analyzer analyzer) throws AnalysisException |
TLoadDataReq | toThrift () |
void | setIsExplain () |
boolean | isExplain () |
Protected Attributes | |
boolean | isExplain_ = false |
Private Member Functions | |
void | analyzePaths (Analyzer analyzer, HdfsTable hdfsTable) throws AnalysisException |
Private Attributes | |
final TableName | tableName_ |
final HdfsUri | sourceDataPath_ |
final PartitionSpec | partitionSpec_ |
final boolean | overwrite_ |
String | dbName_ |
Definition at line 53 of file LoadDataStmt.java.
|
inline |
Definition at line 62 of file LoadDataStmt.java.
|
inline |
Perform semantic analysis of node and all of its children. Throws exception if any errors found.
analyzer |
AnalysisException |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 96 of file LoadDataStmt.java.
References com.cloudera.impala.analysis.LoadDataStmt.analyzePaths(), com.cloudera.impala.analysis.LoadDataStmt.dbName_, com.cloudera.impala.analysis.LoadDataStmt.getTbl(), com.cloudera.impala.authorization.Privilege.INSERT, com.cloudera.impala.analysis.LoadDataStmt.partitionSpec_, and com.cloudera.impala.analysis.LoadDataStmt.tableName_.
|
inlineprivate |
Check to see if Impala has the necessary permissions to access the source and dest paths for this LOAD statement (which maps onto a sequence of file move operations, with the requisite permission requirements), and check to see if all files to be moved are in format that Impala understands. Errors are raised as AnalysisExceptions.
Definition at line 125 of file LoadDataStmt.java.
References com.cloudera.impala.authorization.Privilege.ALL, com.cloudera.impala.common.FileSystemUtil.containsSubdirectory(), com.cloudera.impala.catalog.HdfsPartition.getAccessLevel(), com.cloudera.impala.catalog.HdfsPartition.getLocation(), com.cloudera.impala.util.FsPermissionChecker.getPermissions(), com.cloudera.impala.common.FileSystemUtil.getTotalNumVisibleFiles(), com.cloudera.impala.util.TAccessLevelUtil.impliesWriteAccess(), com.cloudera.impala.catalog.HdfsFileFormat.isFileCompressionTypeSupported(), com.cloudera.impala.common.FileSystemUtil.isHiddenFile(), com.cloudera.impala.common.FileSystemUtil.isPathOnFileSystem(), com.cloudera.impala.analysis.LoadDataStmt.partitionSpec_, and com.cloudera.impala.analysis.LoadDataStmt.sourceDataPath_.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.analyze().
|
inline |
Definition at line 76 of file LoadDataStmt.java.
References com.cloudera.impala.analysis.LoadDataStmt.dbName_.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.toThrift().
|
inline |
Definition at line 72 of file LoadDataStmt.java.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.analyze(), and com.cloudera.impala.analysis.LoadDataStmt.toThrift().
|
inlineinherited |
Definition at line 43 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inlineinherited |
Definition at line 42 of file StatementBase.java.
References com.cloudera.impala.analysis.StatementBase.isExplain_.
|
inline |
Implements com.cloudera.impala.analysis.ParseNode.
Definition at line 86 of file LoadDataStmt.java.
References com.cloudera.impala.analysis.LoadDataStmt.overwrite_, com.cloudera.impala.analysis.LoadDataStmt.partitionSpec_, and com.cloudera.impala.analysis.LoadDataStmt.sourceDataPath_.
|
inline |
|
private |
Definition at line 60 of file LoadDataStmt.java.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.analyze(), and com.cloudera.impala.analysis.LoadDataStmt.getDb().
|
protectedinherited |
|
private |
Definition at line 57 of file LoadDataStmt.java.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.toSql(), and com.cloudera.impala.analysis.LoadDataStmt.toThrift().
|
private |
|
private |
Definition at line 55 of file LoadDataStmt.java.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.analyzePaths(), and com.cloudera.impala.analysis.LoadDataStmt.toSql().
|
private |
Definition at line 54 of file LoadDataStmt.java.
Referenced by com.cloudera.impala.analysis.LoadDataStmt.analyze().