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

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

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

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

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

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

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

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

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

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

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

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

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

assert (getViewOriginalText() != null);
 assert (getViewExpandedText() != null);
} else if (isMaterializedView()) {
 assert(getViewOriginalText() != null);
 assert(getViewExpandedText() == null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

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

assert (getViewOriginalText() != null);
 assert (getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

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

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

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

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

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

assert(getViewOriginalText() != null);
 assert(getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

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

assert(getViewOriginalText() != null);
 assert(getViewExpandedText() != null);
} else {
 assert(getViewOriginalText() == null);
 assert(getViewExpandedText() == null);

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

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

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

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

相关文章

微信公众号

最新文章

更多

Table类方法