getAll for BTree