public class NestedPositionUtil extends Object
Constructor and Description |
---|
NestedPositionUtil() |
Modifier and Type | Method and Description |
---|---|
static CollectionPosition |
calculateCollectionOffsets(ParquetField field,
int[] definitionLevels,
int[] repetitionLevels)
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) |
static RowPosition |
calculateRowOffsets(ParquetField field,
int[] fieldDefinitionLevels,
int[] fieldRepetitionLevels)
Calculate row offsets according to column's max repetition level, definition level, value's
repetition level and definition level.
|
static boolean |
isOptionalFieldValueNull(int definitionLevel,
int maxDefinitionLevel) |
public static RowPosition calculateRowOffsets(ParquetField field, int[] fieldDefinitionLevels, int[] fieldRepetitionLevels)
field
- field that contains the row column message include max repetition level and
definition level.fieldRepetitionLevels
- int array with each value's repetition level.fieldDefinitionLevels
- int array with each value's definition level.RowPosition
contains collections row count and isNull array.public static CollectionPosition calculateCollectionOffsets(ParquetField field, int[] definitionLevels, int[] repetitionLevels)
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 boolean isOptionalFieldValueNull(int definitionLevel, int maxDefinitionLevel)
public static long[] calculateLengthByOffsets(boolean[] collectionIsEmpty, long[] arrayOffsets)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.