public static interface StoreCursor.Responder
A cursor acts as a 'middle-man' between a store server query processing loop and a store server supplied class implementing this interface.
Modifier and Type | Method and Description |
---|---|
long |
count()
Returns the count of values that would satisfy the query.
|
int |
limit()
Returns a limit on the number of values allowed by the backend.
|
Optional<? extends PointValue> |
next()
Returns the next point value.
|
void |
reset(Optional<StoreCursor> storeCursor)
Resets this responder.
|
@CheckReturnValue long count()
@CheckReturnValue int limit()
@Nonnull @CheckReturnValue Optional<? extends PointValue> next()
void reset(@Nonnull Optional<StoreCursor> storeCursor)
The responder should free resources reserved by a previous store
query. If the store cursor parameter is not empty, it should prepare
for calls to its next()
method.
storeCursor
- The controlling store cursor (may be empty).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.