org.apache.hadoop.hive.ql.metadata.Hive.getIndexes()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getIndexes()方法的一些代码示例,展示了Hive.getIndexes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getIndexes()方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getIndexes

Hive.getIndexes介绍

暂无

代码示例

代码示例来源:origin: apache/drill

/**
 * @return List containing Indexes names if there are indexes on this table
 * @throws HiveException
 **/
public static List<Index> getAllIndexes(Table table, short max) throws HiveException {
 Hive hive = Hive.get();
 return hive.getIndexes(table.getTTable().getDbName(), table.getTTable().getTableName(), max);
}

代码示例来源:origin: apache/drill

indexes = db.getIndexes(tbl.getDbName(), tbl.getTableName(), (short) -1);

代码示例来源:origin: apache/drill

HiveConf.ConfVars.HIVE_CONCATENATE_CHECK_INDEX);
if (checkIndex) {
 List<Index> indexes = db.getIndexes(tblObj.getDbName(), tblObj.getTableName(),
   Short.MAX_VALUE);
 if (indexes != null && indexes.size() > 0) {

代码示例来源:origin: apache/drill

List<Index> indexes = db.getIndexes(table.getDbName(), tableName, (short)1);
if (indexes != null && indexes.size() > 0) {
 throw new SemanticException(ErrorMsg.TRUNCATE_COLUMN_INDEXED_TABLE.getMsg());

代码示例来源:origin: com.facebook.presto.hive/hive-apache

/**
 * @return List containing Indexes names if there are indexes on this table
 * @throws HiveException
 **/
public static List<Index> getAllIndexes(Table table, short max) throws HiveException {
 Hive hive = Hive.get();
 return hive.getIndexes(table.getTTable().getDbName(), table.getTTable().getTableName(), max);
}

代码示例来源:origin: org.apache.hadoop.hive/hive-exec

indexes = db.getIndexes(tbl.getDbName(), tbl.getTableName(), (short) -1);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

indexes = db.getIndexes(tbl.getDbName(), tbl.getTableName(), (short) -1);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

HiveConf.ConfVars.HIVE_CONCATENATE_CHECK_INDEX);
if (checkIndex) {
 List<Index> indexes = db.getIndexes(tblObj.getDbName(), tblObj.getTableName(),
   Short.MAX_VALUE);
 if (indexes != null && indexes.size() > 0) {

代码示例来源:origin: com.facebook.presto.hive/hive-apache

List<Index> indexes = db.getIndexes(table.getDbName(), tableName, (short)1);
if (indexes != null && indexes.size() > 0) {
 throw new SemanticException(ErrorMsg.TRUNCATE_COLUMN_INDEXED_TABLE.getMsg());

相关文章

微信公众号

最新文章

更多

Hive类方法