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

x33g5p2x  于2022-01-29 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(126)

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

Table.getPartColByName介绍

暂无

代码示例

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

public boolean isPartitionKey(String colName) {
 return getPartColByName(colName) != null;
}

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

public boolean isPartitionKey(String colName) {
 return getPartColByName(colName) == null ? false : true;
}

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

String key = kvp.getKey();
Object val = kvp.getValue();
String type = table.getPartColByName(key).getType();
PrimitiveTypeInfo pti = TypeInfoFactory.getPrimitiveTypeInfo(type);
ExprNodeColumnDesc column = new ExprNodeColumnDesc(pti, key, null, true);

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

String key = kvp.getKey();
Object val = kvp.getValue();
String type = table.getPartColByName(key).getType();

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

String columnType = table.getPartColByName(column).getType();
String alias = ts.getConf().getAlias();
PrunedPartitionList plist = parseContext.getPrunedPartitions(alias, ts);

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

String columnType = table.getPartColByName(column).getType();
String alias = ts.getConf().getAlias();
PrunedPartitionList plist = parseContext.getPrunedPartitions(alias, ts);

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

Map<String,String> tblProps = tbl.getParameters() == null ? new HashMap<String,String>() : tbl.getParameters();
if (tbl.isPartitionKey(colNames.get(0))) {
 FieldSchema partCol = tbl.getPartColByName(colNames.get(0));
 cols = Collections.singletonList(partCol);
 PartitionIterable parts = new PartitionIterable(db, tbl, null, conf.getIntVar(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX));

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

Map<String,String> tblProps = tbl.getParameters() == null ? new HashMap<String,String>() : tbl.getParameters();
if (tbl.isPartitionKey(colNames.get(0))) {
 FieldSchema partCol = tbl.getPartColByName(colNames.get(0));
 cols = Collections.singletonList(partCol);
 PartitionIterable parts = new PartitionIterable(db, tbl, null, conf.getIntVar(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX));

相关文章

微信公众号

最新文章

更多

Table类方法