@PublicEvolving public final class ColumnStats extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnStats.Builder
ColumnStats builder.
|
Modifier and Type | Field and Description |
---|---|
static ColumnStats |
UNKNOWN
Unknown definition for column stats.
|
Constructor and Description |
---|
ColumnStats(Long ndv,
Long nullCount,
Double avgLen,
Integer maxLen,
Number max,
Number min)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ColumnStats |
copy()
Create a deep copy of "this" instance.
|
boolean |
equals(Object o) |
Double |
getAvgLen() |
Comparable<?> |
getMax()
Returns null if this instance is constructed by
ColumnStats(Long, Long,
Double, Integer, Number, Number) . |
Integer |
getMaxLen() |
Number |
getMaxValue()
Deprecated.
|
Comparable<?> |
getMin()
Returns null if this instance is constructed by
ColumnStats(Long, Long,
Double, Integer, Number, Number) . |
Number |
getMinValue()
Deprecated.
|
Long |
getNdv() |
Long |
getNullCount() |
int |
hashCode() |
ColumnStats |
merge(ColumnStats other,
boolean isPartitionKey)
Merges two column stats.
|
String |
toString() |
public static final ColumnStats UNKNOWN
@Deprecated public ColumnStats(Long ndv, Long nullCount, Double avgLen, Integer maxLen, Number max, Number min)
Date
, Timestamp
. please use ColumnStats.Builder
to
construct ColumnStats instance.public Long getNdv()
public Long getNullCount()
public Double getAvgLen()
public Integer getMaxLen()
@Deprecated public Number getMaxValue()
Date
, Timestamp
.
Returns null if this instance is constructed by ColumnStats.Builder
.
public Comparable<?> getMax()
ColumnStats(Long, Long,
Double, Integer, Number, Number)
.@Deprecated public Number getMinValue()
Date
, Timestamp
.
Returns null if this instance is constructed by ColumnStats.Builder
.
public Comparable<?> getMin()
ColumnStats(Long, Long,
Double, Integer, Number, Number)
.public ColumnStats copy()
public ColumnStats merge(ColumnStats other, boolean isPartitionKey)
other
- The other column stats to merge.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.