public class DataFileStatistics
extends Object
Constructor and Description |
---|
DataFileStatistics(long numRecords,
java.util.Map<Column,Literal> minValues,
java.util.Map<Column,Literal> maxValues,
java.util.Map<Column,Long> nullCounts)
Create a new instance of
DataFileStatistics . |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Column,Literal> |
getMaxValues()
Get the maximum values of the columns in the data file.
|
java.util.Map<Column,Literal> |
getMinValues()
Get the minimum values of the columns in the data file.
|
java.util.Map<Column,Long> |
getNullCounts()
Get the number of nulls of columns in the data file.
|
long |
getNumRecords()
Get the number of records in the data file.
|
String |
serializeAsJson() |
String |
toString() |
public DataFileStatistics(long numRecords, java.util.Map<Column,Literal> minValues, java.util.Map<Column,Literal> maxValues, java.util.Map<Column,Long> nullCounts)
DataFileStatistics
.numRecords
- Number of records in the data file.minValues
- Map of column to minimum value of it in the data file. If the data file has
all nulls for the column, the value will be null or not present in the map.maxValues
- Map of column to maximum value of it in the data file. If the data file has
all nulls for the column, the value will be null or not present in the map.nullCounts
- Map of column to number of nulls in the data file.public long getNumRecords()
public java.util.Map<Column,Literal> getMinValues()
public java.util.Map<Column,Literal> getMaxValues()
public java.util.Map<Column,Long> getNullCounts()
public String toString()
toString
in class Object
public String serializeAsJson()