public final class StoreCursor
extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StoreCursor.Responder
Cursor responder.
|
Constructor and Description |
---|
StoreCursor(StoreValuesQuery query,
StoreServer server,
StoreCursor.Responder responder)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
StoreValues |
createResponse(Optional<Identity> identity)
Creates a store values response.
|
StoreValues |
createResponse(StoreValuesQuery query,
Optional<Identity> identity)
Creates a store values response to a store query.
|
Optional<DateTime> |
getAfter()
Gets after time.
|
Optional<DateTime> |
getBefore()
Gets before time.
|
int |
getLimit()
Gets a limit on the number of requested values.
|
Optional<Point> |
getPoint()
Gets the point's definition.
|
Optional<UUID> |
getPointUUID()
Gets the point's UUID.
|
int |
getType()
Gets the store query's type.
|
boolean |
isCount()
Asks if the responses should be counts.
|
boolean |
isIncludeDeleted()
Asks if deleted values are included.
|
boolean |
isInstant()
Asks if this query is for an instant.
|
boolean |
isNullIgnored()
Asks if null values are ignored.
|
boolean |
isPull()
Asks if the store query is a pull query.
|
boolean |
isReverse()
Asks if the store query asks for values in reverse order.
|
int |
refreshType()
Returns a fresh value of the store query's type.
|
boolean |
supportsCount()
Asks if the server supports count.
|
public StoreCursor(@Nonnull StoreValuesQuery query, @Nonnull StoreServer server, @Nonnull StoreCursor.Responder responder)
query
- The store values query.server
- The store server.responder
- The responder to use.@Nonnull @CheckReturnValue public StoreValues createResponse(@Nonnull Optional<Identity> identity)
identity
- The optional requesting identity.@Nonnull @CheckReturnValue public StoreValues createResponse(@Nonnull StoreValuesQuery query, @Nonnull Optional<Identity> identity)
query
- The store query.identity
- The optional requesting identity.@Nonnull @CheckReturnValue public Optional<DateTime> getAfter()
@Nonnull @CheckReturnValue public Optional<DateTime> getBefore()
@CheckReturnValue public int getLimit()
@Nonnull @CheckReturnValue public Optional<Point> getPoint()
@Nonnull @CheckReturnValue public Optional<UUID> getPointUUID()
@CheckReturnValue public int getType()
The type is a bit mask representing characteristics of the store query.
@CheckReturnValue public boolean isCount()
@CheckReturnValue public boolean isIncludeDeleted()
@CheckReturnValue public boolean isInstant()
@CheckReturnValue public boolean isNullIgnored()
@CheckReturnValue public boolean isPull()
@CheckReturnValue public boolean isReverse()
@CheckReturnValue public int refreshType()
The type is a bit mask representing characteristics of the store query.
@CheckReturnValue public boolean supportsCount()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.