abstract class KVStoreView[T] extends Iterable[T]
A configurable view that allows iterating over values in a KVStore.
The different methods can be used to configure the behavior of the iterator. Calling the same method multiple times is allowed; the most recent value will be used.
The iterators returned by this view are of type KVStoreIterator; they auto-close
when used in a for loop that exhausts their contents, but when used manually, they need
to be closed explicitly unless all elements are read.
- Alphabetic
- By Inheritance
- KVStoreView
- Iterable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new KVStoreView()
Abstract Value Members
-
abstract
def
iterator(): Iterator[T]
- Definition Classes
- Iterable
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
closeableIterator(): KVStoreIterator[T]
Returns an iterator for the current configuration.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
first(value: Any): KVStoreView[T]
Iterates starting at the given value of the chosen index (inclusive).
-
def
forEach(arg0: Consumer[_ >: T]): Unit
- Definition Classes
- Iterable
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
index(name: String): KVStoreView[T]
Iterates according to the given index.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
last(value: Any): KVStoreView[T]
Stops iteration at the given value of the chosen index (inclusive).
-
def
max(max: Long): KVStoreView[T]
Stops iteration after a number of elements has been retrieved.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parent(value: Any): KVStoreView[T]
Defines the value of the parent index when iterating over a child index.
Defines the value of the parent index when iterating over a child index. Only elements that match the parent index's value will be included in the iteration.
Required for iterating over child indices, will generate an error if iterating over a parent-less index.
-
def
reverse(): KVStoreView[T]
Reverses the order of iteration.
Reverses the order of iteration. By default, iterates in ascending order.
-
def
skip(n: Long): KVStoreView[T]
Skips a number of elements at the start of iteration.
Skips a number of elements at the start of iteration. Skipped elements are not accounted when using
#max(long). -
def
spliterator(): Spliterator[T]
- Definition Classes
- Iterable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()