public class NestedPositionUtil extends Object
| Constructor and Description |
|---|
NestedPositionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionPosition |
calculateCollectionOffsets(ParquetField field,
int[] definitionLevels,
int[] repetitionLevels,
boolean readRowField)
Calculate the collection's offsets according to column's max repetition level, definition
level, value's repetition level and definition level.
|
static long[] |
calculateLengthByOffsets(boolean[] collectionIsEmpty,
long[] arrayOffsets) |
public static CollectionPosition calculateCollectionOffsets(ParquetField field, int[] definitionLevels, int[] repetitionLevels, boolean readRowField)
field - field that contains array/map column message include max repetition level and
definition level.definitionLevels - int array with each value's repetition level.repetitionLevels - int array with each value's definition level.CollectionPosition contains collections offset array, length array and isNull
array.public static long[] calculateLengthByOffsets(boolean[] collectionIsEmpty,
long[] arrayOffsets)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.