Search in sources :

Example 1 with ClientCapabilities

use of org.apache.hadoop.hive.metastore.api.ClientCapabilities in project hetu-core by openlookeng.

the class ThriftHiveMetastoreClient method getTableWithCapabilities.

@Override
public Table getTableWithCapabilities(String databaseName, String tableName) throws TException {
    GetTableRequest request = new GetTableRequest();
    request.setDbName(databaseName);
    request.setTblName(tableName);
    request.setCapabilities(new ClientCapabilities(ImmutableList.of(ClientCapability.INSERT_ONLY_TABLES)));
    return client.get_table_req(request).getTable();
}
Also used : GetTableRequest(org.apache.hadoop.hive.metastore.api.GetTableRequest) ClientCapabilities(org.apache.hadoop.hive.metastore.api.ClientCapabilities)

Example 2 with ClientCapabilities

use of org.apache.hadoop.hive.metastore.api.ClientCapabilities in project trino by trinodb.

the class ThriftHiveMetastoreClient method getTableWithCapabilities.

@Override
public Table getTableWithCapabilities(String databaseName, String tableName) throws TException {
    GetTableRequest request = new GetTableRequest();
    request.setDbName(databaseName);
    request.setTblName(tableName);
    request.setCapabilities(new ClientCapabilities(ImmutableList.of(ClientCapability.INSERT_ONLY_TABLES)));
    return client.get_table_req(request).getTable();
}
Also used : GetTableRequest(org.apache.hadoop.hive.metastore.api.GetTableRequest) ClientCapabilities(org.apache.hadoop.hive.metastore.api.ClientCapabilities)

Aggregations

ClientCapabilities (org.apache.hadoop.hive.metastore.api.ClientCapabilities)2 GetTableRequest (org.apache.hadoop.hive.metastore.api.GetTableRequest)2