bx.bbi.bpt_file module

class bx.bbi.bpt_file.BPTFile

Bases: object

On disk B+ tree compatible with Jim Kent’s bPlusTree.c

attach(file)

Attach to an open file

find(key)

Find the value matching key (a bytestring). Returns the matching value as a bytestring if found, or None

r_find(block_start, key)

Recursively seek the value matching key under the subtree starting at file offset block_start