org.apache.hadoop.hive.metastore.api.Table.hashCode()方法的使用及代码示例

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

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

Table.hashCode介绍

暂无

代码示例

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

  1. @Override
  2. public int hashCode() {
  3. final int prime = 31;
  4. int result = 1;
  5. result = prime * result + ((tTable == null) ? 0 : tTable.hashCode());
  6. return result;
  7. }

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

  1. @Override
  2. public int hashCode() {
  3. final int prime = 31;
  4. int result = 1;
  5. result = prime * result + ((tTable == null) ? 0 : tTable.hashCode());
  6. return result;
  7. }

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

  1. @Override
  2. public int hashCode() {
  3. return (alias != null ? alias.hashCode() : 7)
  4. + (table != null ? table.hashCode() : 11);
  5. }

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

  1. @Override
  2. public int hashCode() {
  3. return (alias != null ? alias.hashCode() : 7)
  4. + (table != null ? table.hashCode() : 11);
  5. }

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

  1. @Override
  2. public int hashCode() {
  3. int result = databaseName != null ? databaseName.hashCode() : 0;
  4. result = 31 * result + (tableName != null ? tableName.hashCode() : 0);
  5. result = 31 * result + (dataColumns != null ? dataColumns.hashCode() : 0);
  6. result = 31 * result + (partitionColumns != null ? partitionColumns.hashCode() : 0);
  7. result = 31 * result + (table != null ? table.hashCode() : 0);
  8. result = 31 * result + (storerInfo != null ? storerInfo.hashCode() : 0);
  9. return result;
  10. }

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

  1. @Override
  2. public int hashCode() {
  3. final int prime = 31;
  4. int result = 1;
  5. result = prime * result + ((tTable == null) ? 0 : tTable.hashCode());
  6. return result;
  7. }

代码示例来源:origin: org.apache.hive.hcatalog/hive-hcatalog-core

  1. @Override
  2. public int hashCode() {
  3. int result = databaseName != null ? databaseName.hashCode() : 0;
  4. result = 31 * result + (tableName != null ? tableName.hashCode() : 0);
  5. result = 31 * result + (dataColumns != null ? dataColumns.hashCode() : 0);
  6. result = 31 * result + (partitionColumns != null ? partitionColumns.hashCode() : 0);
  7. result = 31 * result + (table != null ? table.hashCode() : 0);
  8. result = 31 * result + (storerInfo != null ? storerInfo.hashCode() : 0);
  9. return result;
  10. }

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

  1. @Override
  2. public int hashCode() {
  3. int result = databaseName != null ? databaseName.hashCode() : 0;
  4. result = 31 * result + (tableName != null ? tableName.hashCode() : 0);
  5. result = 31 * result + (dataColumns != null ? dataColumns.hashCode() : 0);
  6. result = 31 * result + (partitionColumns != null ? partitionColumns.hashCode() : 0);
  7. result = 31 * result + (table != null ? table.hashCode() : 0);
  8. result = 31 * result + (storerInfo != null ? storerInfo.hashCode() : 0);
  9. return result;
  10. }

代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-core

  1. @Override
  2. public int hashCode() {
  3. int result = databaseName != null ? databaseName.hashCode() : 0;
  4. result = 31 * result + (tableName != null ? tableName.hashCode() : 0);
  5. result = 31 * result + (dataColumns != null ? dataColumns.hashCode() : 0);
  6. result = 31 * result + (partitionColumns != null ? partitionColumns.hashCode() : 0);
  7. result = 31 * result + (table != null ? table.hashCode() : 0);
  8. result = 31 * result + (storerInfo != null ? storerInfo.hashCode() : 0);
  9. return result;
  10. }

代码示例来源:origin: org.spark-project.hive.hcatalog/hive-hcatalog-core

  1. @Override
  2. public int hashCode() {
  3. int result = databaseName != null ? databaseName.hashCode() : 0;
  4. result = 31 * result + (tableName != null ? tableName.hashCode() : 0);
  5. result = 31 * result + (dataColumns != null ? dataColumns.hashCode() : 0);
  6. result = 31 * result + (partitionColumns != null ? partitionColumns.hashCode() : 0);
  7. result = 31 * result + (table != null ? table.hashCode() : 0);
  8. result = 31 * result + (storerInfo != null ? storerInfo.hashCode() : 0);
  9. return result;
  10. }

相关文章

Table类方法