Package org.apache.orc.impl
Class ColumnStatisticsImpl
java.lang.Object
org.apache.orc.impl.ColumnStatisticsImpl
- All Implemented Interfaces:
ColumnStatistics
- Direct Known Subclasses:
ColumnStatisticsImpl.BinaryStatisticsImpl
,ColumnStatisticsImpl.StringStatisticsImpl
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final class
protected static final class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnStatisticsImpl
create
(TypeDescription schema) static ColumnStatisticsImpl
create
(TypeDescription schema, boolean convertToProleptic) static ColumnStatisticsImpl
deserialize
(TypeDescription schema, OrcProto.ColumnStatistics stats) static ColumnStatisticsImpl
deserialize
(TypeDescription schema, OrcProto.ColumnStatistics stats, boolean writerUsedProlepticGregorian, boolean convertToProlepticGregorian) boolean
long
Get the number of bytes for this column.long
Get the number of values in this column.int
hashCode()
boolean
hasNull()
Returns true if there are nulls in the scope of column statistics.void
void
increment
(int count) boolean
void
merge
(ColumnStatisticsImpl stats) void
reset()
void
setNull()
toString()
void
updateBinary
(byte[] bytes, int offset, int length, int repetitions) void
updateBinary
(BytesWritable value) void
updateBoolean
(boolean value, int repetitions) void
updateByteCount
(long size) void
updateCollectionLength
(long value) Update the collection length for Map and List type.void
updateDate
(int value) void
updateDate
(org.apache.hadoop.hive.serde2.io.DateWritable value) void
updateDecimal
(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable value) void
updateDecimal64
(long value, int scale) void
updateDouble
(double value) void
updateInteger
(long value, int repetitions) void
updateString
(byte[] bytes, int offset, int length, int repetitions) void
updateString
(Text value) void
updateTimestamp
(long value, int nanos) void
updateTimestamp
(Timestamp value)
-
Field Details
-
count
protected long count
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
-
updateString
public void updateString(byte[] bytes, int offset, int length, int repetitions) -
updateBinary
-
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
-
updateTimestamp
public void updateTimestamp(long value, int nanos) -
isStatsExists
public boolean isStatsExists() -
merge
-
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 interfaceColumnStatistics
- 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 interfaceColumnStatistics
- Returns:
- true if null present else false
-
getBytesOnDisk
public long getBytesOnDisk()Get the number of bytes for this column.- Specified by:
getBytesOnDisk
in interfaceColumnStatistics
- Returns:
- the number of bytes
-
toString
-
serialize
-
create
-
create
-
deserialize
public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats) -
deserialize
public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats, boolean writerUsedProlepticGregorian, boolean convertToProlepticGregorian)
-