public class HiveShimV310 extends HiveShimV235
| Constructor and Description |
|---|
HiveShimV310() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTableWithConstraints(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table table,
org.apache.hadoop.conf.Configuration conf,
org.apache.flink.table.api.constraints.UniqueConstraint pk,
List<Byte> pkTraits,
List<String> notNullCols,
List<Byte> nnTraits)
Creates a table with PK and NOT NULL constraints.
|
Class<?> |
getDateDataTypeClass()
Hive Date data type class was changed in Hive 3.1.0.
|
org.apache.hadoop.hive.metastore.IMetaStoreClient |
getHiveMetastoreClient(org.apache.hadoop.hive.conf.HiveConf hiveConf)
Create a Hive Metastore client based on the given HiveConf object.
|
Class<?> |
getHiveMetaStoreUtilsClass()
Get the class of Hive's HiveMetaStoreUtils as it was split from MetaStoreUtils class in Hive
3.1.0.
|
Class<?> |
getMetaStoreUtilsClass()
Get the class of Hive's MetaStoreUtils because its package name was changed in Hive 3.1.0.
|
Set<String> |
getNotNullColumns(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
org.apache.hadoop.conf.Configuration conf,
String dbName,
String tableName)
Get the set of columns that have NOT NULL constraints.
|
Class<?> |
getTimestampDataTypeClass()
Hive Timestamp data type class was changed in Hive 3.1.0.
|
org.apache.hadoop.io.Writable |
hivePrimitiveToWritable(Object value)
Converts a Hive primitive java object to corresponding Writable object.
|
java.time.LocalDate |
toFlinkDate(Object hiveDate)
Converts a hive date instance to LocalDate which is expected by DataFormatConverter.
|
java.time.LocalDateTime |
toFlinkTimestamp(Object hiveTimestamp)
Converts a hive timestamp instance to LocalDateTime which is expected by DataFormatConverter.
|
Object |
toHiveDate(Object flinkDate)
Converts a Flink date instance to what's expected by Hive.
|
Object |
toHiveTimestamp(Object flinkTimestamp)
Converts a Flink timestamp instance to what's expected by Hive.
|
alterTable, createUDAFParameterInfo, getViewsalterPartition, getPrimaryKeycreateOrcBulkWriterFactorygetBuiltInFunctionInfo, isDateStats, listBuiltInFunctions, toFlinkDateColStats, toHiveDateColStatsgetFieldsFromDeserializer, getHiveOutputFormatClass, getHiveRecordWriterpublic org.apache.hadoop.hive.metastore.IMetaStoreClient getHiveMetastoreClient(org.apache.hadoop.hive.conf.HiveConf hiveConf)
HiveShimgetHiveMetastoreClient in interface HiveShimgetHiveMetastoreClient in class HiveShimV230hiveConf - HiveConf instancepublic Class<?> getMetaStoreUtilsClass()
HiveShimgetMetaStoreUtilsClass in interface HiveShimgetMetaStoreUtilsClass in class HiveShimV100public Class<?> getHiveMetaStoreUtilsClass()
HiveShimgetHiveMetaStoreUtilsClass in interface HiveShimgetHiveMetaStoreUtilsClass in class HiveShimV100public Class<?> getDateDataTypeClass()
HiveShimgetDateDataTypeClass in interface HiveShimgetDateDataTypeClass in class HiveShimV100public Class<?> getTimestampDataTypeClass()
HiveShimgetTimestampDataTypeClass in interface HiveShimgetTimestampDataTypeClass in class HiveShimV100public Set<String> getNotNullColumns(org.apache.hadoop.hive.metastore.IMetaStoreClient client, org.apache.hadoop.conf.Configuration conf, String dbName, String tableName)
HiveShimgetNotNullColumns in interface HiveShimgetNotNullColumns in class HiveShimV100public Object toHiveTimestamp(Object flinkTimestamp)
HiveShimtoHiveTimestamp in interface HiveShimtoHiveTimestamp in class HiveShimV100public java.time.LocalDateTime toFlinkTimestamp(Object hiveTimestamp)
HiveShimtoFlinkTimestamp in interface HiveShimtoFlinkTimestamp in class HiveShimV100public Object toHiveDate(Object flinkDate)
HiveShimtoHiveDate in interface HiveShimtoHiveDate in class HiveShimV100public java.time.LocalDate toFlinkDate(Object hiveDate)
HiveShimtoFlinkDate in interface HiveShimtoFlinkDate in class HiveShimV100public org.apache.hadoop.io.Writable hivePrimitiveToWritable(Object value)
HiveShimhivePrimitiveToWritable in interface HiveShimhivePrimitiveToWritable in class HiveShimV100public void createTableWithConstraints(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
org.apache.hadoop.hive.metastore.api.Table table,
org.apache.hadoop.conf.Configuration conf,
org.apache.flink.table.api.constraints.UniqueConstraint pk,
List<Byte> pkTraits,
List<String> notNullCols,
List<Byte> nnTraits)
HiveShimcreateTableWithConstraints in interface HiveShimcreateTableWithConstraints in class HiveShimV210Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.