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

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

本文整理了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

  1. public boolean isPartitionKey(String colName) {
  2. return getPartColByName(colName) != null;
  3. }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章

Table类方法