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

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

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

Table.isSetColStats介绍

[英]Returns true if field colStats is set (has been assigned a value) and false otherwise
[中]如果字段colStats已设置(已赋值),则返回true,否则返回false

代码示例

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

  1. public ColumnStatistics getColStats() {
  2. return tTable.isSetColStats() ? tTable.getColStats() : null;
  3. }

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

  1. first = false;
  2. if (isSetColStats()) {
  3. if (!first) sb.append(", ");
  4. sb.append("colStats:");

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

  1. list.add(isStatsCompliant);
  2. boolean present_colStats = true && (isSetColStats());
  3. list.add(present_colStats);
  4. if (present_colStats)

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

  1. if (struct.isSetColStats()) {
  2. oprot.writeFieldBegin(COL_STATS_FIELD_DESC);
  3. struct.colStats.write(oprot);

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

  1. lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats());
  2. if (lastComparison != 0) {
  3. return lastComparison;
  4. if (isSetColStats()) {
  5. lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats);
  6. if (lastComparison != 0) {

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

  1. private void compareStatsForTable(String catName, String dbName, String tableName,
  2. Map<String, Column> colMap) throws TException {
  3. List<ColumnStatisticsObj> objs = catName.equals(NO_CAT) ?
  4. client.getTableColumnStatistics(dbName, tableName, new ArrayList<>(colMap.keySet())) :
  5. client.getTableColumnStatistics(catName, dbName, tableName, new ArrayList<>(colMap.keySet()));
  6. compareStatsForOneTableOrPartition(objs, 0, colMap);
  7. // Test the statistics obtained through getTable call.
  8. Table table = catName.equals(NO_CAT) ?
  9. client.getTable(dbName, tableName, true) :
  10. client.getTable(catName, dbName, tableName, null, true);
  11. Assert.assertTrue(table.isSetColStats());
  12. compareStatsForOneTableOrPartition(table.getColStats().getStatsObj(), 0, colMap);
  13. // Test that getTable call doesn't get the statistics when not explicitly requested.
  14. table = catName.equals(NO_CAT) ?
  15. client.getTable(dbName, tableName, false) :
  16. client.getTable(catName, dbName, tableName, null, false);
  17. Assert.assertFalse(table.isSetColStats());
  18. }

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

  1. if (other.isSetColStats()) {
  2. this.colStats = other.colStats;

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

  1. optionals.set(20);
  2. if (struct.isSetColStats()) {
  3. optionals.set(21);
  4. oprot.writeBool(struct.isStatsCompliant);
  5. if (struct.isSetColStats()) {
  6. struct.colStats.write(oprot);

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

  1. if (tbl.isSetColStats()) {

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

  1. boolean this_present_colStats = true && this.isSetColStats();
  2. boolean that_present_colStats = true && that.isSetColStats();
  3. if (this_present_colStats || that_present_colStats) {
  4. if (!(this_present_colStats && that_present_colStats))

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

  1. return isSetIsStatsCompliant();
  2. case COL_STATS:
  3. return isSetColStats();

相关文章

Table类方法