Package org.apache.orc.impl
Class ColumnStatisticsImpl.StringStatisticsImpl
java.lang.Object
org.apache.orc.impl.ColumnStatisticsImpl
org.apache.orc.impl.ColumnStatisticsImpl.StringStatisticsImpl
- All Implemented Interfaces:
ColumnStatistics,StringColumnStatistics
- Enclosing class:
- ColumnStatisticsImpl
protected static final class ColumnStatisticsImpl.StringStatisticsImpl
extends ColumnStatisticsImpl
implements StringColumnStatistics
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.orc.impl.ColumnStatisticsImpl
ColumnStatisticsImpl.BinaryStatisticsImpl, ColumnStatisticsImpl.StringStatisticsImpl -
Field Summary
FieldsFields inherited from class org.apache.orc.impl.ColumnStatisticsImpl
count -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMinimum())Get the maximum string.Get the minimum string.longgetSum()Get the total length of all stringsGet the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMaximum())inthashCode()voidmerge(ColumnStatisticsImpl other) voidreset()toString()voidupdateString(byte[] bytes, int offset, int length, int repetitions) voidupdateString(Text value) Methods inherited from class org.apache.orc.impl.ColumnStatisticsImpl
create, create, deserialize, deserialize, getBytesOnDisk, getNumberOfValues, hasNull, increment, increment, isStatsExists, setNull, updateBinary, updateBinary, updateBoolean, updateByteCount, updateCollectionLength, updateDate, updateDate, updateDecimal, updateDecimal64, updateDouble, updateGeometry, updateGeometry, updateInteger, updateTimestamp, updateTimestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.orc.ColumnStatistics
getBytesOnDisk, getNumberOfValues, hasNull
-
Field Details
-
MAX_BYTES_RECORDED
public static final int MAX_BYTES_RECORDED- See Also:
-
-
Method Details
-
reset
public void reset()- Overrides:
resetin classColumnStatisticsImpl
-
updateString
- Overrides:
updateStringin classColumnStatisticsImpl
-
updateString
public void updateString(byte[] bytes, int offset, int length, int repetitions) - Overrides:
updateStringin classColumnStatisticsImpl
-
merge
- Overrides:
mergein classColumnStatisticsImpl
-
serialize
- Overrides:
serializein classColumnStatisticsImpl
-
getMinimum
Description copied from interface:StringColumnStatisticsGet the minimum string.- Specified by:
getMinimumin interfaceStringColumnStatistics- Returns:
- the minimum
-
getMaximum
Description copied from interface:StringColumnStatisticsGet the maximum string.- Specified by:
getMaximumin interfaceStringColumnStatistics- Returns:
- the maximum
-
getLowerBound
Get the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMinimum())- Specified by:
getLowerBoundin interfaceStringColumnStatistics- Returns:
- lower bound
-
getUpperBound
Get the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMaximum())- Specified by:
getUpperBoundin interfaceStringColumnStatistics- Returns:
- upper bound
-
getSum
public long getSum()Description copied from interface:StringColumnStatisticsGet the total length of all strings- Specified by:
getSumin interfaceStringColumnStatistics- Returns:
- the sum (total length)
-
toString
- Overrides:
toStringin classColumnStatisticsImpl
-
equals
- Overrides:
equalsin classColumnStatisticsImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classColumnStatisticsImpl
-