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

Public Member Functions

 TableLoader (CatalogServiceCatalog catalog)
 
Table load (Db db, String tblName, Table cachedValue)
 

Private Attributes

final CatalogServiceCatalog catalog_
 

Static Private Attributes

static final Logger LOG = Logger.getLogger(TableLoader.class)
 
static EnumSet< TableType > SUPPORTED_TABLE_TYPES
 
static final Object metastoreAccessLock_ = new Object()
 

Detailed Description

Class that implements the logic for how a table's metadata should be loaded from the Hive Metastore / HDFS / etc.

Definition at line 29 of file TableLoader.java.

Constructor & Destructor Documentation

com.cloudera.impala.catalog.TableLoader.TableLoader ( CatalogServiceCatalog  catalog)
inline

Definition at line 43 of file TableLoader.java.

References com.cloudera.impala.catalog.TableLoader.catalog_.

Member Function Documentation

Table com.cloudera.impala.catalog.TableLoader.load ( Db  db,
String  tblName,
Table  cachedValue 
)
inline

Creates the Impala representation of Hive/HBase metadata for one table. Calls load() on the appropriate instance of Table subclass. cachedValue is the existing cache entry and might still contain valid info to help speed up metadata loading. cachedValue is null if there is no existing cache entry (i.e. during fresh load). The catalogVersion parameter specifies what version will be assigned to the newly loaded object. Returns new instance of Table, If there were any errors loading the table metadata an IncompleteTable will be returned that contains details on the error.

Definition at line 58 of file TableLoader.java.

References com.cloudera.impala.catalog.Db.getName(), com.cloudera.impala.catalog.TableLoader.metastoreAccessLock_, and com.cloudera.impala.catalog.TableLoader.SUPPORTED_TABLE_TYPES.

Member Data Documentation

final CatalogServiceCatalog com.cloudera.impala.catalog.TableLoader.catalog_
private
final Logger com.cloudera.impala.catalog.TableLoader.LOG = Logger.getLogger(TableLoader.class)
staticprivate

Definition at line 30 of file TableLoader.java.

final Object com.cloudera.impala.catalog.TableLoader.metastoreAccessLock_ = new Object()
staticprivate

Definition at line 41 of file TableLoader.java.

Referenced by com.cloudera.impala.catalog.TableLoader.load().

EnumSet<TableType> com.cloudera.impala.catalog.TableLoader.SUPPORTED_TABLE_TYPES
staticprivate
Initial value:
= EnumSet.of(
TableType.EXTERNAL_TABLE, TableType.MANAGED_TABLE, TableType.VIRTUAL_VIEW)

Definition at line 33 of file TableLoader.java.

Referenced by com.cloudera.impala.catalog.TableLoader.load().


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