public class DruidStorageHandler extends DefaultHiveMetaHook implements HiveStorageHandler
HiveStorageHandler.AcidSupportType| Modifier and Type | Field and Description |
|---|---|
static String |
SEGMENTS_DESCRIPTOR_DIR_NAME |
DEFAULT_ALLOWED_ALTER_OPSALLOW_PARTITION_KEY_CHANGE, allowedAlterTypes, ALTER_TABLE_OPERATION_TYPE, ALTERLOCATION, INITIALIZE_ROLLBACK_MIGRATION, MIGRATE_HIVE_TO_ICEBERG, PROPERTIES_SEPARATOR, SET_PROPERTIES, SKIP_METASTORE_ALTER, UNSET_PROPERTIES| Constructor and Description |
|---|
DruidStorageHandler() |
DruidStorageHandler(org.apache.druid.metadata.SQLMetadataConnector connector,
org.apache.druid.metadata.MetadataStorageTablesConfig druidMetadataStorageTablesConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacidSelectColumns, acidSortColumns, acidVirtualColumns, addDynamicSplitPruningEdge, alwaysUnpartitioned, areSnapshotsSupported, canProvideBasicStatistics, commitInMoveTask, createDPContext, directInsertCTAS, executeOperation, getBasicStatistics, getCurrentSnapshotContext, getFileFormatPropertyKey, getPartitionTransformSpec, isAllowedAlterOperation, isMetadataTableSupported, isTimeTravelAllowed, isValidMetadataTable, prepareAlterTableEnvironmentContext, sortColumns, storageHandlerCommit, supportsAcidOperations, supportsPartitionTransform, supportsSortColumns, supportsTruncateOnNonNativeTables, validateSinkDesccommitAlterTable, createHMSTableInHook, preDropTable, preTruncateTable, rollbackAlterTablepublic static final String SEGMENTS_DESCRIPTOR_DIR_NAME
public DruidStorageHandler()
public DruidStorageHandler(org.apache.druid.metadata.SQLMetadataConnector connector,
org.apache.druid.metadata.MetadataStorageTablesConfig druidMetadataStorageTablesConfig)
public Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
getInputFormatClass in interface HiveStorageHandlerpublic Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
getOutputFormatClass in interface HiveStorageHandlerpublic Class<? extends org.apache.hadoop.hive.serde2.AbstractSerDe> getSerDeClass()
getSerDeClass in interface HiveStorageHandlerpublic HiveMetaHook getMetaHook()
getMetaHook in interface HiveStorageHandlerpublic HiveAuthorizationProvider getAuthorizationProvider()
getAuthorizationProvider in interface HiveStorageHandlerpublic void configureInputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
configureInputJobProperties in interface HiveStorageHandlerpublic void configureInputJobCredentials(TableDesc tableDesc, Map<String,String> jobSecrets)
configureInputJobCredentials in interface HiveStorageHandlerpublic void preCreateTable(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
preCreateTable in interface HiveMetaHookorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void rollbackCreateTable(org.apache.hadoop.hive.metastore.api.Table table)
rollbackCreateTable in interface HiveMetaHookpublic void commitCreateTable(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
commitCreateTable in interface HiveMetaHookorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic URI getURIForAuth(org.apache.hadoop.hive.metastore.api.Table table) throws URISyntaxException
getURIForAuth in interface HiveStorageHandlerURISyntaxExceptionpublic void preDropTable(org.apache.hadoop.hive.metastore.api.Table table)
preDropTable in interface HiveMetaHookpublic void rollbackDropTable(org.apache.hadoop.hive.metastore.api.Table table)
rollbackDropTable in interface HiveMetaHookpublic void commitDropTable(org.apache.hadoop.hive.metastore.api.Table table, boolean deleteData)
commitDropTable in interface HiveMetaHookpublic void commitInsertTable(org.apache.hadoop.hive.metastore.api.Table table, boolean overwrite) throws org.apache.hadoop.hive.metastore.api.MetaException
commitInsertTable in class DefaultHiveMetaHookorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void preInsertTable(org.apache.hadoop.hive.metastore.api.Table table, boolean overwrite)
preInsertTable in class DefaultHiveMetaHookpublic void rollbackInsertTable(org.apache.hadoop.hive.metastore.api.Table table, boolean overwrite)
rollbackInsertTable in class DefaultHiveMetaHookpublic void configureOutputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
configureOutputJobProperties in interface HiveStorageHandlerpublic void configureTableJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
configureTableJobProperties in interface HiveStorageHandlerpublic void configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf)
configureJobConf in interface HiveStorageHandlerpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.hive.metastore.api.LockType getLockType(WriteEntity writeEntity)
getLockType in interface HiveStorageHandlerpublic static org.apache.druid.java.util.http.client.HttpClient getHttpClient()
public void preAlterTable(org.apache.hadoop.hive.metastore.api.Table table, org.apache.hadoop.hive.metastore.api.EnvironmentContext context) throws org.apache.hadoop.hive.metastore.api.MetaException
preAlterTable in interface HiveMetaHookorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic StorageHandlerInfo getStorageHandlerInfo(org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.MetaException
getStorageHandlerInfo in interface HiveStorageHandlerorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic Map<String,String> getOperatorDescProperties(OperatorDesc operatorDesc, Map<String,String> initialProps)
getOperatorDescProperties in interface HiveStorageHandlerCopyright © 2022 The Apache Software Foundation. All rights reserved.