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 | Method and Description |
---|---|
static ColumnStatisticsImpl |
create(TypeDescription schema) |
static ColumnStatisticsImpl |
deserialize(OrcProto.ColumnStatistics stats) |
long |
getNumberOfValues()
Get the number of values in this column.
|
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(org.apache.hadoop.io.BytesWritable value) |
void |
updateBoolean(boolean value,
int repetitions) |
void |
updateDate(DateWritable value) |
void |
updateDate(int value) |
void |
updateDecimal(HiveDecimal value) |
void |
updateDouble(double value) |
void |
updateInteger(long value,
int repetitions) |
void |
updateString(byte[] bytes,
int offset,
int length,
int repetitions) |
void |
updateString(org.apache.hadoop.io.Text value) |
void |
updateTimestamp(long value) |
void |
updateTimestamp(Timestamp value) |
public void increment()
public void increment(int count)
public void setNull()
public void updateBoolean(boolean value, int repetitions)
public void updateInteger(long value, int repetitions)
public void updateDouble(double value)
public void updateString(org.apache.hadoop.io.Text value)
public void updateString(byte[] bytes, int offset, int length, int repetitions)
public void updateBinary(org.apache.hadoop.io.BytesWritable value)
public void updateBinary(byte[] bytes, int offset, int length, int repetitions)
public void updateDecimal(HiveDecimal value)
public void updateDate(DateWritable value)
public void updateDate(int value)
public void updateTimestamp(Timestamp value)
public void updateTimestamp(long value)
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 OrcProto.ColumnStatistics.Builder serialize()
public static ColumnStatisticsImpl create(TypeDescription schema)
public static ColumnStatisticsImpl deserialize(OrcProto.ColumnStatistics stats)
Copyright © 2016 The Apache Software Foundation. All rights reserved.