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

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

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

Table.equals介绍

暂无

代码示例

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

/**
 * Does this Entity belong to target table (partition).
 */
private boolean isTargetTable(Entity entity, Table targetTable) {
 //todo: https://issues.apache.org/jira/browse/HIVE-15048
 /**
  * is this the right way to compare?  Should it just compare paths?
  * equals() impl looks heavy weight
  */
 return targetTable.equals(entity.getTable());
}

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

/**
 * does this Entity belong to target table (partition)
 */
private boolean isTargetTable(Entity entity, Table targetTable) {
 //todo: https://issues.apache.org/jira/browse/HIVE-15048
 /**
  * is this the right way to compare?  Should it just compare paths?
  * equals() impl looks heavy weight
  */
 return targetTable.equals(entity.getTable());
}

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

@Override
public boolean equals(Object obj) {
 return obj instanceof RelOptHiveTable
   && this.rowType.equals(((RelOptHiveTable) obj).getRowType())
   && this.getHiveTableMD().equals(((RelOptHiveTable) obj).getHiveTableMD());
}

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

@Override
public boolean equals(Object obj) {
 return obj instanceof RelOptHiveTable
   && this.rowType.equals(((RelOptHiveTable) obj).getRowType())
   && this.getHiveTableMD().equals(((RelOptHiveTable) obj).getHiveTableMD());
}

相关文章

微信公众号

最新文章

更多

Table类方法