T
- public interface Cursor<T>
extends org.springframework.data.util.CloseableIterator<T>
SCAN
command.
Using a Java 8 java.util.stream.Stream
allows to apply additional
filters
and
limits
to the underlying Cursor
.
Make sure to close
the cursor when done as this allows implementations to clean up
any resources they need to keep open to iterate over elements (eg. by using a try-with-resource statement).
Modifier and Type | Method and Description |
---|---|
long |
getCursorId()
Get the reference cursor.
|
long |
getPosition() |
boolean |
isClosed() |
Cursor<T> |
open()
Deprecated.
to be removed from the interface in the next major version.
|
close, spliterator, stream
forEachRemaining, hasNext, next, remove
long getCursorId()
boolean isClosed()
true
if cursor closed.@Deprecated Cursor<T> open()
Cursor
and should not be called externally.long getPosition()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.