Commit 1098afbf authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Levin Zimmermann

Data Bucket Stream: add method getKeyByIndex

parent 362a8f39
...@@ -265,6 +265,12 @@ class DataBucketStream(Document): ...@@ -265,6 +265,12 @@ class DataBucketStream(Document):
key = self._long_index_tree[index] key = self._long_index_tree[index]
return self.getBucketByKey(key).value return self.getBucketByKey(key).value
def getKeyByIndex(self, index):
"""
Get the bucket key by a given index
"""
return self._long_index_tree[index]
def hasBucketKey(self, key): def hasBucketKey(self, key):
""" """
Wether bucket with such key exists Wether bucket with such key exists
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment