public class HoodieHiveClient extends Object
| Constructor and Description |
|---|
HoodieHiveClient(HiveSyncConfig cfg,
org.apache.hadoop.hive.conf.HiveConf configuration,
org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
doesTableExist() |
HoodieTimeline |
getActiveTimeline() |
String |
getBasePath() |
org.apache.parquet.schema.MessageType |
getDataSchema()
Gets the schema for a hoodie dataset.
|
org.apache.hadoop.fs.FileSystem |
getFs() |
Option<String> |
getLastCommitTimeSynced() |
Map<String,String> |
getTableSchema()
Get the table schema
|
Map<String,String> |
getTableSchemaUsingMetastoreClient() |
List<org.apache.hadoop.hive.metastore.api.Partition> |
scanTablePartitions()
Scan table partitions
|
void |
updateHiveSQL(String s)
Execute a update in hive metastore with this SQL
|
org.apache.hadoop.hive.ql.processors.CommandProcessorResponse |
updateHiveSQLUsingHiveDriver(String sql)
Execute a update in hive using Hive Driver
|
public HoodieHiveClient(HiveSyncConfig cfg, org.apache.hadoop.hive.conf.HiveConf configuration, org.apache.hadoop.fs.FileSystem fs)
public HoodieTimeline getActiveTimeline()
public List<org.apache.hadoop.hive.metastore.api.Partition> scanTablePartitions() throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic org.apache.parquet.schema.MessageType getDataSchema()
public boolean doesTableExist()
public void updateHiveSQL(String s)
s - SQL to executepublic org.apache.hadoop.hive.ql.processors.CommandProcessorResponse updateHiveSQLUsingHiveDriver(String sql) throws HoodieHiveSyncException
sql - SQL statement to executeHoodieHiveSyncExceptionpublic String getBasePath()
public org.apache.hadoop.fs.FileSystem getFs()
public void close()
Copyright © 2019 The Apache Software Foundation. All rights reserved.