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

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

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

  1. public boolean isDummy() {
  2. if (typ == Type.DATABASE) {
  3. return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
  4. }
  5. if (typ == Type.TABLE) {
  6. return t.isDummyTable();
  7. }
  8. return false;
  9. }

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

  1. public boolean isDummy() {
  2. if (typ == Type.DATABASE) {
  3. return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
  4. }
  5. if (typ == Type.TABLE) {
  6. return t.isDummyTable();
  7. }
  8. return false;
  9. }

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

  1. public MapWork createMapWork(GenTezProcContext context, Operator<?> root,
  2. TezWork tezWork, PrunedPartitionList partitions) throws SemanticException {
  3. assert root.getParentOperators().isEmpty();
  4. MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber());
  5. LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root);
  6. // map work starts with table scan operators
  7. assert root instanceof TableScanOperator;
  8. TableScanOperator ts = (TableScanOperator) root;
  9. String alias = ts.getConf().getAlias();
  10. setupMapWork(mapWork, context, partitions, ts, alias);
  11. if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) {
  12. mapWork.setDummyTableScan(true);
  13. }
  14. if (ts.getConf().getNumBuckets() > 0) {
  15. mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets());
  16. }
  17. // add new item to the tez work
  18. tezWork.add(mapWork);
  19. return mapWork;
  20. }

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

  1. public MapWork createMapWork(GenTezProcContext context, Operator<?> root,
  2. TezWork tezWork, PrunedPartitionList partitions) throws SemanticException {
  3. assert root.getParentOperators().isEmpty();
  4. MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber());
  5. LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root);
  6. // map work starts with table scan operators
  7. assert root instanceof TableScanOperator;
  8. TableScanOperator ts = (TableScanOperator) root;
  9. String alias = ts.getConf().getAlias();
  10. setupMapWork(mapWork, context, partitions, ts, alias);
  11. if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) {
  12. mapWork.setDummyTableScan(true);
  13. }
  14. if (ts.getConf().getNumBuckets() > 0) {
  15. mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets());
  16. }
  17. // add new item to the tez work
  18. tezWork.add(mapWork);
  19. return mapWork;
  20. }

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

  1. public boolean isDummy() {
  2. if (typ == Type.DATABASE) {
  3. return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
  4. }
  5. if (typ == Type.TABLE) {
  6. return t.isDummyTable();
  7. }
  8. return false;
  9. }

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

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

相关文章

Table类方法