Class ColumnStatisticsImpl

java.lang.Object
org.apache.orc.impl.ColumnStatisticsImpl
All Implemented Interfaces:
ColumnStatistics
Direct Known Subclasses:
ColumnStatisticsImpl.BinaryStatisticsImpl, ColumnStatisticsImpl.StringStatisticsImpl

public class ColumnStatisticsImpl extends Object implements ColumnStatistics
  • Field Details

    • count

      protected long count
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • increment

      public void increment()
    • increment

      public void increment(int count)
    • updateByteCount

      public void updateByteCount(long size)
    • setNull

      public void setNull()
    • updateCollectionLength

      public void updateCollectionLength(long value)
      Update the collection length for Map and List type.
      Parameters:
      value - length of collection
    • updateBoolean

      public void updateBoolean(boolean value, int repetitions)
    • updateInteger

      public void updateInteger(long value, int repetitions)
    • updateDouble

      public void updateDouble(double value)
    • updateString

      public void updateString(Text value)
    • updateString

      public void updateString(byte[] bytes, int offset, int length, int repetitions)
    • updateBinary

      public void updateBinary(BytesWritable value)
    • updateBinary

      public void updateBinary(byte[] bytes, int offset, int length, int repetitions)
    • updateDecimal

      public void updateDecimal(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable value)
    • updateDecimal64

      public void updateDecimal64(long value, int scale)
    • updateDate

      public void updateDate(org.apache.hadoop.hive.serde2.io.DateWritable value)
    • updateDate

      public void updateDate(int value)
    • updateTimestamp

      public void updateTimestamp(Timestamp value)
    • updateTimestamp

      public void updateTimestamp(long value, int nanos)
    • isStatsExists

      public boolean isStatsExists()
    • merge

      public void merge(ColumnStatisticsImpl stats)
    • reset

      public void reset()
    • getNumberOfValues

      public long getNumberOfValues()
      Description copied from interface: ColumnStatistics
      Get the number of values in this column. It will differ from the number of rows because of NULL values and repeated values.
      Specified by:
      getNumberOfValues in interface ColumnStatistics
      Returns:
      the number of values
    • hasNull

      public boolean hasNull()
      Description copied from interface: ColumnStatistics
      Returns true if there are nulls in the scope of column statistics.
      Specified by:
      hasNull in interface ColumnStatistics
      Returns:
      true if null present else false
    • getBytesOnDisk

      public long getBytesOnDisk()
      Get the number of bytes for this column.
      Specified by:
      getBytesOnDisk in interface ColumnStatistics
      Returns:
      the number of bytes
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serialize

    • create

      public static ColumnStatisticsImpl create(TypeDescription schema)
    • create

      public static ColumnStatisticsImpl create(TypeDescription schema, boolean convertToProleptic)
    • deserialize

      public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats)
    • deserialize

      public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats, boolean writerUsedProlepticGregorian, boolean convertToProlepticGregorian)