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

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

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

Table.isDummyTable介绍

暂无

代码示例

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

public boolean isDummy() {
 if (typ == Type.DATABASE) {
  return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
 }
 if (typ == Type.TABLE) {
  return t.isDummyTable();
 }
 return false;
}

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

public boolean isDummy() {
 if (typ == Type.DATABASE) {
  return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
 }
 if (typ == Type.TABLE) {
  return t.isDummyTable();
 }
 return false;
}

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

public MapWork createMapWork(GenTezProcContext context, Operator<?> root,
  TezWork tezWork, PrunedPartitionList partitions) throws SemanticException {
 assert root.getParentOperators().isEmpty();
 MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber());
 LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root);
 // map work starts with table scan operators
 assert root instanceof TableScanOperator;
 TableScanOperator ts = (TableScanOperator) root;
 String alias = ts.getConf().getAlias();
 setupMapWork(mapWork, context, partitions, ts, alias);
 if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) {
  mapWork.setDummyTableScan(true);
 }
 if (ts.getConf().getNumBuckets() > 0) {
  mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets());
 }
 // add new item to the tez work
 tezWork.add(mapWork);
 return mapWork;
}

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

public MapWork createMapWork(GenTezProcContext context, Operator<?> root,
  TezWork tezWork, PrunedPartitionList partitions) throws SemanticException {
 assert root.getParentOperators().isEmpty();
 MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber());
 LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root);
 // map work starts with table scan operators
 assert root instanceof TableScanOperator;
 TableScanOperator ts = (TableScanOperator) root;
 String alias = ts.getConf().getAlias();
 setupMapWork(mapWork, context, partitions, ts, alias);
 if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) {
  mapWork.setDummyTableScan(true);
 }
 if (ts.getConf().getNumBuckets() > 0) {
  mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets());
 }
 // add new item to the tez work
 tezWork.add(mapWork);
 return mapWork;
}

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

public boolean isDummy() {
 if (typ == Type.DATABASE) {
  return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
 }
 if (typ == Type.TABLE) {
  return t.isDummyTable();
 }
 return false;
}

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

public MapWork createMapWork(GenTezProcContext context, Operator<?> root,
  TezWork tezWork, PrunedPartitionList partitions) throws SemanticException {
 assert root.getParentOperators().isEmpty();
 MapWork mapWork = new MapWork(Utilities.MAPNAME + (++sequenceNumber));
 LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root);
 // map work starts with table scan operators
 assert root instanceof TableScanOperator;
 TableScanOperator ts = (TableScanOperator) root;
 String alias = ts.getConf().getAlias();
 setupMapWork(mapWork, context, partitions, root, alias);
 if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) {
  mapWork.setDummyTableScan(true);
 }
 // add new item to the tez work
 tezWork.add(mapWork);
 return mapWork;
}

相关文章

微信公众号

最新文章

更多

Table类方法