public class HiveShimV310 extends HiveShimV235
Constructor and Description |
---|
HiveShimV310() |
Modifier and Type | Method and Description |
---|---|
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,
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, getViews
alterPartition, getPrimaryKey
getBuiltInFunctionInfo, isDateStats, listBuiltInFunctions, toFlinkDateColStats, toHiveDateColStats
getFieldsFromDeserializer, getHiveOutputFormatClass, getHiveRecordWriter
public org.apache.hadoop.hive.metastore.IMetaStoreClient getHiveMetastoreClient(org.apache.hadoop.hive.conf.HiveConf hiveConf)
HiveShim
getHiveMetastoreClient
in interface HiveShim
getHiveMetastoreClient
in class HiveShimV230
hiveConf
- HiveConf instancepublic Class<?> getMetaStoreUtilsClass()
HiveShim
getMetaStoreUtilsClass
in interface HiveShim
getMetaStoreUtilsClass
in class HiveShimV100
public Class<?> getHiveMetaStoreUtilsClass()
HiveShim
getHiveMetaStoreUtilsClass
in interface HiveShim
getHiveMetaStoreUtilsClass
in class HiveShimV100
public Class<?> getDateDataTypeClass()
HiveShim
getDateDataTypeClass
in interface HiveShim
getDateDataTypeClass
in class HiveShimV100
public Class<?> getTimestampDataTypeClass()
HiveShim
getTimestampDataTypeClass
in interface HiveShim
getTimestampDataTypeClass
in class HiveShimV100
public Set<String> getNotNullColumns(org.apache.hadoop.hive.metastore.IMetaStoreClient client, Configuration conf, String dbName, String tableName)
HiveShim
getNotNullColumns
in interface HiveShim
getNotNullColumns
in class HiveShimV100
public Object toHiveTimestamp(Object flinkTimestamp)
HiveShim
toHiveTimestamp
in interface HiveShim
toHiveTimestamp
in class HiveShimV100
public java.time.LocalDateTime toFlinkTimestamp(Object hiveTimestamp)
HiveShim
toFlinkTimestamp
in interface HiveShim
toFlinkTimestamp
in class HiveShimV100
public Object toHiveDate(Object flinkDate)
HiveShim
toHiveDate
in interface HiveShim
toHiveDate
in class HiveShimV100
public java.time.LocalDate toFlinkDate(Object hiveDate)
HiveShim
toFlinkDate
in interface HiveShim
toFlinkDate
in class HiveShimV100
public org.apache.hadoop.io.Writable hivePrimitiveToWritable(Object value)
HiveShim
hivePrimitiveToWritable
in interface HiveShim
hivePrimitiveToWritable
in class HiveShimV100
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.