Uses of Class
io.permazen.kv.KeyRange
Packages that use KeyRange
Package
Description
Core classes for the Permazen Java persistence layer.
Permazen core API utility classes.
byte[] array key/value store API and related utility classes.Utility classes for MVCC type operations using a
KVStore.Utility classes relating to the
KVDatabase interface.-
Uses of KeyRange in io.permazen.core
Methods in io.permazen.core that return KeyRangeModifier and TypeMethodDescriptionstatic KeyRangeObjId.getKeyRange(int storageId) Get theKeyRangecontaining all object IDs with the given storage ID. -
Uses of KeyRange in io.permazen.core.util
Methods in io.permazen.core.util that return KeyRange -
Uses of KeyRange in io.permazen.kv
Fields in io.permazen.kv declared as KeyRangeModifier and TypeFieldDescriptionstatic final KeyRangeKeyRange.FULLTheKeyRangecontaining the full range (i.e., all keys).Fields in io.permazen.kv with type parameters of type KeyRangeModifier and TypeFieldDescriptionstatic final Comparator<KeyRange>KeyRange.SORT_BY_MAXstatic final Comparator<KeyRange>KeyRange.SORT_BY_MINMethods in io.permazen.kv that return KeyRangeModifier and TypeMethodDescriptionstatic KeyRangeCreate an empty key range at the specified key.KeyRange[]Find the contiguousKeyRange(s) within this instance containing, or adjacent to, the given key.static KeyRangeConstruct an instance containing all keys with the given prefix.KVPairIterator.getKeyRange()Get theKeyRangeinstance used to restrict the range of visible keys, if any.KeyRange.prefixedBy(ByteData prefix) Create a new instance whose minimum and maximum keys are the same as this instance's but with the given byte sequence prepended.Methods in io.permazen.kv that return types with arguments of type KeyRangeModifier and TypeMethodDescriptionKeyRanges.asList()Get theKeyRanges underlying with this instance as a list.KeyRanges.asSet()Get a view of theKeyRanges underlying with this instance as a sorted set.KeyRanges.deserializeIterator(InputStream input) Deserialize an instance created byserialize()in the form of an iterator of the individualKeyRanges.KeyRanges.iterator()Methods in io.permazen.kv with parameters of type KeyRangeModifier and TypeMethodDescriptionvoidAdd all the keys in the givenKeyRangeto this instance.booleanDetermine if this key range fully contains the specified key range.booleandefault CloseableIterator<KVPair>Iterate the key/value pairs in the specified range in the forward direction.voidRemove all the keys not also in the givenKeyRangefrom this instance.booleanKeyRanges.intersects(KeyRange range) Determine whether this instance intersects the givenKeyRange, i.e., there exists at least one key contained in both.booleanDetermine if this key range overlaps the specified key range, i.e., there exists at least onebyte[]key that both ranges have in common.voidRemove all the keys in the givenKeyRangefrom this instance.default voidKVStore.removeRange(KeyRange range) Remove all key/value pairs whose keys are in a given range.Constructors in io.permazen.kv with parameters of type KeyRangeModifierConstructorDescriptionConstructor for an instance containing a single range.Constructor.KVPairIterator(KVStore kv, KeyRange keyRange) Convenience constructor for forward iteration over a specified range.KVPairIterator(KVStore kv, KeyRange keyRange, KeyFilter keyFilter, boolean reverse) Primary constructor.Constructor parameters in io.permazen.kv with type arguments of type KeyRange -
Uses of KeyRange in io.permazen.kv.mvcc
Methods in io.permazen.kv.mvcc that return KeyRangeModifier and TypeMethodDescriptionReadRemoveConflict.getKeyRange()Get the key range at which the conflict occurred.Methods in io.permazen.kv.mvcc that return types with arguments of type KeyRangeModifier and TypeMethodDescriptionMutations.getRemoveRanges()Get the key ranges removals contained by this instance.Writes.getRemoveRanges()Constructors in io.permazen.kv.mvcc with parameters of type KeyRange -
Uses of KeyRange in io.permazen.kv.util
Fields in io.permazen.kv.util declared as KeyRangeModifier and TypeFieldDescriptionprotected final KeyRangeAbstractKVNavigableMap.keyRangeKey range, or null for the entire range.protected final KeyRangeAbstractKVNavigableSet.keyRangeKey range, or null for the entire range.Methods in io.permazen.kv.util with parameters of type KeyRangeModifier and TypeMethodDescriptionprotected abstract NavigableMap<K,V> AbstractKVNavigableMap.createSubMap(boolean newReversed, KeyRange newKeyRange, KeyFilter newKeyFilter, Bounds<K> newBounds) Create a (possibly reversed) view of this instance with (possibly) tighter lower and/or upper bounds and the givenKeyFilter, if any.protected NavigableMap<ByteData,ByteData> KVNavigableMap.createSubMap(boolean newReversed, KeyRange newKeyRange, KeyFilter newKeyFilter, Bounds<ByteData> newBounds) protected abstract NavigableSet<E>AbstractKVNavigableSet.createSubSet(boolean newReversed, KeyRange newKeyRange, KeyFilter newKeyFilter, Bounds<E> newBounds) Create a (possibly reversed) view of this instance with (possibly) tighter lower and/or upper bounds and the givenKeyFilter, if any.protected NavigableSet<ByteData>KVNavigableSet.createSubSet(boolean newReversed, KeyRange newKeyRange, KeyFilter newKeyFilter, Bounds<ByteData> newBounds) booleanTrigger all watches associated with keys in the given range.Constructors in io.permazen.kv.util with parameters of type KeyRangeModifierConstructorDescriptionprotectedAbstractKVIterator(KVStore kv, boolean prefixMode, boolean reversed, KeyRange keyRange, KeyFilter keyFilter) Primary constructor.protectedAbstractKVNavigableMap(KVStore kv, boolean prefixMode, boolean reversed, KeyRange keyRange, KeyFilter keyFilter, Bounds<K> bounds) Internal constructor.protectedAbstractKVNavigableMap(KVStore kv, boolean prefixMode, KeyRange keyRange) Primary constructor.protectedAbstractKVNavigableSet(KVStore kv, boolean prefixMode, boolean reversed, KeyRange keyRange, KeyFilter keyFilter, Bounds<E> bounds) Internal constructor.protectedAbstractKVNavigableSet(KVStore kv, boolean prefixMode, KeyRange keyRange) Primary constructor.protectedKVNavigableMap(KVStore kv, boolean reversed, KeyRange keyRange, KeyFilter keyFilter) Primary constructor.protectedKVNavigableSet(KVStore kv, boolean reversed, KeyRange keyRange, KeyFilter keyFilter) Primary constructor.