@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_max = true && (isSetMax()); list.add(present_max); if (present_max) list.add(max); boolean present_min = true && (isSetMin()); list.add(present_min); if (present_min) list.add(min); boolean present_null_count = true && (isSetNull_count()); list.add(present_null_count); if (present_null_count) list.add(null_count); boolean present_distinct_count = true && (isSetDistinct_count()); list.add(present_distinct_count); if (present_distinct_count) list.add(distinct_count); boolean present_max_value = true && (isSetMax_value()); list.add(present_max_value); if (present_max_value) list.add(max_value); boolean present_min_value = true && (isSetMin_value()); list.add(present_min_value); if (present_min_value) list.add(min_value); return list.hashCode(); }
public static org.apache.parquet.column.statistics.Statistics<?> readStats(Statistics statistics, PrimitiveTypeName type) { org.apache.parquet.column.statistics.Statistics<?> stats = org.apache.parquet.column.statistics.Statistics.getStatsBasedOnType(type); if (statistics != null) { if (statistics.isSetMax() && statistics.isSetMin()) { stats.setMinMaxFromBytes(statistics.min.array(), statistics.max.array()); } stats.setNumNulls(statistics.null_count); } return stats; }
/** 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 MAX: return isSetMax(); case MIN: return isSetMin(); case NULL_COUNT: return isSetNull_count(); case DISTINCT_COUNT: return isSetDistinct_count(); case MAX_VALUE: return isSetMax_value(); case MIN_VALUE: return isSetMin_value(); } throw new IllegalStateException(); }
public static org.apache.parquet.column.statistics.Statistics<?> readStats(Statistics statistics, PrimitiveTypeName type) { org.apache.parquet.column.statistics.Statistics<?> stats = org.apache.parquet.column.statistics.Statistics.getStatsBasedOnType(type); if (statistics != null) { if (statistics.isSetMax() && statistics.isSetMin()) { stats.setMinMaxFromBytes(statistics.min.array(), statistics.max.array()); } stats.setNumNulls(statistics.null_count); } return stats; }
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case MAX: return isSetMax(); case MIN: return isSetMin(); case NULL_COUNT: return isSetNull_count(); case DISTINCT_COUNT: return isSetDistinct_count(); case MAX_VALUE: return isSetMax_value(); case MIN_VALUE: return isSetMin_value(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetMax()) ? 131071 : 524287); if (isSetMax()) hashCode = hashCode * 8191 + max.hashCode(); hashCode = hashCode * 8191 + ((isSetMin()) ? 131071 : 524287); if (isSetMin()) hashCode = hashCode * 8191 + min.hashCode(); hashCode = hashCode * 8191 + ((isSetNull_count()) ? 131071 : 524287); if (isSetNull_count()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(null_count); hashCode = hashCode * 8191 + ((isSetDistinct_count()) ? 131071 : 524287); if (isSetDistinct_count()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(distinct_count); hashCode = hashCode * 8191 + ((isSetMax_value()) ? 131071 : 524287); if (isSetMax_value()) hashCode = hashCode * 8191 + max_value.hashCode(); hashCode = hashCode * 8191 + ((isSetMin_value()) ? 131071 : 524287); if (isSetMin_value()) hashCode = hashCode * 8191 + min_value.hashCode(); return hashCode; }
if (isSetMin()) { if (!first) sb.append(", "); sb.append("min:");
if (isSetMin()) { if (!first) sb.append(", "); sb.append("min:");
/** * Performs a deep copy on <i>other</i>. */ public Statistics(Statistics other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMax()) { this.max = org.apache.thrift.TBaseHelper.copyBinary(other.max); } if (other.isSetMin()) { this.min = org.apache.thrift.TBaseHelper.copyBinary(other.min); } this.null_count = other.null_count; this.distinct_count = other.distinct_count; if (other.isSetMax_value()) { this.max_value = org.apache.thrift.TBaseHelper.copyBinary(other.max_value); } if (other.isSetMin_value()) { this.min_value = org.apache.thrift.TBaseHelper.copyBinary(other.min_value); } }
/** * Performs a deep copy on <i>other</i>. */ public Statistics(Statistics other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMax()) { this.max = org.apache.thrift.TBaseHelper.copyBinary(other.max); } if (other.isSetMin()) { this.min = org.apache.thrift.TBaseHelper.copyBinary(other.min); } this.null_count = other.null_count; this.distinct_count = other.distinct_count; if (other.isSetMax_value()) { this.max_value = org.apache.thrift.TBaseHelper.copyBinary(other.max_value); } if (other.isSetMin_value()) { this.min_value = org.apache.thrift.TBaseHelper.copyBinary(other.min_value); } }
boolean isSet = formatStats.isSetMax() && formatStats.isSetMin(); boolean maxEqualsMin = isSet ? Arrays.equals(formatStats.getMin(), formatStats.getMax()) : false; boolean sortOrdersMatch = SortOrder.SIGNED == typeSortOrder;
boolean isSet = formatStats.isSetMax() && formatStats.isSetMin(); boolean maxEqualsMin = isSet ? Arrays.equals(formatStats.getMin(), formatStats.getMax()) : false; boolean sortOrdersMatch = SortOrder.SIGNED == typeSortOrder;
if (struct.isSetMin()) { oprot.writeFieldBegin(MIN_FIELD_DESC); oprot.writeBinary(struct.min);
if (struct.isSetMin()) { oprot.writeFieldBegin(MIN_FIELD_DESC); oprot.writeBinary(struct.min);