public class BitmapFileIndexMetaV2 extends BitmapFileIndexMeta
Bitmap file index format (V2) +-------------------------------------------------+----------------- | version (1 byte) = 2 | +-------------------------------------------------+ | row count (4 bytes int) | +-------------------------------------------------+ | non-null value bitmap number (4 bytes int) | +-------------------------------------------------+ | has null value (1 byte) | +-------------------------------------------------+ | null value offset (4 bytes if has null value) | HEAD +-------------------------------------------------+ | null bitmap length (4 bytes if has null value) | +-------------------------------------------------+ | bitmap index block number (4 bytes int) | +-------------------------------------------------+ | value 1 | offset 1 | +-------------------------------------------------+ | value 2 | offset 2 | +-------------------------------------------------+ | ... | +-------------------------------------------------+ | bitmap blocks offset (4 bytes int) | +-------------------------------------------------+----------------- | bitmap index block 1 | +-------------------------------------------------+ | bitmap index block 2 | INDEX BLOCKS +-------------------------------------------------+ | ... | +-------------------------------------------------+----------------- | serialized bitmap 1 | +-------------------------------------------------+ | serialized bitmap 2 | +-------------------------------------------------+ BITMAP BLOCKS | serialized bitmap 3 | +-------------------------------------------------+ | ... | +-------------------------------------------------+----------------- index block format: +-------------------------------------------------+ | entry number (4 bytes int) | +-------------------------------------------------+ | value 1 | offset 1 | length 1 | +-------------------------------------------------+ | value 2 | offset 2 | length 2 | +-------------------------------------------------+ | ... | +-------------------------------------------------+
BitmapFileIndexMeta.DataTypeVisitorAdapter<R>, BitmapFileIndexMeta.Entry, BitmapFileIndexMeta.ThrowableConsumer, BitmapFileIndexMeta.ThrowableSupplier
bitmapLengths, bitmapOffsets, bodyStart, dataType, hasNullValue, nonNullBitmapNumber, nullValueOffset, options, rowCount
Constructor and Description |
---|
BitmapFileIndexMetaV2(DataType dataType,
Options options) |
BitmapFileIndexMetaV2(DataType dataType,
Options options,
int rowCount,
int nonNullBitmapNumber,
boolean hasNullValue,
int nullValueOffset,
int nullBitmapLength,
LinkedHashMap<Object,Integer> bitmapOffsets,
int finalOffset) |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(SeekableInputStream seekableInputStream) |
BitmapFileIndexMeta.Entry |
findEntry(Object bitmapId)
Find entry for bitmap.
|
static Comparator<Object> |
getComparator(DataType dataType) |
void |
serialize(DataOutput out) |
getBodyStart, getRowCount, getSerializeSizeMeasure, getValueReader, getValueWriter
public BitmapFileIndexMetaV2(DataType dataType, Options options, int rowCount, int nonNullBitmapNumber, boolean hasNullValue, int nullValueOffset, int nullBitmapLength, LinkedHashMap<Object,Integer> bitmapOffsets, int finalOffset)
public static Comparator<Object> getComparator(DataType dataType)
public BitmapFileIndexMeta.Entry findEntry(Object bitmapId)
BitmapFileIndexMeta
findEntry
in class BitmapFileIndexMeta
bitmapId
- the bitmap identifier to be searched.BitmapFileIndexMeta.Entry
which contains offset and length of bitmap if it is contained in the
index meta; otherwise `null`.public void serialize(DataOutput out) throws Exception
serialize
in class BitmapFileIndexMeta
Exception
public void deserialize(SeekableInputStream seekableInputStream) throws Exception
deserialize
in class BitmapFileIndexMeta
Exception
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.