Interface LocalPreparedQuery<K,V>
-
- Type Parameters:
K
- the expected type for key.V
- the expected type for value.
public interface LocalPreparedQuery<K,V>
ALocalStoreQueryBuilder
is used to build newLocalExecutableQuery
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LocalPreparedQuery.MissingRequiredKeyError
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LocalExecutableQuery<K,V>
compile(QueryParams params)
Builds a newLocalExecutableQuery
based on the givenQuery
.default Optional<List<Error>>
validate(QueryParams params)
Validates the given query parameters.default Validator<QueryParams>
validator(QueryParams params)
Gets a newValidator
for the given parameters.
-
-
-
Method Detail
-
validator
default Validator<QueryParams> validator(QueryParams params)
Gets a newValidator
for the given parameters.- Parameters:
params
- the query parameters to validate.- Returns:
- the
Validator
.
-
validate
default Optional<List<Error>> validate(QueryParams params)
Validates the given query parameters.- Parameters:
params
- the query parameters to validate.- Returns:
- the optional list of errors.
-
compile
LocalExecutableQuery<K,V> compile(QueryParams params) throws InvalidQueryException
Builds a newLocalExecutableQuery
based on the givenQuery
.- Parameters:
params
- the parameters of the query.- Returns:
- the new
LocalExecutableQuery
. - Throws:
InvalidQueryException
-
-