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

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

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

Table.getViewOriginalText介绍

暂无

代码示例

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

  1. public void setViewAsReferenceText(String dbName, Table table) {
  2. String originalText = table.getViewOriginalText();
  3. String expandedText = table.getViewExpandedText();
  4. if (!dbName.equals(table.getDbName())) {
  5. // TODO: If the DB name doesn't match with the metadata from dump, then need to rewrite the original and expanded
  6. // texts using new DB name. Currently it refers to the source database name.
  7. }
  8. this.createViewDesc.setViewOriginalText(originalText);
  9. this.createViewDesc.setViewExpandedText(expandedText);
  10. }

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

  1. public void setViewAsReferenceText(String dbName, Table table) {
  2. String originalText = table.getViewOriginalText();
  3. String expandedText = table.getViewExpandedText();
  4. if (!dbName.equals(table.getDbName())) {
  5. // TODO: If the DB name doesn't match with the metadata from dump, then need to rewrite the original and expanded
  6. // texts using new DB name. Currently it refers to the source database name.
  7. }
  8. this.createViewDesc.setViewOriginalText(originalText);
  9. this.createViewDesc.setViewExpandedText(expandedText);
  10. }

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

  1. private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
  3. formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
  4. formatOutput("View Rewrite Enabled:", tbl.isRewriteEnabled() ? "Yes" : "No", tableInfo);
  5. }

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

  1. final String viewQuery = materializedViewTable.getViewOriginalText();
  2. final RelNode tableRel = createTableScan(materializedViewTable);
  3. if (tableRel == null) {

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

  1. private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("Original Query:", tbl.getViewOriginalText(), tableInfo);
  3. formatOutput("Expanded Query:", tbl.getViewExpandedText(), tableInfo);
  4. if (tbl.isMaterializedView()) {
  5. formatOutput("Rewrite Enabled:", tbl.isRewriteEnabled() ? "Yes" : "No", tableInfo);
  6. formatOutput("Outdated for Rewriting:", tbl.isOutdatedForRewriting() == null ? "Unknown"
  7. : tbl.isOutdatedForRewriting() ? "Yes" : "No", tableInfo);
  8. }
  9. }

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

  1. assert (getViewOriginalText() != null);
  2. assert (getViewExpandedText() != null);
  3. } else if (isMaterializedView()) {
  4. assert(getViewOriginalText() != null);
  5. assert(getViewExpandedText() == null);
  6. } else {
  7. assert(getViewOriginalText() == null);
  8. assert(getViewExpandedText() == null);

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

  1. assert (getViewOriginalText() != null);
  2. assert (getViewExpandedText() != null);
  3. } else {
  4. assert(getViewOriginalText() == null);
  5. assert(getViewExpandedText() == null);

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

  1. private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
  3. formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
  4. }

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

  1. private static void getViewInfo(StringBuilder tableInfo, Table tbl) {
  2. formatOutput("View Original Text:", tbl.getViewOriginalText(), tableInfo);
  3. formatOutput("View Expanded Text:", tbl.getViewExpandedText(), tableInfo);
  4. }

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

  1. assert(getViewOriginalText() != null);
  2. assert(getViewExpandedText() != null);
  3. } else {
  4. assert(getViewOriginalText() == null);
  5. assert(getViewExpandedText() == null);

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

  1. assert(getViewOriginalText() != null);
  2. assert(getViewExpandedText() != null);
  3. } else {
  4. assert(getViewOriginalText() == null);
  5. assert(getViewExpandedText() == null);

代码示例来源:origin: apache/incubator-atlas

  1. if (hiveTable.getViewOriginalText() != null) {
  2. tableReference.set("viewOriginalText", hiveTable.getViewOriginalText());

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

  1. ret.setAttribute(ATTRIBUTE_TEMPORARY, table.isTemporary());
  2. if (table.getViewOriginalText() != null) {
  3. ret.setAttribute(ATTRIBUTE_VIEW_ORIGINAL_TEXT, table.getViewOriginalText());

相关文章

Table类方法