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

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

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

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

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

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

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

list.add(isStatsCompliant);
boolean present_colStats = true && (isSetColStats());
list.add(present_colStats);
if (present_colStats)

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

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

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

lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats());
if (lastComparison != 0) {
 return lastComparison;
if (isSetColStats()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats);
 if (lastComparison != 0) {

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

private void compareStatsForTable(String catName, String dbName, String tableName,
                 Map<String, Column> colMap) throws TException {
 List<ColumnStatisticsObj> objs = catName.equals(NO_CAT) ?
   client.getTableColumnStatistics(dbName, tableName, new ArrayList<>(colMap.keySet())) :
   client.getTableColumnStatistics(catName, dbName, tableName, new ArrayList<>(colMap.keySet()));
 compareStatsForOneTableOrPartition(objs, 0, colMap);
 // Test the statistics obtained through getTable call.
 Table table = catName.equals(NO_CAT) ?
     client.getTable(dbName, tableName, true) :
     client.getTable(catName, dbName, tableName, null, true);
 Assert.assertTrue(table.isSetColStats());
 compareStatsForOneTableOrPartition(table.getColStats().getStatsObj(), 0, colMap);
 // Test that getTable call doesn't get the statistics when not explicitly requested.
 table = catName.equals(NO_CAT) ?
     client.getTable(dbName, tableName, false) :
     client.getTable(catName, dbName, tableName, null, false);
 Assert.assertFalse(table.isSetColStats());
}

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

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

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

optionals.set(20);
if (struct.isSetColStats()) {
 optionals.set(21);
 oprot.writeBool(struct.isStatsCompliant);
if (struct.isSetColStats()) {
 struct.colStats.write(oprot);

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

if (tbl.isSetColStats()) {

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

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

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

return isSetIsStatsCompliant();
case COL_STATS:
 return isSetColStats();

相关文章

Table类方法