public class HiveClient extends Object implements AutoCloseable
| 构造器和说明 |
|---|
HiveClient(org.apache.hadoop.hive.metastore.HiveMetaStoreClient hiveMetaStoreClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
static HiveClient |
createInstance(Map<String,String> reqParam) |
static void |
doKerberosAuthentication(org.apache.hadoop.conf.Configuration configuration,
String principal,
String keytabPath) |
List<String> |
getAllDatabases() |
List<String> |
getAllTables(String dbName) |
List<String> |
getAllTables(String dbName,
String filterName,
Integer size) |
List<TableField> |
getFields(String dbName,
String tableName) |
public HiveClient(org.apache.hadoop.hive.metastore.HiveMetaStoreClient hiveMetaStoreClient)
public static HiveClient createInstance(Map<String,String> reqParam)
public static void doKerberosAuthentication(org.apache.hadoop.conf.Configuration configuration,
String principal,
String keytabPath)
public void close()
close 在接口中 AutoCloseablepublic List<TableField> getFields(String dbName, String tableName)
Copyright © 2024 The Apache Software Foundation. All rights reserved.