@PublicEvolving public class Statistics extends Object implements Descriptor
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
Statistics |
columnAvgLength(String columnName,
Double avgLen)
Sets the average length statistic for the given column.
|
Statistics |
columnDistinctCount(String columnName,
Long ndv)
Sets the number of distinct values statistic for the given column.
|
Statistics |
columnMaxLength(String columnName,
Integer maxLen)
Sets the maximum length statistic for the given column.
|
Statistics |
columnMaxValue(String columnName,
Number max)
Sets the maximum value statistic for the given column.
|
Statistics |
columnMinValue(String columnName,
Number min)
Sets the minimum value statistic for the given column.
|
Statistics |
columnNullCount(String columnName,
Long nullCount)
Sets the number of null values statistic for the given column.
|
Statistics |
columnStats(String columnName,
ColumnStats columnStats)
Sets statistics for a column.
|
Statistics |
rowCount(long rowCount)
Sets statistics for the overall row count.
|
Statistics |
tableStats(TableStats tableStats)
Sets the statistics from a
TableStats instance. |
Map<String,String> |
toProperties()
Converts this descriptor into a set of properties.
|
public Statistics tableStats(TableStats tableStats)
TableStats
instance.
This method overwrites all existing statistics.
tableStats
- the table statisticspublic Statistics rowCount(long rowCount)
rowCount
- the expected number of rowspublic Statistics columnStats(String columnName, ColumnStats columnStats)
columnName
- the column namecolumnStats
- expected statistics for the columnpublic Statistics columnDistinctCount(String columnName, Long ndv)
public Statistics columnNullCount(String columnName, Long nullCount)
public Statistics columnAvgLength(String columnName, Double avgLen)
public Statistics columnMaxLength(String columnName, Integer maxLen)
public Statistics columnMaxValue(String columnName, Number max)
public Statistics columnMinValue(String columnName, Number min)
public final Map<String,String> toProperties()
toProperties
in interface Descriptor
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.