Expand description
BTree index implementation compatible with Apache Paimon Java.
File layout:
+-----------------------------------+------+
| Footer | |
+-----------------------------------+ |
| Index Block | +--> Loaded on open
+-----------------------------------+ |
| Bloom Filter Block | |
+-----------------------------------+------+
| Null Bitmap Block | |
+-----------------------------------+ |
| Data Block | |
+-----------------------------------+ +--> Loaded on requested
| ...... | |
+-----------------------------------+ |
| Data Block | |
+-----------------------------------+------+Structs§
- BTree
File Footer - BTree file footer.
- BTree
Index Meta - Index meta for each BTree index file.
- BTree
Index Reader - BTree index reader with on-demand async data block loading.
- BTree
Index Writer - BTree index writer. Writes sorted key -> row_id_list entries into a BTree index file.
Traits§
- Index
Query - Trait for index readers that can evaluate predicates and return row ID bitmaps.
Functions§
- make_
key_ comparator - Create a key comparator based on the data type. For fixed-size numeric types, compares by decoded value. For variable-length types (string, bytes), uses lexicographic byte comparison.
- serialize_
datum - Serialize a Datum to BTree key bytes (little-endian, matching Java Paimon’s KeySerializer).