@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_isTblLevel = true; list.add(present_isTblLevel); if (present_isTblLevel) list.add(isTblLevel); boolean present_dbName = true && (isSetDbName()); list.add(present_dbName); if (present_dbName) list.add(dbName); boolean present_tableName = true && (isSetTableName()); list.add(present_tableName); if (present_tableName) list.add(tableName); boolean present_partName = true && (isSetPartName()); list.add(present_partName); if (present_partName) list.add(partName); boolean present_lastAnalyzed = true && (isSetLastAnalyzed()); list.add(present_lastAnalyzed); if (present_lastAnalyzed) list.add(lastAnalyzed); boolean present_catName = true && (isSetCatName()); list.add(present_catName); if (present_catName) list.add(catName); return list.hashCode(); }
if (isSetLastAnalyzed()) { if (!first) sb.append(", "); sb.append("lastAnalyzed:");
if (struct.isSetLastAnalyzed()) { oprot.writeFieldBegin(LAST_ANALYZED_FIELD_DESC); oprot.writeI64(struct.lastAnalyzed);
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case IS_TBL_LEVEL: return isSetIsTblLevel(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case PART_NAME: return isSetPartName(); case LAST_ANALYZED: return isSetLastAnalyzed(); case CAT_NAME: return isSetCatName(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(other.isSetLastAnalyzed()); if (lastComparison != 0) { return lastComparison; if (isSetLastAnalyzed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, other.lastAnalyzed); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBool(struct.isTblLevel); oprot.writeString(struct.dbName); oprot.writeString(struct.tableName); BitSet optionals = new BitSet(); if (struct.isSetPartName()) { optionals.set(0); } if (struct.isSetLastAnalyzed()) { optionals.set(1); } if (struct.isSetCatName()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetPartName()) { oprot.writeString(struct.partName); } if (struct.isSetLastAnalyzed()) { oprot.writeI64(struct.lastAnalyzed); } if (struct.isSetCatName()) { oprot.writeString(struct.catName); } }
boolean this_present_lastAnalyzed = true && this.isSetLastAnalyzed(); boolean that_present_lastAnalyzed = true && that.isSetLastAnalyzed(); if (this_present_lastAnalyzed || that_present_lastAnalyzed) { if (!(this_present_lastAnalyzed && that_present_lastAnalyzed))
private ColumnStatistics makeColumnStats( List<Object[]> list, ColumnStatisticsDesc csd, int offset) throws MetaException { ColumnStatistics result = new ColumnStatistics(); result.setStatsDesc(csd); List<ColumnStatisticsObj> csos = new ArrayList<ColumnStatisticsObj>(list.size()); for (Object[] row : list) { // LastAnalyzed is stored per column but thrift has it per several; // get the lowest for now as nobody actually uses this field. Object laObj = row[offset + 15]; if (laObj != null && (!csd.isSetLastAnalyzed() || csd.getLastAnalyzed() > MetastoreDirectSqlUtils .extractSqlLong(laObj))) { csd.setLastAnalyzed(MetastoreDirectSqlUtils.extractSqlLong(laObj)); } csos.add(prepareCSObj(row, offset)); Deadline.checkTimeout(); } result.setStatsObj(csos); return result; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_isTblLevel = true; builder.append(present_isTblLevel); if (present_isTblLevel) builder.append(isTblLevel); boolean present_dbName = true && (isSetDbName()); builder.append(present_dbName); if (present_dbName) builder.append(dbName); boolean present_tableName = true && (isSetTableName()); builder.append(present_tableName); if (present_tableName) builder.append(tableName); boolean present_partName = true && (isSetPartName()); builder.append(present_partName); if (present_partName) builder.append(partName); boolean present_lastAnalyzed = true && (isSetLastAnalyzed()); builder.append(present_lastAnalyzed); if (present_lastAnalyzed) builder.append(lastAnalyzed); return builder.toHashCode(); }
if (isSetLastAnalyzed()) { if (!first) sb.append(", "); sb.append("lastAnalyzed:");
if (struct.isSetLastAnalyzed()) { oprot.writeFieldBegin(LAST_ANALYZED_FIELD_DESC); oprot.writeI64(struct.lastAnalyzed);
if (struct.isSetLastAnalyzed()) { oprot.writeFieldBegin(LAST_ANALYZED_FIELD_DESC); oprot.writeI64(struct.lastAnalyzed);
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case IS_TBL_LEVEL: return isSetIsTblLevel(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case PART_NAME: return isSetPartName(); case LAST_ANALYZED: return isSetLastAnalyzed(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case IS_TBL_LEVEL: return isSetIsTblLevel(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case PART_NAME: return isSetPartName(); case LAST_ANALYZED: return isSetLastAnalyzed(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBool(struct.isTblLevel); oprot.writeString(struct.dbName); oprot.writeString(struct.tableName); BitSet optionals = new BitSet(); if (struct.isSetPartName()) { optionals.set(0); } if (struct.isSetLastAnalyzed()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartName()) { oprot.writeString(struct.partName); } if (struct.isSetLastAnalyzed()) { oprot.writeI64(struct.lastAnalyzed); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBool(struct.isTblLevel); oprot.writeString(struct.dbName); oprot.writeString(struct.tableName); BitSet optionals = new BitSet(); if (struct.isSetPartName()) { optionals.set(0); } if (struct.isSetLastAnalyzed()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartName()) { oprot.writeString(struct.partName); } if (struct.isSetLastAnalyzed()) { oprot.writeI64(struct.lastAnalyzed); } }
boolean this_present_lastAnalyzed = true && this.isSetLastAnalyzed(); boolean that_present_lastAnalyzed = true && that.isSetLastAnalyzed(); if (this_present_lastAnalyzed || that_present_lastAnalyzed) { if (!(this_present_lastAnalyzed && that_present_lastAnalyzed))
private ColumnStatistics makeColumnStats( List<Object[]> list, ColumnStatisticsDesc csd, int offset) throws MetaException { ColumnStatistics result = new ColumnStatistics(); result.setStatsDesc(csd); List<ColumnStatisticsObj> csos = new ArrayList<ColumnStatisticsObj>(list.size()); for (Object[] row : list) { // LastAnalyzed is stored per column but thrift has it per several; // get the lowest for now as nobody actually uses this field. Object laObj = row[offset + 14]; if (laObj != null && (!csd.isSetLastAnalyzed() || csd.getLastAnalyzed() > extractSqlLong(laObj))) { csd.setLastAnalyzed(extractSqlLong(laObj)); } csos.add(prepareCSObj(row, offset)); Deadline.checkTimeout(); } result.setStatsObj(csos); return result; }
private ColumnStatistics makeColumnStats( List<Object[]> list, ColumnStatisticsDesc csd, int offset) throws MetaException { ColumnStatistics result = new ColumnStatistics(); result.setStatsDesc(csd); List<ColumnStatisticsObj> csos = new ArrayList<ColumnStatisticsObj>(list.size()); for (Object[] row : list) { // LastAnalyzed is stored per column but thrift has it per several; // get the lowest for now as nobody actually uses this field. Object laObj = row[offset + 14]; if (laObj != null && (!csd.isSetLastAnalyzed() || csd.getLastAnalyzed() > extractSqlLong(laObj))) { csd.setLastAnalyzed(extractSqlLong(laObj)); } csos.add(prepareCSObj(row, offset)); Deadline.checkTimeout(); } result.setStatsObj(csos); return result; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_isTblLevel = true; builder.append(present_isTblLevel); if (present_isTblLevel) builder.append(isTblLevel); boolean present_dbName = true && (isSetDbName()); builder.append(present_dbName); if (present_dbName) builder.append(dbName); boolean present_tableName = true && (isSetTableName()); builder.append(present_tableName); if (present_tableName) builder.append(tableName); boolean present_partName = true && (isSetPartName()); builder.append(present_partName); if (present_partName) builder.append(partName); boolean present_lastAnalyzed = true && (isSetLastAnalyzed()); builder.append(present_lastAnalyzed); if (present_lastAnalyzed) builder.append(lastAnalyzed); return builder.toHashCode(); }