@Override public void setBitVectors(byte[] bitVectors) { super.setBitVectors(bitVectors); this.ndvEstimator = null; }
@Override public void setBitVectors(ByteBuffer bitVectors) { super.setBitVectors(bitVectors); this.ndvEstimator = null; }
public DoubleColumnStatsDataInspector(DoubleColumnStatsDataInspector other) { super(other); if (other.ndvEstimator != null) { super.setBitVectors(ndvEstimator.serialize()); } }
private void updateBitVectors() { super.setBitVectors(ndvEstimator.serialize()); this.ndvEstimator = null; }
public byte[] getBitVectors() { setBitVectors(org.apache.thrift.TBaseHelper.rightSize(bitVectors)); return bitVectors == null ? null : bitVectors.array(); }
private static void unpackDoubleStats(ObjectInspector oi, Object o, String fName, ColumnStatisticsObj statsObj) throws UnsupportedDoubleException { if (fName.equals("countnulls")) { long v = ((LongObjectInspector) oi).get(o); statsObj.getStatsData().getDoubleStats().setNumNulls(v); } else if (fName.equals("numdistinctvalues")) { long v = ((LongObjectInspector) oi).get(o); statsObj.getStatsData().getDoubleStats().setNumDVs(v); } else if (fName.equals("max")) { double d = ((DoubleObjectInspector) oi).get(o); if (Double.isInfinite(d) || Double.isNaN(d)) { throw new UnsupportedDoubleException(); } statsObj.getStatsData().getDoubleStats().setHighValue(d); } else if (fName.equals("min")) { double d = ((DoubleObjectInspector) oi).get(o); if (Double.isInfinite(d) || Double.isNaN(d)) { throw new UnsupportedDoubleException(); } statsObj.getStatsData().getDoubleStats().setLowValue(d); } else if (fName.equals("ndvbitvector")) { PrimitiveObjectInspector poi = (PrimitiveObjectInspector) oi; byte[] buf = ((BinaryObjectInspector) poi).getPrimitiveJavaObject(o); statsObj.getStatsData().getDoubleStats().setBitVectors(buf); ; } }
private void unpackDoubleStats(ObjectInspector oi, Object o, String fName, ColumnStatisticsObj statsObj) throws UnsupportedDoubleException { if (fName.equals("countnulls")) { long v = ((LongObjectInspector) oi).get(o); statsObj.getStatsData().getDoubleStats().setNumNulls(v); } else if (fName.equals("numdistinctvalues")) { long v = ((LongObjectInspector) oi).get(o); statsObj.getStatsData().getDoubleStats().setNumDVs(v); } else if (fName.equals("max")) { double d = ((DoubleObjectInspector) oi).get(o); if (Double.isInfinite(d) || Double.isNaN(d)) { throw new UnsupportedDoubleException(); } statsObj.getStatsData().getDoubleStats().setHighValue(d); } else if (fName.equals("min")) { double d = ((DoubleObjectInspector) oi).get(o); if (Double.isInfinite(d) || Double.isNaN(d)) { throw new UnsupportedDoubleException(); } statsObj.getStatsData().getDoubleStats().setLowValue(d); } else if (fName.equals("ndvbitvector")) { PrimitiveObjectInspector poi = (PrimitiveObjectInspector) oi; String v = ((StringObjectInspector) poi).getPrimitiveJavaObject(o); statsObj.getStatsData().getDoubleStats().setBitVectors(v);; } }
unsetBitVectors(); } else { setBitVectors((ByteBuffer)value);
@Override public void setBitVectors(byte[] bitVectors) { super.setBitVectors(bitVectors); this.ndvEstimator = null; }
@Override public void setBitVectors(ByteBuffer bitVectors) { super.setBitVectors(bitVectors); this.ndvEstimator = null; }
oldDoubleStatsData.setBitVectors(newDoubleStatsData.getBitVectors());
public byte[] getBitVectors() { setBitVectors(org.apache.thrift.TBaseHelper.rightSize(bitVectors)); return bitVectors == null ? null : bitVectors.array(); }
private void updateBitVectors() { super.setBitVectors(ndvEstimator.serialize()); this.ndvEstimator = null; }
public DoubleColumnStatsDataInspector(DoubleColumnStatsDataInspector other) { super(other); if (other.ndvEstimator != null) { super.setBitVectors(ndvEstimator.serialize()); } }
unsetBitVectors(); } else { setBitVectors((ByteBuffer)value);