edgegraph.structure.collections_.sortedset.SortedSetView#
- class edgegraph.structure.collections_.sortedset.SortedSetView(set_, lock)#
Bases:
Sequence[T]A threadsafe view on the SortedSet.
The view allows for observing the data in the underlying SortedSet, without the ability to modify what it contains.
- __init__(set_, lock)#
Methods
__init__(set_, lock)count(value)index(value, [start, [stop]])Raises ValueError if the value is not present.
- count(value) integer -- return number of occurrences of value#
- index(value[, start[, stop]]) integer -- return first index of value.#
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.