public class SizeStatistics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SizeStatistics.Builder
Builder to create a SizeStatistics.
|
| Constructor and Description |
|---|
SizeStatistics(PrimitiveType type,
long unencodedByteArrayDataBytes,
List<Long> repetitionLevelHistogram,
List<Long> definitionLevelHistogram)
Create a SizeStatistics.
|
| Modifier and Type | Method and Description |
|---|---|
SizeStatistics |
copy() |
List<Long> |
getDefinitionLevelHistogram()
Same as repetition_level_histogram except for definition levels.
|
List<Long> |
getRepetitionLevelHistogram()
When present, there is expected to be one element corresponding to each
repetition (i.e.
|
PrimitiveType |
getType() |
Optional<Long> |
getUnencodedByteArrayDataBytes()
The number of physical bytes stored for BYTE_ARRAY data values assuming
no encoding.
|
boolean |
isValid() |
void |
mergeStatistics(SizeStatistics other)
Merge two SizeStatistics of the same column.
|
static SizeStatistics.Builder |
newBuilder(PrimitiveType type,
int maxRepetitionLevel,
int maxDefinitionLevel)
Create a builder to create a SizeStatistics.
|
static SizeStatistics.Builder |
noopBuilder(PrimitiveType type,
int maxRepetitionLevel,
int maxDefinitionLevel)
Creates a builder that doesn't collect any statistics.
|
public SizeStatistics(PrimitiveType type, long unencodedByteArrayDataBytes, List<Long> repetitionLevelHistogram, List<Long> definitionLevelHistogram)
type - physical type of the column associated with this statisticsunencodedByteArrayDataBytes - number of physical bytes stored for BYTE_ARRAY data values assuming no encodingrepetitionLevelHistogram - histogram for all repetition levels if non-emptydefinitionLevelHistogram - histogram for all definition levels if non-emptypublic static SizeStatistics.Builder newBuilder(PrimitiveType type, int maxRepetitionLevel, int maxDefinitionLevel)
type - physical type of the column associated with this statisticsmaxRepetitionLevel - maximum repetition level of the columnmaxDefinitionLevel - maximum definition level of the columnpublic void mergeStatistics(SizeStatistics other)
public PrimitiveType getType()
public Optional<Long> getUnencodedByteArrayDataBytes()
SizeStatisticspublic List<Long> getRepetitionLevelHistogram()
SizeStatisticspublic List<Long> getDefinitionLevelHistogram()
SizeStatisticspublic SizeStatistics copy()
public boolean isValid()
public static SizeStatistics.Builder noopBuilder(PrimitiveType type, int maxRepetitionLevel, int maxDefinitionLevel)
Copyright © 2024 The Apache Software Foundation. All rights reserved.