public class HiveShimV120 extends HiveShimV111
holdDDLTime, inheritTableSpecs, isAcid, isSkewedStoreAsSubdir
Constructor and Description |
---|
HiveShimV120() |
Modifier and Type | Method and Description |
---|---|
void |
alterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
String databaseName,
String tableName,
org.apache.hadoop.hive.metastore.api.Table table)
Alters a Hive table.
|
org.apache.hadoop.hive.metastore.IMetaStoreClient |
getHiveMetastoreClient(HiveConf hiveConf)
Create a Hive Metastore client based on the given HiveConf object.
|
org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo |
getIntervalDayTimeTypeInfo() |
org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo |
getIntervalYearMonthTypeInfo() |
boolean |
isDateStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData colStatsData)
Whether a Hive ColumnStatisticsData is for DATE columns.
|
boolean |
isIntervalDayTimeType(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory primitiveCategory) |
boolean |
isIntervalYearMonthType(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory primitiveCategory) |
Set<String> |
listBuiltInFunctions()
List names of all built-in functions.
|
void |
registerTemporaryFunction(String funcName,
Class funcClass) |
CatalogColumnStatisticsDataDate |
toFlinkDateColStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData hiveDateColStats)
Generate Flink CatalogColumnStatisticsDataDate from Hive ColumnStatisticsData for DATE
columns.
|
org.apache.hadoop.hive.metastore.api.ColumnStatisticsData |
toHiveDateColStats(CatalogColumnStatisticsDataDate flinkDateColStats)
Generate Hive ColumnStatisticsData from Flink CatalogColumnStatisticsDataDate for DATE
columns.
|
getFieldsFromDeserializer, getHiveOutputFormatClass, getHiveRecordWriter
alterPartition, createOrcBulkWriterFactory, createTableWithConstraints, createUDAFParameterInfo, getBuiltInFunctionInfo, getDateDataTypeClass, getDateWritableClass, getHiveMetaStoreUtilsClass, getMetaStoreUtilsClass, getNotNullColumns, getPrimaryKey, getTimestampDataTypeClass, getTimestampWritableClass, getViews, hivePrimitiveToWritable, loadPartition, loadTable, toFlinkDate, toFlinkTimestamp, toHiveDate, toHiveTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMaterializedView
public org.apache.hadoop.hive.metastore.IMetaStoreClient getHiveMetastoreClient(HiveConf hiveConf)
HiveShim
getHiveMetastoreClient
in interface HiveShim
getHiveMetastoreClient
in class HiveShimV100
hiveConf
- HiveConf instancepublic void alterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client, String databaseName, String tableName, org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
HiveShim
alterTable
in interface HiveShim
alterTable
in class HiveShimV100
client
- the Hive metastore clientdatabaseName
- the name of the database to which the table belongstableName
- the name of the table to be alteredtable
- the new Hive tableorg.apache.hadoop.hive.metastore.api.InvalidOperationException
org.apache.hadoop.hive.metastore.api.MetaException
org.apache.thrift.TException
public org.apache.hadoop.hive.metastore.api.ColumnStatisticsData toHiveDateColStats(CatalogColumnStatisticsDataDate flinkDateColStats)
HiveShim
toHiveDateColStats
in interface HiveShim
toHiveDateColStats
in class HiveShimV100
public boolean isDateStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData colStatsData)
HiveShim
isDateStats
in interface HiveShim
isDateStats
in class HiveShimV100
public CatalogColumnStatisticsDataDate toFlinkDateColStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData hiveDateColStats)
HiveShim
toFlinkDateColStats
in interface HiveShim
toFlinkDateColStats
in class HiveShimV100
public Set<String> listBuiltInFunctions()
HiveShim
listBuiltInFunctions
in interface HiveShim
listBuiltInFunctions
in class HiveShimV100
public org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo getIntervalYearMonthTypeInfo()
public org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo getIntervalDayTimeTypeInfo()
public boolean isIntervalYearMonthType(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory primitiveCategory)
public boolean isIntervalDayTimeType(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory primitiveCategory)
public void registerTemporaryFunction(String funcName, Class funcClass)
registerTemporaryFunction
in interface HiveShim
registerTemporaryFunction
in class HiveShimV100
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.