Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Classes | |
class | FileBlocksInfo |
class | FsKey |
Public Member Functions | |
Map< String, List < FileDescriptor > > | getFileDescMap () |
boolean | spansMultipleFileSystems () |
HdfsTable (TableId id, org.apache.hadoop.hive.metastore.api.Table msTbl, Db db, String name, String owner) | |
TCatalogObjectType | getCatalogObjectType () |
List< HdfsPartition > | getPartitions () |
boolean | isMarkedCached () |
HashMap< Long, HdfsPartition > | getPartitionMap () |
HashSet< Long > | getNullPartitionIds (int i) |
HashSet< Long > | getPartitionIds () |
TreeMap< LiteralExpr, HashSet < Long > > | getPartitionValueMap (int i) |
String | getNullPartitionKeyValue () |
String | getNullColumnValue () |
String | getLocation () |
List< FieldSchema > | getFieldSchemas () |
List< FieldSchema > | getNonPartitionFieldSchemas () |
boolean | hasWriteAccess () |
String | getFirstLocationWithoutWriteAccess () |
HdfsPartition | getPartition (List< PartitionKeyValue > partitionSpec) |
HdfsPartition | getPartitionFromThriftPartitionSpec (List< TPartitionKeyValue > partitionSpec) |
HdfsPartition | createPartition (StorageDescriptor storageDescriptor, org.apache.hadoop.hive.metastore.api.Partition msPartition) throws CatalogException |
void | addPartition (HdfsPartition partition) |
HdfsPartition | dropPartition (List< TPartitionKeyValue > partitionSpec) |
void | load (Table cachedEntry, HiveMetaStoreClient client, org.apache.hadoop.hive.metastore.api.Table msTbl) throws TableLoadingException |
TTableDescriptor | toThriftDescriptor (Set< Long > referencedPartitions) |
TTable | toThrift () |
long | getNumHdfsFiles () |
long | getTotalHdfsBytes () |
String | getHdfsBaseDir () |
boolean | isAvroTable () |
int | getNumNodes () |
ListMap< TNetworkAddress > | getHostIndex () |
HdfsFileFormat | getMajorityFormat () |
TResultSet | getTableStats () |
TResultSet | getFiles (List< TPartitionKeyValue > partitionSpec) throws CatalogException |
void | addColumn (Column col) |
void | clearColumns () |
void | updateLastDdlTime (long ddlTime) |
void | validate () throws TableLoadingException |
TCatalogObject | toTCatalogObject () |
Db | getDb () |
String | getName () |
String | getFullName () |
TableName | getTableName () |
String | getOwner () |
ArrayList< Column > | getColumns () |
List< String > | getColumnNames () |
String | getStorageHandlerClassName () |
ArrayList< Column > | getColumnsInHiveOrder () |
List< Column > | getNonClusteringColumns () |
Column | getColumn (String name) |
org.apache.hadoop.hive.metastore.api.Table | getMetaStoreTable () |
int | getNumClusteringCols () |
TableId | getId () |
long | getNumRows () |
ArrayType | getType () |
long | getCatalogVersion () |
void | setCatalogVersion (long catalogVersion) |
boolean | isLoaded () |
Static Public Member Functions | |
static String | getAvroSchema (List< Map< String, String >> schemaSearchLocations, String tableName) throws TableLoadingException |
static Table | fromMetastoreTable (TableId id, Db db, org.apache.hadoop.hive.metastore.api.Table msTbl) |
static Table | fromThrift (Db parentDb, TTable thriftTable) throws TableLoadingException |
Protected Member Functions | |
List< String > | getColumnNamesWithHmsStats () |
void | loadFromThrift (TTable thriftTable) throws TableLoadingException |
void | loadAllColumnStats (HiveMetaStoreClient client) |
Type | parseColumnType (FieldSchema fs) throws TableLoadingException |
Static Protected Member Functions | |
static long | getRowCount (Map< String, String > parameters) |
Protected Attributes | |
String | hdfsBaseDir_ |
final org.apache.hadoop.hive.metastore.api.Table | msTable_ |
final TableId | id_ |
final Db | db_ |
final String | name_ |
final String | owner_ |
TTableDescriptor | tableDesc_ |
List< FieldSchema > | fields_ |
TAccessLevel | accessLevel_ = TAccessLevel.READ_WRITE |
int | numClusteringCols_ |
long | numRows_ = -1 |
final ArrayType | type_ = new ArrayType(new StructType()) |
long | lastDdlTime_ |
Static Protected Attributes | |
static EnumSet< TableType > | SUPPORTED_TABLE_TYPES |
Static Package Functions | |
[static initializer] | |
Private Member Functions | |
void | loadBlockMetadata (FileSystem fs, FileStatus file, FileDescriptor fd, HdfsFileFormat fileFormat, Map< FsKey, FileBlocksInfo > perFsFileBlocks) |
void | synthesizeBlockMetadata (FileSystem fs, FileDescriptor fd, HdfsFileFormat fileFormat) |
void | loadDiskIds (Map< FsKey, FileBlocksInfo > perFsFileBlocks) |
void | loadColumns (List< FieldSchema > fieldSchemas, HiveMetaStoreClient client) throws TableLoadingException |
void | populatePartitionMd () |
void | resetPartitionMd () |
void | loadPartitions (List< org.apache.hadoop.hive.metastore.api.Partition > msPartitions, org.apache.hadoop.hive.metastore.api.Table msTbl, Map< String, List< FileDescriptor >> oldFileDescMap) throws IOException, CatalogException |
TAccessLevel | getAvailableAccessLevel (FileSystem fs, Path location) throws IOException |
HdfsPartition | createPartition (StorageDescriptor storageDescriptor, org.apache.hadoop.hive.metastore.api.Partition msPartition, Map< String, List< FileDescriptor >> oldFileDescMap, Map< FsKey, FileBlocksInfo > perFsFileBlocks) throws CatalogException |
void | addPerFsFileBlocks (Map< FsKey, FileBlocksInfo > fsToBlocks, FileSystem fs, List< THdfsFileBlock > blocks, List< BlockLocation > locations) |
void | updatePartitionMdAndColStats (HdfsPartition partition) |
void | addDefaultPartition (StorageDescriptor storageDescriptor) throws CatalogException |
THdfsTable | getTHdfsTable (boolean includeFileDesc, Set< Long > refPartitions) |
Static Private Member Functions | |
static int | getDiskId (VolumeId hdfsVolumeId) |
Private Attributes | |
String | nullColumnValue_ |
String | nullPartitionKeyValue_ |
String | avroSchema_ = null |
boolean | isMarkedCached_ = false |
final List< HdfsPartition > | partitions_ |
final ArrayList< TreeMap < LiteralExpr, HashSet< Long > > > | partitionValuesMap_ |
final ArrayList< HashSet< Long > > | nullPartitionIds_ = Lists.newArrayList() |
final HashMap< Long, HdfsPartition > | partitionMap_ = Maps.newHashMap() |
final HashSet< Long > | partitionIds_ = Sets.newHashSet() |
boolean | hasPartitionMd_ = false |
final ListMap< TNetworkAddress > | hostIndex_ = new ListMap<TNetworkAddress>() |
final Map< String, List < FileDescriptor > > | fileDescMap_ = Maps.newHashMap() |
long | numHdfsFiles_ |
long | totalHdfsBytes_ |
boolean | multipleFileSystems_ = false |
Static Private Attributes | |
static final String | DEFAULT_NULL_COLUMN_VALUE = "\\N" |
static final int | NUM_PARTITION_FETCH_RETRIES = 5 |
static final TNetworkAddress | REMOTE_NETWORK_ADDRESS |
static final long | MIN_SYNTHETIC_BLOCK_SIZE = 1024 * 1024 |
static boolean | hasLoggedDiskIdFormatWarning_ = false |
static final Logger | LOG = LoggerFactory.getLogger(HdfsTable.class) |
static final Configuration | CONF = new Configuration() |
static final boolean | SUPPORTS_VOLUME_ID |
Internal representation of table-related metadata of a file-resident table on a Hadoop filesystem. The table data can be accessed through libHDFS (which is more of an abstraction over Hadoop's FileSystem class rather than DFS specifically). A partitioned table can even span multiple filesystems.
Owned by Catalog instance. The partition keys constitute the clustering columns.
This class is not thread-safe due to the static counter variable inside HdfsPartition. Also not thread safe because of possibility of concurrent modifications to the list of partitions in methods addPartition and dropPartition.
Definition at line 104 of file HdfsTable.java.
|
inline |
Definition at line 421 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
inlinestaticpackage |
|
inlineinherited |
Definition at line 114 of file Table.java.
References com.cloudera.impala.catalog.ArrayType.getItemType(), and com.cloudera.impala.catalog.Table.type_.
Referenced by com.cloudera.impala.catalog.View.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.DataSourceTable.loadColumns(), and com.cloudera.impala.catalog.HdfsTable.loadColumns().
|
inlineprivate |
Definition at line 977 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inline |
Adds the partition to the HdfsTable.
Note: This method is not thread safe because it modifies the list of partitions and the HdfsTable's partition metadata.
Definition at line 892 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.partitions_, com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_, and com.cloudera.impala.catalog.HdfsTable.updatePartitionMdAndColStats().
Referenced by com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlineprivate |
Add the given THdfsFileBlocks and BlockLocations to the FileBlockInfo for the given filesystem.
Definition at line 875 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadBlockMetadata().
|
inlineinherited |
Definition at line 121 of file Table.java.
References com.cloudera.impala.catalog.ArrayType.getItemType(), and com.cloudera.impala.catalog.Table.type_.
Referenced by com.cloudera.impala.catalog.HBaseTable.load().
|
inline |
Creates a new HdfsPartition object to be added to HdfsTable's partition list. Partitions may be empty, or may not even exist in the filesystem (a partition's location may have been changed to a new path that is about to be created by an INSERT). Also loads the block metadata for this partition. Returns new partition if successful or null if none was added. Separated from addPartition to reduce the number of operations done while holding the lock on HdfsTable.
CatalogException | if the supplied storage descriptor contains metadata that Impala can't understand. |
Definition at line 735 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.fileDescMap_, and com.cloudera.impala.catalog.HdfsTable.loadDiskIds().
Referenced by com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlineprivate |
Creates a new HdfsPartition object to be added to the internal partition list. Populates with file format information and file locations. Partitions may be empty, or may not even exist on the filesystem (a partition's location may have been changed to a new path that is about to be created by an INSERT). For unchanged files (indicated by unchanged mtime), reuses the FileDescriptor from the oldFileDescMap. The one exception is if the partition is marked as cached in which case the block metadata cannot be reused. Otherwise, creates a new FileDescriptor for each modified or new file and adds it to newFileDescMap. Both old and newFileDescMap are Maps of parent directory (partition location) to list of files (FileDescriptors) under that directory. Returns new partition if successful or null if none was added. Separated from addPartition to reduce the number of operations done while holding the lock on the hdfs table.
CatalogException | if the supplied storage descriptor contains metadata that Impala can't understand. |
Definition at line 764 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.CONF, com.cloudera.impala.catalog.HdfsCompression.fromFileName(), com.cloudera.impala.catalog.HdfsTable.getAvailableAccessLevel(), com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.HdfsStorageDescriptor.getFileFormat(), com.cloudera.impala.catalog.HdfsTable.getLocation(), com.cloudera.impala.catalog.Table.getName(), com.cloudera.impala.catalog.HdfsTable.isMarkedCached(), com.cloudera.impala.catalog.HdfsTable.isMarkedCached_, com.cloudera.impala.catalog.HdfsTable.loadBlockMetadata(), com.cloudera.impala.catalog.HdfsCompression.LZO_INDEX, com.cloudera.impala.catalog.HdfsTable.multipleFileSystems_, com.cloudera.impala.catalog.HdfsTable.nullPartitionKeyValue_, and com.cloudera.impala.catalog.HdfsTable.numHdfsFiles_.
|
inline |
Drops the partition having the given partition spec from HdfsTable. Cleans up its metadata from all the mappings used to speed up partition pruning/lookup. Also updates partition column statistics. Given partitionSpec must match exactly one partition. Returns the HdfsPartition that was dropped. If the partition does not exist, returns null.
Note: This method is not thread safe because it modifies the list of partitions and the HdfsTable's partition metadata.
Definition at line 942 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec(), com.cloudera.impala.catalog.HdfsTable.nullPartitionIds_, com.cloudera.impala.catalog.Table.numClusteringCols_, com.cloudera.impala.catalog.HdfsTable.partitions_, and com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_.
|
inlinestaticinherited |
Creates a table of the appropriate type based on the given hive.metastore.api.Table object.
Definition at line 207 of file Table.java.
References com.cloudera.impala.catalog.DataSourceTable.isDataSourceTable(), com.cloudera.impala.catalog.HBaseTable.isHBaseTable(), and com.cloudera.impala.catalog.HdfsFileFormat.isHdfsFormatClass().
|
inlinestaticinherited |
Factory method that creates a new Table from its Thrift representation. Determines the type of table to create based on the Thrift table provided.
Definition at line 231 of file Table.java.
|
inlineprivate |
Gets the AccessLevel that is available for Impala for this table based on the permissions Impala has on the given path. If the path does not exist, recurses up the path until a existing parent directory is found, and inherit access permissions from that.
Definition at line 699 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlinestatic |
Gets an Avro table's JSON schema from the list of given table property search locations. The schema may be specified as a string literal or provided as a Hadoop FileSystem or http URL that points to the schema. This function does not perform any validation on the returned string (e.g., it may not be a valid schema). If the schema was found to be specified as a SCHEMA_URL, this function will attempt to download the schema from the given URL. Throws a TableLoadingException if no schema is found or if there was any error extracting the schema.
Definition at line 1177 of file HdfsTable.java.
References com.cloudera.impala.common.FileSystemUtil.isPathReachable(), and path().
|
inline |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 428 of file HdfsTable.java.
|
inlineinherited |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 408 of file Table.java.
References com.cloudera.impala.catalog.Table.catalogVersion_.
Referenced by com.cloudera.impala.catalog.CatalogServiceCatalog.dropPartition(), com.cloudera.impala.catalog.CatalogServiceCatalog.getCatalogObjects(), com.cloudera.impala.catalog.ImpaladCatalog.removeTable(), com.cloudera.impala.catalog.CatalogServiceCatalog.replaceTableIfUnchanged(), and com.cloudera.impala.catalog.Table.toTCatalogObject().
|
inlineinherited |
Case-insensitive lookup.
Definition at line 392 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.loadAllColumnStats(), and com.cloudera.impala.catalog.CatalogTest.testColStatsColTypeMismatch().
|
inlineinherited |
Returns a list of the column names ordered by position.
Definition at line 354 of file Table.java.
References com.cloudera.impala.catalog.Table.colsByPos_.
Referenced by com.cloudera.impala.analysis.ColumnLineageGraph.addTargetColumnLabels(), com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), com.cloudera.impala.catalog.HBaseTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor().
|
inlineprotected |
Definition at line 1233 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getColumns(), and com.cloudera.impala.catalog.Table.numClusteringCols_.
|
inlineinherited |
Definition at line 349 of file Table.java.
References com.cloudera.impala.catalog.Table.colsByPos_.
Referenced by com.cloudera.impala.service.CatalogOpExecutor.alterTableOrViewRename(), com.cloudera.impala.analysis.InsertStmt.checkColumnCoverage(), com.cloudera.impala.catalog.HdfsTable.createPartition(), com.cloudera.impala.catalog.HdfsTable.dropPartition(), com.cloudera.impala.catalog.HdfsTable.getColumnNamesWithHmsStats(), com.cloudera.impala.catalog.HBaseTable.getColumnsInHiveOrder(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.HBaseTable.getTHBaseTable(), com.cloudera.impala.analysis.InsertStmt.prepareExpressions(), com.cloudera.impala.catalog.HdfsTable.resetPartitionMd(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), com.cloudera.impala.catalog.HBaseTable.toThriftDescriptor(), com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.updatePartitionMdAndColStats().
|
inlineinherited |
Returns the list of all columns, but with partition columns at the end of the list rather than the beginning. This is equivalent to the order in which Hive enumerates columns.
Definition at line 373 of file Table.java.
References com.cloudera.impala.catalog.Table.colsByPos_, com.cloudera.impala.catalog.Table.getNonClusteringColumns(), and com.cloudera.impala.catalog.Table.numClusteringCols_.
Referenced by com.cloudera.impala.service.DescribeResultFactory.describeTableMinimal(), com.cloudera.impala.service.Frontend.getColumnStats(), and com.cloudera.impala.analysis.InsertStmt.prepareExpressions().
|
inlineinherited |
Definition at line 341 of file Table.java.
References com.cloudera.impala.catalog.Table.db_.
Referenced by com.cloudera.impala.service.CatalogOpExecutor.alterTableUpdateStats(), com.cloudera.impala.service.CatalogOpExecutor.createHiveColStats(), com.cloudera.impala.analysis.Analyzer.getTable(), com.cloudera.impala.analysis.InsertStmt.setTargetTable(), com.cloudera.impala.analysis.ShowStatsStmt.toThrift(), com.cloudera.impala.analysis.ComputeStatsStmt.toThrift(), and com.cloudera.impala.service.CatalogOpExecutor.updateCatalog().
|
inlinestaticprivate |
Returns a disk id (0-based) index from the Hdfs VolumeId object. There is currently no public API to get at the volume id. We'll have to get it by accessing the internals.
Definition at line 243 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.hasLoggedDiskIdFormatWarning_.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadDiskIds().
|
inline |
Definition at line 453 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.fields_.
|
inline |
Definition at line 265 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.fileDescMap_.
|
inline |
Returns files info for the given dbname/tableName and partition spec. Returns files info for all partitions if partition spec is null.
Definition at line 1456 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec(), com.cloudera.impala.catalog.HdfsTable.partitions_, com.cloudera.impala.catalog.Type.STRING, and com.cloudera.impala.catalog.ScalarType.toThrift().
|
inline |
Returns the first location (HDFS path) that Impala does not have WRITE access to, or an null if none is found. For an unpartitioned table, this just checks the hdfsBaseDir. For a partitioned table it checks all partition directories.
Definition at line 470 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.accessLevel_, com.cloudera.impala.catalog.Table.getMetaStoreTable(), com.cloudera.impala.catalog.HdfsTable.hdfsBaseDir_, com.cloudera.impala.util.TAccessLevelUtil.impliesWriteAccess(), and com.cloudera.impala.catalog.HdfsTable.partitions_.
Referenced by com.cloudera.impala.analysis.InsertStmt.setTargetTable().
|
inlineinherited |
Definition at line 343 of file Table.java.
References com.cloudera.impala.catalog.Table.db_, com.cloudera.impala.catalog.Db.getName(), and com.cloudera.impala.catalog.Table.name_.
Referenced by com.cloudera.impala.analysis.ShowPartitionsStmt.analyze(), com.cloudera.impala.analysis.ShowStatsStmt.analyze(), com.cloudera.impala.analysis.ShowFilesStmt.analyze(), com.cloudera.impala.analysis.AlterTableStmt.analyze(), com.cloudera.impala.analysis.TableRef.analyze(), com.cloudera.impala.analysis.InsertStmt.checkColumnCoverage(), com.cloudera.impala.planner.DataSourceScanNode.getNodeExplainString(), com.cloudera.impala.planner.HBaseScanNode.getNodeExplainString(), com.cloudera.impala.analysis.Analyzer.getTable(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.Table.loadAllColumnStats(), com.cloudera.impala.catalog.HdfsTable.loadColumns(), com.cloudera.impala.catalog.HdfsTable.loadDiskIds(), and com.cloudera.impala.analysis.InsertStmt.setTargetTable().
|
inline |
Definition at line 1319 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.hdfsBaseDir_.
|
inline |
Get the index of hosts that store replicas of blocks of this table.
Definition at line 1328 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.hostIndex_.
|
inlineinherited |
Definition at line 403 of file Table.java.
References com.cloudera.impala.catalog.Table.id_.
Referenced by com.cloudera.impala.planner.HBaseTableSink.toThrift(), and com.cloudera.impala.planner.HdfsTableSink.toThrift().
|
inline |
|
inline |
Returns the file format that the majority of partitions are stored in.
Definition at line 1333 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.partitions_.
Referenced by com.cloudera.impala.planner.PlanFragment.computeCanAddSlotFilters(), and com.cloudera.impala.planner.HdfsScanNode.computeCosts().
|
inlineinherited |
Returns the metastore.api.Table object this Table was created from. Returns null if the derived Table object was not created from a metastore Table (ex. InlineViews).
Definition at line 398 of file Table.java.
References com.cloudera.impala.catalog.Table.msTable_.
Referenced by com.cloudera.impala.catalog.HdfsTable.getFirstLocationWithoutWriteAccess(), com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.View.init(), com.cloudera.impala.catalog.DataSourceTable.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.HBaseTable.loadFromThrift(), com.cloudera.impala.catalog.HdfsTable.loadFromThrift(), and com.cloudera.impala.catalog.Table.toThrift().
|
inlineinherited |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 342 of file Table.java.
References com.cloudera.impala.catalog.Table.name_.
Referenced by com.cloudera.impala.service.CatalogOpExecutor.alterTableUpdateStats(), com.cloudera.impala.catalog.CatalogTest.checkTableCols(), com.cloudera.impala.service.CatalogOpExecutor.createHiveColStats(), com.cloudera.impala.catalog.HdfsTable.createPartition(), com.cloudera.impala.catalog.HdfsPartition.fromThrift(), com.cloudera.impala.analysis.Analyzer.getTable(), com.cloudera.impala.analysis.InlineViewRef.InlineViewRef(), com.cloudera.impala.catalog.Table.parseColumnType(), com.cloudera.impala.analysis.InsertStmt.setTargetTable(), com.cloudera.impala.analysis.ShowStatsStmt.toThrift(), com.cloudera.impala.analysis.ComputeStatsStmt.toThrift(), com.cloudera.impala.service.CatalogOpExecutor.updateCatalog(), and com.cloudera.impala.analysis.WithClause.WithClause().
|
inlineinherited |
Returns the list of all columns excluding any partition columns.
Definition at line 385 of file Table.java.
References com.cloudera.impala.catalog.Table.numClusteringCols_.
Referenced by com.cloudera.impala.analysis.ComputeStatsStmt.analyze(), and com.cloudera.impala.catalog.Table.getColumnsInHiveOrder().
|
inline |
Definition at line 454 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getNumClusteringCols().
|
inline |
Definition at line 446 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.nullColumnValue_.
|
inline |
Definition at line 435 of file HdfsTable.java.
|
inline |
Returns the value Hive is configured to use for NULL partition key values. Set during load.
Definition at line 445 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.nullPartitionKeyValue_.
Referenced by com.cloudera.impala.catalog.HdfsTable.getPartition(), and com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec().
|
inlineinherited |
Definition at line 402 of file Table.java.
References com.cloudera.impala.catalog.Table.numClusteringCols_.
Referenced by com.cloudera.impala.analysis.ShowPartitionsStmt.analyze(), com.cloudera.impala.analysis.ComputeStatsStmt.analyze(), com.cloudera.impala.catalog.CatalogTest.checkTableCols(), com.cloudera.impala.service.CatalogOpExecutor.dropTableOrView(), com.cloudera.impala.analysis.ComputeStatsStmt.getBaseColumnStatsQuerySelectList(), com.cloudera.impala.planner.HdfsScanNode.getNodeExplainString(), com.cloudera.impala.catalog.HdfsTable.getNonPartitionFieldSchemas(), com.cloudera.impala.planner.HdfsScanNode.prunePartitions(), and com.cloudera.impala.service.CatalogOpExecutor.updateCatalog().
|
inline |
Definition at line 1317 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.numHdfsFiles_.
|
inline |
Definition at line 1323 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadDiskIds().
|
inlineinherited |
Definition at line 404 of file Table.java.
References com.cloudera.impala.catalog.Table.numRows_.
Referenced by com.cloudera.impala.analysis.IsNullPredicate.analyze().
|
inlineinherited |
Definition at line 348 of file Table.java.
References com.cloudera.impala.catalog.Table.owner_.
|
inline |
Gets the HdfsPartition matching the given partition spec. Returns null if no match was found.
Definition at line 491 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.getNullPartitionKeyValue(), and com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec().
|
inline |
Gets the HdfsPartition matching the Thrift version of the partition spec. Returns null if no match was found.
Definition at line 505 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getMetaStoreTable(), com.cloudera.impala.catalog.HdfsTable.getNullPartitionKeyValue(), and com.cloudera.impala.catalog.HdfsTable.getPartitions().
Referenced by com.cloudera.impala.catalog.HdfsTable.dropPartition(), com.cloudera.impala.catalog.HdfsTable.getFiles(), and com.cloudera.impala.catalog.HdfsTable.getPartition().
|
inline |
Definition at line 436 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.partitionIds_.
|
inline |
Definition at line 434 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.partitionMap_.
|
inline |
Definition at line 429 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.partitions_.
Referenced by com.cloudera.impala.service.CatalogOpExecutor.alterTableSetCached(), com.cloudera.impala.service.CatalogOpExecutor.alterTableUpdateStats(), com.cloudera.impala.analysis.ComputeStatsStmt.analyze(), com.cloudera.impala.planner.HdfsScanNode.computeStats(), com.cloudera.impala.service.CatalogOpExecutor.dropTableOrView(), com.cloudera.impala.service.CatalogOpExecutor.dropTableStats(), com.cloudera.impala.catalog.HdfsTable.getPartitionFromThriftPartitionSpec(), com.cloudera.impala.testutil.BlockIdGenerator.main(), and com.cloudera.impala.catalog.CatalogObjectToFromThriftTest.TestPartitionedTable().
|
inline |
Definition at line 437 of file HdfsTable.java.
|
inlinestaticprotectedinherited |
Returns the value of the ROW_COUNT constant, or -1 if not found.
Definition at line 191 of file Table.java.
Referenced by com.cloudera.impala.catalog.DataSourceTable.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlineinherited |
Subclasses should override this if they provide a storage handler class. Currently only HBase tables need to provide a storage handler.
Definition at line 366 of file Table.java.
|
inlineinherited |
Definition at line 344 of file Table.java.
References com.cloudera.impala.catalog.Table.db_, com.cloudera.impala.catalog.Db.getName(), and com.cloudera.impala.catalog.Table.name_.
Referenced by com.cloudera.impala.analysis.ComputeStatsStmt.analyze(), com.cloudera.impala.service.CatalogOpExecutor.dropStats(), and com.cloudera.impala.analysis.InlineViewRef.InlineViewRef().
|
inline |
Returns statistics on this table as a tabular result set. Used for the SHOW TABLE STATS statement. The schema of the returned TResultSet is set inside this method.
Definition at line 1363 of file HdfsTable.java.
References com.cloudera.impala.catalog.Type.BIGINT, com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.Table.getMetaStoreTable(), com.cloudera.impala.catalog.Column.getName(), com.cloudera.impala.catalog.Table.numClusteringCols_, com.cloudera.impala.catalog.HdfsTable.numHdfsFiles_, com.cloudera.impala.catalog.Table.numRows_, com.cloudera.impala.catalog.HdfsTable.partitions_, com.cloudera.impala.catalog.Type.STRING, com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_, and com.cloudera.impala.catalog.ScalarType.toThrift().
|
inlineprivate |
Create a THdfsTable corresponding to this HdfsTable. If includeFileDesc is true, then then all partitions and THdfsFileDescs of each partition should be included. Otherwise, don't include any THdfsFileDescs, and include only those partitions in the refPartitions set (the backend doesn't need metadata for unreferenced partitions).
Definition at line 1295 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.avroSchema_, com.cloudera.impala.catalog.Table.getColumnNames(), com.cloudera.impala.catalog.HdfsTable.hdfsBaseDir_, com.cloudera.impala.catalog.HdfsTable.multipleFileSystems_, com.cloudera.impala.catalog.HdfsTable.nullColumnValue_, com.cloudera.impala.catalog.HdfsTable.nullPartitionKeyValue_, and com.cloudera.impala.catalog.HdfsTable.partitions_.
Referenced by com.cloudera.impala.catalog.HdfsTable.toThrift(), and com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor().
|
inline |
Definition at line 1318 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_.
|
inlineinherited |
Definition at line 405 of file Table.java.
References com.cloudera.impala.catalog.Table.type_.
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
inline |
Definition at line 461 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.accessLevel_.
Referenced by com.cloudera.impala.analysis.InsertStmt.setTargetTable().
|
inline |
Definition at line 1320 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.avroSchema_.
Referenced by com.cloudera.impala.analysis.ComputeStatsStmt.analyze().
|
inlineinherited |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 416 of file Table.java.
Referenced by com.cloudera.impala.service.CatalogOpExecutor.getExistingTable(), com.cloudera.impala.service.Frontend.getMissingTbls(), com.cloudera.impala.catalog.CatalogServiceCatalog.getOrLoadTable(), com.cloudera.impala.testutil.ImpaladTestCatalog.getTable(), com.cloudera.impala.catalog.ImpaladCatalog.getTable(), and com.cloudera.impala.analysis.Analyzer.getTable().
|
inline |
Definition at line 432 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.isMarkedCached_.
Referenced by com.cloudera.impala.analysis.AlterTableSetLocationStmt.analyze(), com.cloudera.impala.catalog.HdfsTable.createPartition(), and com.cloudera.impala.service.CatalogOpExecutor.dropTableOrView().
|
inline |
Load the table metadata and reuse metadata to speed up metadata loading. If the lastDdlTime has not been changed, that means the Hive metastore metadata has not been changed. Reuses the old Hive partition metadata from cachedEntry. To speed up Hdfs metadata loading, if a file's mtime has not been changed, reuses the old file block metadata from old value.
There are several cases where the cachedEntry might be reused incorrectly:
Definition at line 1003 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsFileFormat.AVRO, com.cloudera.impala.catalog.HdfsTable.avroSchema_, com.cloudera.impala.catalog.Table.db_, com.cloudera.impala.catalog.HdfsTable.DEFAULT_NULL_COLUMN_VALUE, com.cloudera.impala.catalog.HdfsFileFormat.fromJavaClassName(), com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.Table.getMetaStoreTable(), com.cloudera.impala.catalog.Db.getName(), com.cloudera.impala.catalog.Table.getRowCount(), com.cloudera.impala.catalog.Table.getType(), com.cloudera.impala.catalog.HdfsTable.HdfsTable(), com.cloudera.impala.catalog.Table.lastDdlTime_, com.cloudera.impala.catalog.HdfsTable.loadColumns(), com.cloudera.impala.catalog.HdfsTable.loadPartitions(), com.cloudera.impala.catalog.Table.name_, com.cloudera.impala.catalog.HdfsTable.nullColumnValue_, com.cloudera.impala.catalog.HdfsTable.nullPartitionKeyValue_, com.cloudera.impala.catalog.HdfsTable.NUM_PARTITION_FETCH_RETRIES, com.cloudera.impala.catalog.Table.numClusteringCols_, com.cloudera.impala.catalog.HdfsTable.numHdfsFiles_, com.cloudera.impala.catalog.Table.numRows_, com.cloudera.impala.catalog.HdfsTable.partitions_, and com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_.
|
inlineprotectedinherited |
Loads column statistics for all columns in this table from the Hive metastore. Any errors are logged and ignored, since the absence of column stats is not critical to the correctness of the system.
Definition at line 155 of file Table.java.
References com.cloudera.impala.catalog.Table.getColumn(), com.cloudera.impala.catalog.Table.getColumnNamesWithHmsStats(), com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.Column.getType(), com.cloudera.impala.catalog.ColumnStats.isSupportedColType(), com.cloudera.impala.catalog.Table.name_, and com.cloudera.impala.catalog.Column.updateStats().
Referenced by com.cloudera.impala.catalog.HBaseTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadColumns().
|
inlineprivate |
Queries the filesystem to load the file block metadata (e.g. DFS blocks) for the given file. Adds the newly created block metadata and block location to the perFsFileBlocks, so that the disk IDs for each block can be retrieved with one call to DFS.
Definition at line 275 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.addPerFsFileBlocks(), com.cloudera.impala.catalog.HdfsPartition.FileDescriptor.getFileBlocks(), com.cloudera.impala.common.FileSystemUtil.hasGetFileBlockLocations(), com.cloudera.impala.catalog.HdfsTable.hostIndex_, com.cloudera.impala.catalog.Table.name_, and com.cloudera.impala.catalog.HdfsTable.synthesizeBlockMetadata().
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition().
|
inlineprivate |
Create columns corresponding to fieldSchemas, including column statistics. Throws a TableLoadingException if the metadata is incompatible with what we support.
Definition at line 567 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.addColumn(), com.cloudera.impala.catalog.Table.fields_, com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.Table.loadAllColumnStats(), com.cloudera.impala.catalog.Table.numClusteringCols_, com.cloudera.impala.catalog.Table.parseColumnType(), and com.cloudera.impala.catalog.Type.supportsTablePartitioning().
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
inlineprivate |
Populates disk/volume ID metadata inside the newly created THdfsFileBlocks. perFsFileBlocks maps from each filesystem to a FileBLocksInfo. The first list contains the newly created THdfsFileBlocks and the second contains the corresponding BlockLocations.
Definition at line 363 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.getDiskId(), com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.HdfsTable.getNumNodes(), com.cloudera.impala.catalog.HdfsTable.FileBlocksInfo.locations, and com.cloudera.impala.catalog.HdfsTable.SUPPORTS_VOLUME_ID.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlineprotected |
Definition at line 1243 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.avroSchema_, com.cloudera.impala.catalog.Table.getMetaStoreTable(), com.cloudera.impala.catalog.HdfsTable.hdfsBaseDir_, com.cloudera.impala.catalog.HdfsTable.isMarkedCached_, com.cloudera.impala.catalog.HdfsTable.multipleFileSystems_, com.cloudera.impala.catalog.HdfsTable.nullColumnValue_, com.cloudera.impala.catalog.HdfsTable.nullPartitionKeyValue_, com.cloudera.impala.catalog.HdfsTable.numHdfsFiles_, com.cloudera.impala.catalog.HdfsTable.populatePartitionMd(), com.cloudera.impala.catalog.HdfsTable.resetPartitionMd(), and com.cloudera.impala.catalog.HdfsTable.totalHdfsBytes_.
|
inlineprivate |
Create HdfsPartition objects corresponding to 'partitions'.
If there are no partitions in the Hive metadata, a single partition is added with no partition keys.
For files that have not been changed, reuses file descriptors from oldFileDescMap.
TODO: If any partition fails to load, the entire table will fail to load. Instead, we should consider skipping partitions that cannot be loaded and raise a warning whenever the table is accessed.
Definition at line 629 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.accessLevel_, com.cloudera.impala.catalog.HdfsTable.addDefaultPartition(), com.cloudera.impala.catalog.HdfsTable.addPartition(), com.cloudera.impala.catalog.HdfsTable.CONF, com.cloudera.impala.catalog.HdfsTable.createPartition(), com.cloudera.impala.catalog.HdfsPartition.getAccessLevel(), com.cloudera.impala.catalog.HdfsTable.getAvailableAccessLevel(), com.cloudera.impala.catalog.HdfsTable.getLocation(), com.cloudera.impala.catalog.Table.getRowCount(), com.cloudera.impala.catalog.HdfsTable.hdfsBaseDir_, com.cloudera.impala.util.TAccessLevelUtil.impliesWriteAccess(), com.cloudera.impala.catalog.HdfsTable.isMarkedCached_, com.cloudera.impala.catalog.HdfsTable.loadDiskIds(), and com.cloudera.impala.catalog.HdfsTable.resetPartitionMd().
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
inlineprotectedinherited |
Gets the ColumnType from the given FieldSchema by using Impala's SqlParser. Throws a TableLoadingException if the FieldSchema could not be parsed. The type can either be:
Definition at line 331 of file Table.java.
References com.cloudera.impala.catalog.Table.getName().
Referenced by com.cloudera.impala.catalog.View.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.DataSourceTable.loadColumns(), com.cloudera.impala.catalog.HdfsTable.loadColumns(), and com.cloudera.impala.catalog.HBaseTable.supportsBinaryEncoding().
|
inlineprivate |
Populate the partition metadata of an HdfsTable.
Definition at line 591 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.hasPartitionMd_, com.cloudera.impala.catalog.HdfsTable.partitions_, and com.cloudera.impala.catalog.HdfsTable.updatePartitionMdAndColStats().
Referenced by com.cloudera.impala.catalog.HdfsTable.loadFromThrift().
|
inlineprivate |
Clear the partition metadata of an HdfsTable including column stats.
Definition at line 602 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.HdfsTable.hasPartitionMd_, and com.cloudera.impala.catalog.Table.numClusteringCols_.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadFromThrift(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
inlineinherited |
Implements com.cloudera.impala.catalog.CatalogObject.
Definition at line 411 of file Table.java.
References com.cloudera.impala.catalog.Table.catalogVersion_.
|
inline |
Definition at line 267 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.multipleFileSystems_.
Referenced by com.cloudera.impala.analysis.InsertStmt.setTargetTable().
|
inlineprivate |
For filesystems that don't override getFileBlockLocations, synthesize file blocks by manually splitting the file range into fixed-size blocks. That way, scan ranges can be derived from file blocks as usual. All synthesized blocks are given an invalid network address so that the scheduler will treat them as remote.
Definition at line 335 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsCompression.fromFileName(), com.cloudera.impala.catalog.HdfsPartition.FileDescriptor.getFileName(), com.cloudera.impala.catalog.HdfsTable.hostIndex_, com.cloudera.impala.catalog.HdfsFileFormat.isSplittable(), com.cloudera.impala.catalog.HdfsTable.MIN_SYNTHETIC_BLOCK_SIZE, and com.cloudera.impala.catalog.HdfsTable.REMOTE_NETWORK_ADDRESS.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadBlockMetadata().
|
inlineinherited |
Definition at line 314 of file Table.java.
References com.cloudera.impala.catalog.Table.getCatalogObjectType(), com.cloudera.impala.catalog.Table.getCatalogVersion(), and com.cloudera.impala.catalog.Table.toThrift().
|
inline |
Definition at line 1280 of file HdfsTable.java.
References com.cloudera.impala.catalog.HdfsTable.getTHdfsTable().
|
inline |
Definition at line 1269 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.db_, com.cloudera.impala.catalog.Table.getColumnNames(), com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.Db.getName(), com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.Table.id_, com.cloudera.impala.catalog.Table.name_, and com.cloudera.impala.catalog.Table.numClusteringCols_.
|
inlineinherited |
Updates the lastDdlTime for this Table, if the new value is greater than the existing value. Does nothing if the new value is less than or equal to the existing value.
Definition at line 132 of file Table.java.
References com.cloudera.impala.catalog.Table.lastDdlTime_.
|
inlineprivate |
Updates the HdfsTable's partition metadata, i.e. adds the id to the HdfsTable and populates structures used for speeding up partition pruning/lookup. Also updates column stats.
Definition at line 904 of file HdfsTable.java.
References com.cloudera.impala.catalog.Table.getColumns(), com.cloudera.impala.catalog.HdfsPartition.getId(), com.cloudera.impala.catalog.HdfsPartition.getPartitionValues(), com.cloudera.impala.catalog.HdfsTable.nullPartitionIds_, and com.cloudera.impala.catalog.Table.numClusteringCols_.
Referenced by com.cloudera.impala.catalog.HdfsTable.addPartition(), and com.cloudera.impala.catalog.HdfsTable.populatePartitionMd().
|
inlineinherited |
Checks preconditions for this table to function as expected. Currently only checks that all entries in colsByName_ use lower case keys.
Definition at line 279 of file Table.java.
References com.cloudera.impala.catalog.Table.colsByName_.
|
protectedinherited |
Definition at line 66 of file Table.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getFirstLocationWithoutWriteAccess(), com.cloudera.impala.catalog.HdfsTable.hasWriteAccess(), com.cloudera.impala.catalog.Table.loadFromThrift(), com.cloudera.impala.catalog.HdfsTable.loadPartitions(), and com.cloudera.impala.catalog.Table.toThrift().
|
private |
Definition at line 126 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.HdfsTable.isAvroTable(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadFromThrift().
|
staticprivate |
Definition at line 188 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
protectedinherited |
Definition at line 61 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getDb(), com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.Table.getTableName(), com.cloudera.impala.catalog.View.init(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.Table.Table(), com.cloudera.impala.catalog.IncompleteTable.toThrift(), com.cloudera.impala.catalog.Table.toThrift(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), com.cloudera.impala.catalog.HBaseTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor().
|
staticprivate |
Definition at line 106 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
protectedinherited |
Definition at line 65 of file Table.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getFieldSchemas(), com.cloudera.impala.catalog.HdfsTable.loadColumns(), and com.cloudera.impala.catalog.Table.loadFromThrift().
|
private |
Definition at line 165 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), and com.cloudera.impala.catalog.HdfsTable.getFileDescMap().
|
staticprivate |
Definition at line 132 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getDiskId().
|
private |
Definition at line 153 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.populatePartitionMd(), and com.cloudera.impala.catalog.HdfsTable.resetPartitionMd().
|
protected |
Definition at line 180 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getFirstLocationWithoutWriteAccess(), com.cloudera.impala.catalog.HdfsTable.getHdfsBaseDir(), com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.HdfsTable.loadFromThrift(), and com.cloudera.impala.catalog.HdfsTable.loadPartitions().
|
private |
Definition at line 161 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getHostIndex(), com.cloudera.impala.catalog.HdfsTable.loadBlockMetadata(), and com.cloudera.impala.catalog.HdfsTable.synthesizeBlockMetadata().
|
protectedinherited |
Definition at line 60 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getId(), com.cloudera.impala.catalog.Table.Table(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), com.cloudera.impala.catalog.HBaseTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor().
|
private |
|
protectedinherited |
Definition at line 85 of file Table.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.Table.Table(), and com.cloudera.impala.catalog.Table.updateLastDdlTime().
|
staticprivate |
Definition at line 182 of file HdfsTable.java.
|
staticprivate |
Definition at line 117 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.synthesizeBlockMetadata().
|
protectedinherited |
Definition at line 58 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getMetaStoreTable(), and com.cloudera.impala.catalog.Table.Table().
|
private |
|
protectedinherited |
Definition at line 62 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getFullName(), com.cloudera.impala.catalog.Table.getName(), com.cloudera.impala.catalog.DataSourceTable.getRequiredTableProperty(), com.cloudera.impala.catalog.Table.getTableName(), com.cloudera.impala.catalog.View.init(), com.cloudera.impala.catalog.View.load(), com.cloudera.impala.catalog.DataSourceTable.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.Table.loadAllColumnStats(), com.cloudera.impala.catalog.HdfsTable.loadBlockMetadata(), com.cloudera.impala.catalog.HBaseTable.loadFromThrift(), com.cloudera.impala.catalog.Table.Table(), com.cloudera.impala.catalog.IncompleteTable.toThrift(), com.cloudera.impala.catalog.Table.toThrift(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor().
|
private |
|
private |
Definition at line 143 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.dropPartition(), and com.cloudera.impala.catalog.HdfsTable.updatePartitionMdAndColStats().
|
private |
Definition at line 123 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), com.cloudera.impala.catalog.HdfsTable.getNullPartitionKeyValue(), com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadFromThrift().
|
staticprivate |
Definition at line 109 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.load().
|
protectedinherited |
Definition at line 69 of file Table.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.dropPartition(), com.cloudera.impala.catalog.HdfsTable.getColumnNamesWithHmsStats(), com.cloudera.impala.catalog.Table.getColumnsInHiveOrder(), com.cloudera.impala.catalog.Table.getNonClusteringColumns(), com.cloudera.impala.catalog.Table.getNumClusteringCols(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.View.load(), com.cloudera.impala.catalog.DataSourceTable.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.HdfsTable.loadColumns(), com.cloudera.impala.catalog.Table.loadFromThrift(), com.cloudera.impala.catalog.HdfsTable.resetPartitionMd(), com.cloudera.impala.catalog.Table.toThrift(), com.cloudera.impala.catalog.DataSourceTable.toThriftDescriptor(), com.cloudera.impala.catalog.HBaseTable.toThriftDescriptor(), com.cloudera.impala.catalog.HdfsTable.toThriftDescriptor(), and com.cloudera.impala.catalog.HdfsTable.updatePartitionMdAndColStats().
|
private |
Definition at line 168 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.createPartition(), com.cloudera.impala.catalog.HdfsTable.getNumHdfsFiles(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadFromThrift().
|
protectedinherited |
Definition at line 72 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getNumRows(), com.cloudera.impala.catalog.DataSourceTable.getTableStats(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.View.load(), com.cloudera.impala.catalog.DataSourceTable.load(), com.cloudera.impala.catalog.HBaseTable.load(), com.cloudera.impala.catalog.HdfsTable.load(), com.cloudera.impala.catalog.Table.loadFromThrift(), com.cloudera.impala.catalog.CatalogObjectToFromThriftTest.TestPartitionedTable(), and com.cloudera.impala.catalog.Table.toThrift().
|
protectedinherited |
Definition at line 63 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.getOwner(), and com.cloudera.impala.catalog.Table.Table().
|
private |
Definition at line 150 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getPartitionIds().
|
private |
Definition at line 147 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.getPartitionMap().
|
private |
Definition at line 134 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.addPartition(), com.cloudera.impala.catalog.HdfsTable.dropPartition(), com.cloudera.impala.catalog.HdfsTable.getFiles(), com.cloudera.impala.catalog.HdfsTable.getFirstLocationWithoutWriteAccess(), com.cloudera.impala.catalog.HdfsTable.getMajorityFormat(), com.cloudera.impala.catalog.HdfsTable.getPartitions(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.HdfsTable.getTHdfsTable(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.populatePartitionMd().
|
private |
Definition at line 138 of file HdfsTable.java.
|
staticprivate |
Definition at line 112 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.synthesizeBlockMetadata().
|
staticprotectedinherited |
Definition at line 88 of file Table.java.
|
staticprivate |
Definition at line 190 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.loadDiskIds().
|
protectedinherited |
Definition at line 64 of file Table.java.
|
private |
Definition at line 171 of file HdfsTable.java.
Referenced by com.cloudera.impala.catalog.HdfsTable.addPartition(), com.cloudera.impala.catalog.HdfsTable.dropPartition(), com.cloudera.impala.catalog.HdfsTable.getTableStats(), com.cloudera.impala.catalog.HdfsTable.getTotalHdfsBytes(), com.cloudera.impala.catalog.HdfsTable.load(), and com.cloudera.impala.catalog.HdfsTable.loadFromThrift().
|
protectedinherited |
Definition at line 82 of file Table.java.
Referenced by com.cloudera.impala.catalog.Table.addColumn(), com.cloudera.impala.catalog.Table.clearColumns(), com.cloudera.impala.catalog.Table.getType(), and com.cloudera.impala.catalog.Table.loadFromThrift().