public class ColumnStatisticsImpl extends Object implements ColumnStatistics
Modifier and Type | Class and Description |
---|---|
protected static class |
ColumnStatisticsImpl.BinaryStatisticsImpl |
protected static class |
ColumnStatisticsImpl.StringStatisticsImpl |
Modifier and Type | Field and Description |
---|---|
protected long |
count |
Modifier and Type | Method and Description |
---|---|
static 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 |
equals(Object o) |
long |
getBytesOnDisk()
Get the number of bytes for this column.
|
long |
getNumberOfValues()
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 |
increment() |
void |
increment(int count) |
boolean |
isStatsExists() |
void |
merge(ColumnStatisticsImpl stats) |
void |
reset() |
OrcProto.ColumnStatistics.Builder |
serialize() |
void |
setNull() |
String |
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(DateWritable value) |
void |
updateDate(int value) |
void |
updateDecimal(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) |
public void increment()
public void increment(int count)
public void updateByteCount(long size)
public void setNull()
public void updateCollectionLength(long value)
value
- length of collectionpublic void updateBoolean(boolean value, int repetitions)
public void updateInteger(long value, int repetitions)
public void updateDouble(double value)
public void updateString(Text value)
public void updateString(byte[] bytes, int offset, int length, int repetitions)
public void updateBinary(BytesWritable value)
public void updateBinary(byte[] bytes, int offset, int length, int repetitions)
public void updateDecimal(HiveDecimalWritable value)
public void updateDecimal64(long value, int scale)
public void updateDate(DateWritable value)
public void updateDate(int value)
public void updateTimestamp(Timestamp value)
public void updateTimestamp(long value, int nanos)
public boolean isStatsExists()
public void merge(ColumnStatisticsImpl stats)
public void reset()
public long getNumberOfValues()
ColumnStatistics
getNumberOfValues
in interface ColumnStatistics
public boolean hasNull()
ColumnStatistics
hasNull
in interface ColumnStatistics
public long getBytesOnDisk()
getBytesOnDisk
in interface ColumnStatistics
public OrcProto.ColumnStatistics.Builder serialize()
public static ColumnStatisticsImpl create(TypeDescription schema)
public static ColumnStatisticsImpl create(TypeDescription schema, boolean convertToProleptic)
public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats)
public static ColumnStatisticsImpl deserialize(TypeDescription schema, OrcProto.ColumnStatistics stats, boolean writerUsedProlepticGregorian, boolean convertToProlepticGregorian)
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.