public class HiveDB extends BaseDB implements Serializable
Constructor and Description |
---|
HiveDB(Params params) |
HiveDB(String hiveConfDir,
String hiveVersion,
String dbName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.flink.api.common.io.RichOutputFormat |
createFormat(String tableName,
org.apache.flink.table.api.TableSchema schema) |
void |
createTable(String tableName,
org.apache.flink.table.api.TableSchema schema,
Params parameter) |
void |
dropTable(String tableName) |
void |
execute(String sql) |
org.apache.flink.table.api.Table |
getBatchTable(String tableName,
Params parameter,
Long sessionId) |
String[] |
getColNames(String tableName) |
BaseDbTable |
getDbTable(String tableName) |
String |
getHiveConfDir() |
String |
getHiveVersion() |
String |
getName() |
List<String> |
getPartitionCols(String tableName) |
org.apache.flink.table.api.Table |
getStreamTable(String tableName,
Params parameter,
Long sessionId) |
org.apache.flink.table.api.TableSchema |
getTableSchema(String tableName) |
boolean |
hasColumn(String table,
String column) |
boolean |
hasTable(String table) |
List<String> |
listTableNames() |
void |
sinkBatch(String tableName,
org.apache.flink.table.api.Table in,
Params parameter,
Long sessionId) |
void |
sinkStream(String tableName,
org.apache.flink.table.api.Table in,
Params parameter,
Long sessionId) |
bucketingSinkStream, bucketingSinkStream, createTable, createTable, directRead, getBatchTable, getParams, getStreamTable, initConnector, isDB, of, sinkStream
public HiveDB(Params params)
public String getHiveVersion()
public String getHiveConfDir()
public List<String> listTableNames() throws Exception
listTableNames
in class BaseDB
Exception
public void createTable(String tableName, org.apache.flink.table.api.TableSchema schema, Params parameter) throws Exception
createTable
in class BaseDB
Exception
public String[] getColNames(String tableName) throws Exception
getColNames
in class BaseDB
Exception
public org.apache.flink.table.api.TableSchema getTableSchema(String tableName) throws Exception
getTableSchema
in class BaseDB
Exception
public BaseDbTable getDbTable(String tableName) throws Exception
getDbTable
in class BaseDB
Exception
public org.apache.flink.table.api.Table getBatchTable(String tableName, Params parameter, Long sessionId) throws Exception
getBatchTable
in class BaseDB
Exception
public org.apache.flink.table.api.Table getStreamTable(String tableName, Params parameter, Long sessionId) throws Exception
getStreamTable
in class BaseDB
Exception
public void sinkStream(String tableName, org.apache.flink.table.api.Table in, Params parameter, Long sessionId)
sinkStream
in class BaseDB
public void sinkBatch(String tableName, org.apache.flink.table.api.Table in, Params parameter, Long sessionId)
public org.apache.flink.api.common.io.RichOutputFormat createFormat(String tableName, org.apache.flink.table.api.TableSchema schema)
createFormat
in class BaseDB
Copyright © 2020 Alibaba Group. All rights reserved.