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 TypeMethodDescriptionboolean
Get the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMinimum())Get the maximum string.Get the minimum string.long
getSum()
Get the total length of all stringsGet the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMaximum())int
hashCode()
void
merge
(ColumnStatisticsImpl other) void
reset()
toString()
void
updateString
(byte[] bytes, int offset, int length, int repetitions) void
updateString
(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, updateInteger, updateTimestamp, updateTimestamp
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
reset
in classColumnStatisticsImpl
-
updateString
- Overrides:
updateString
in classColumnStatisticsImpl
-
updateString
public void updateString(byte[] bytes, int offset, int length, int repetitions) - Overrides:
updateString
in classColumnStatisticsImpl
-
merge
- Overrides:
merge
in classColumnStatisticsImpl
-
serialize
- Overrides:
serialize
in classColumnStatisticsImpl
-
getMinimum
Description copied from interface:StringColumnStatistics
Get the minimum string.- Specified by:
getMinimum
in interfaceStringColumnStatistics
- Returns:
- the minimum
-
getMaximum
Description copied from interface:StringColumnStatistics
Get the maximum string.- Specified by:
getMaximum
in interfaceStringColumnStatistics
- Returns:
- the maximum
-
getLowerBound
Get the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMinimum())- Specified by:
getLowerBound
in interfaceStringColumnStatistics
- Returns:
- lower bound
-
getUpperBound
Get the string with length = Min(StringStatisticsImpl.MAX_BYTES_RECORDED, getMaximum())- Specified by:
getUpperBound
in interfaceStringColumnStatistics
- Returns:
- upper bound
-
getSum
public long getSum()Description copied from interface:StringColumnStatistics
Get the total length of all strings- Specified by:
getSum
in interfaceStringColumnStatistics
- Returns:
- the sum (total length)
-
toString
- Overrides:
toString
in classColumnStatisticsImpl
-
equals
- Overrides:
equals
in classColumnStatisticsImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classColumnStatisticsImpl
-