Class SizeStatistics.Builder
- java.lang.Object
-
- org.apache.parquet.column.statistics.SizeStatistics.Builder
-
- Enclosing class:
- SizeStatistics
public static class SizeStatistics.Builder extends Object
Builder to create a SizeStatistics.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrimitiveTypetype
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int repetitionLevel, int definitionLevel)Add repetition and definition level of a value to the statistics.voidadd(int repetitionLevel, int definitionLevel, Binary value)Add repetition and definition level of a value to the statistics.SizeStatisticsbuild()Build a SizeStatistics from the builder.
-
-
-
Field Detail
-
type
protected final PrimitiveType type
-
-
Method Detail
-
add
public void add(int repetitionLevel, int definitionLevel)Add repetition and definition level of a value to the statistics. It is called when value is null, or the column is not of BYTE_ARRAY type.- Parameters:
repetitionLevel- repetition level of the valuedefinitionLevel- definition level of the value
-
add
public void add(int repetitionLevel, int definitionLevel, Binary value)Add repetition and definition level of a value to the statistics. It is called when the column is of BYTE_ARRAY type.- Parameters:
repetitionLevel- repetition level of the valuedefinitionLevel- definition level of the valuevalue- value of to be added
-
build
public SizeStatistics build()
Build a SizeStatistics from the builder.
-
-