rename to iavltree.py
This commit is contained in:
parent
a9b201c04d
commit
1957cec35a
@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import plyvel
|
import plyvel
|
||||||
import read_tree
|
import iavltree
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
with plyvel.DB('../node/nodedir/data/application.db') as db:
|
with plyvel.DB('../node/nodedir/data/application.db') as db:
|
||||||
height = read_tree.max_height(db)
|
height = iavltree.max_height(db)
|
||||||
|
|
||||||
total = read_tree.count(db, 's/k:emissions/', height, 'Qss', key = [62])
|
total = iavltree.count(db, 's/k:emissions/', height, 'Qss', key = [62])
|
||||||
progress = tqdm(total = total)
|
progress = tqdm(total = total)
|
||||||
|
|
||||||
it = read_tree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62])
|
it = iavltree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62])
|
||||||
|
|
||||||
for k, v in it:
|
for k, v in it:
|
||||||
progress.update(1)
|
progress.update(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user