public class BitmapFileIndexMeta extends Object
Bitmap file index format (V1) +-------------------------------------------------+----------------- | version (1 byte) | +-------------------------------------------------+ | 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 +-------------------------------------------------+ | value 1 | offset 1 | +-------------------------------------------------+ | value 2 | offset 2 | +-------------------------------------------------+ | value 3 | offset 3 | +-------------------------------------------------+ | ... | +-------------------------------------------------+----------------- | serialized bitmap 1 | +-------------------------------------------------+ | serialized bitmap 2 | +-------------------------------------------------+ BODY | serialized bitmap 3 | +-------------------------------------------------+ | ... | +-------------------------------------------------+----------------- value x: var bytes for any data type (as bitmap identifier) offset: 4 bytes int (when it is negative, it represents that there is only one value and its position is the inverse of the negative value)
Modifier and Type | Class and Description |
---|---|
static class |
BitmapFileIndexMeta.DataTypeVisitorAdapter<R>
simplified visitor.
|
static interface |
BitmapFileIndexMeta.ThrowableConsumer
functional interface.
|
static interface |
BitmapFileIndexMeta.ThrowableSupplier
functional interface.
|
Constructor and Description |
---|
BitmapFileIndexMeta(DataType dataType) |
BitmapFileIndexMeta(DataType dataType,
int rowCount,
int nonNullBitmapNumber,
boolean hasNullValue,
int nullValueOffset,
LinkedHashMap<Object,Integer> bitmapOffsets) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object bitmapId) |
void |
deserialize(DataInput in) |
int |
getOffset(Object bitmapId) |
int |
getRowCount() |
void |
serialize(DataOutput out) |
public BitmapFileIndexMeta(DataType dataType)
public BitmapFileIndexMeta(DataType dataType, int rowCount, int nonNullBitmapNumber, boolean hasNullValue, int nullValueOffset, LinkedHashMap<Object,Integer> bitmapOffsets)
public int getRowCount()
public boolean contains(Object bitmapId)
public int getOffset(Object bitmapId)
public void serialize(DataOutput out) throws Exception
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.