public abstract class ColumnIndexBuilder extends Object
ColumnIndex objects.| Modifier and Type | Method and Description |
|---|---|
void |
add(Statistics<?> stats)
Adds the data from the specified statistics to this builder
|
void |
add(Statistics<?> stats,
SizeStatistics sizeStats)
Adds the data from the specified statistics to this builder
|
ColumnIndex |
build() |
static ColumnIndex |
build(PrimitiveType type,
BoundaryOrder boundaryOrder,
List<Boolean> nullPages,
List<Long> nullCounts,
List<ByteBuffer> minValues,
List<ByteBuffer> maxValues) |
static ColumnIndex |
build(PrimitiveType type,
BoundaryOrder boundaryOrder,
List<Boolean> nullPages,
List<Long> nullCounts,
List<ByteBuffer> minValues,
List<ByteBuffer> maxValues,
List<Long> repLevelHistogram,
List<Long> defLevelHistogram) |
static ColumnIndexBuilder |
getBuilder(PrimitiveType type,
int truncateLength) |
long |
getMinMaxSize() |
static ColumnIndexBuilder |
getNoOpBuilder() |
int |
getPageCount() |
public static ColumnIndexBuilder getNoOpBuilder()
null at
build().public static ColumnIndexBuilder getBuilder(PrimitiveType type, int truncateLength)
type - the type this builder is to be created fortruncateLength - the length to be used for truncating binary values if possibleColumnIndexBuilder instance to be used for creating ColumnIndex objectspublic static ColumnIndex build(PrimitiveType type, BoundaryOrder boundaryOrder, List<Boolean> nullPages, List<Long> nullCounts, List<ByteBuffer> minValues, List<ByteBuffer> maxValues)
type - the primitive typeboundaryOrder - the boundary order of the min/max valuesnullPages - the null pages (one boolean value for each page that signifies whether the page consists of nulls
entirely)nullCounts - the number of null values for each pageminValues - the min values for each pagemaxValues - the max values for each pageColumnIndex object based on the specified argumentspublic static ColumnIndex build(PrimitiveType type, BoundaryOrder boundaryOrder, List<Boolean> nullPages, List<Long> nullCounts, List<ByteBuffer> minValues, List<ByteBuffer> maxValues, List<Long> repLevelHistogram, List<Long> defLevelHistogram)
type - the primitive typeboundaryOrder - the boundary order of the min/max valuesnullPages - the null pages (one boolean value for each page that signifies whether the page consists of nulls
entirely)nullCounts - the number of null values for each pageminValues - the min values for each pagemaxValues - the max values for each pagerepLevelHistogram - the repetition level histogram for all levels of each pagedefLevelHistogram - the definition level histogram for all levels of each pageColumnIndex object based on the specified argumentspublic void add(Statistics<?> stats)
stats - the statistics to be addedpublic void add(Statistics<?> stats, SizeStatistics sizeStats)
stats - the statistics to be addedsizeStats - the size statistics to be addedpublic ColumnIndex build()
null if the ColumnIndex would be emptypublic int getPageCount()
public long getMinMaxSize()
Copyright © 2024 The Apache Software Foundation. All rights reserved.