public class ReactiveQueryEngine
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
ReactiveQueryEngine.Meta |
| Constructor and Description |
|---|
ReactiveQueryEngine(java.util.Collection<com.aerospike.client.Host> hosts,
com.aerospike.client.policy.ClientPolicy clientPolicy) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildFilterFunction(com.aerospike.helper.query.Qualifier[] qualifiers) |
protected java.util.List<com.aerospike.client.query.PredExp> |
buildPredExp(com.aerospike.helper.query.Qualifier[] qualifiers) |
void |
close()
closes the QueryEngine, clearing the cached information are closing the AerospikeClient.
|
reactor.core.publisher.Mono<java.lang.Void> |
createIndex(java.lang.String namespace,
java.lang.String setName,
java.lang.String indexName,
java.lang.String binName,
com.aerospike.client.query.IndexType indexType) |
com.aerospike.client.query.Statement |
createStatement(java.lang.String namespace,
java.lang.String set,
com.aerospike.client.query.Filter filter) |
reactor.core.publisher.Mono<java.lang.Boolean> |
delete(com.aerospike.client.Key key) |
reactor.core.publisher.Mono<java.lang.Void> |
deleteIndex(java.lang.String namespace,
java.lang.String setName,
java.lang.String indexName) |
<T> com.aerospike.client.listener.DeleteListener |
deleteListener(reactor.core.publisher.MonoSink<T> sink,
T document) |
reactor.core.publisher.Mono<java.lang.Boolean> |
exists(com.aerospike.client.Key key) |
<T> com.aerospike.client.listener.ExistsListener |
existsListener(reactor.core.publisher.MonoSink<java.lang.Boolean> sink,
T documents) |
<T> reactor.core.publisher.Flux<T> |
get(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key... keys) |
<T> reactor.core.publisher.Mono<T> |
get(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key key) |
reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> |
get(com.aerospike.client.Key key,
java.lang.String... binsName) |
<T> reactor.core.publisher.Mono<T> |
getAndTouch(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> succeFunction,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key) |
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
getHeader(com.aerospike.client.Key... keys) |
java.util.Optional<com.aerospike.helper.model.Index> |
getIndex(com.aerospike.helper.query.cache.IndexKey key)
Gets a specific index from the index cache by Bin name
|
com.aerospike.helper.model.Module |
getModule(java.lang.String moduleName)
Gets a specific Module from the cache by name
|
com.aerospike.helper.model.Namespace |
getNamespace(java.lang.String namespace)
Get as specific Namespace from the cache
|
reactor.core.publisher.Mono<java.lang.Boolean> |
indexExists(java.lang.String namespace,
java.lang.String indexName) |
protected boolean |
isIndexedBin(com.aerospike.client.query.Statement stmt,
com.aerospike.helper.query.Qualifier qualifier) |
<T> reactor.core.publisher.Mono<T> |
operate(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation... operations) |
<T> reactor.core.publisher.Mono<T> |
put(T document,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins) |
<T> reactor.core.publisher.Flux<T> |
query(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement) |
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
query(com.aerospike.client.query.Statement statement) |
<T> com.aerospike.client.listener.RecordListener |
recordListener(reactor.core.publisher.MonoSink<T> sink,
java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction) |
<T> com.aerospike.client.listener.RecordSequenceListener |
recordSequenceListener(reactor.core.publisher.FluxSink<T> sink,
java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction) |
void |
refreshCluster()
refreshes the cached Cluster information
|
void |
refreshIndexes()
refreshes the Index cache from the Cluster
|
void |
refreshModules()
refreshes the Module cache from the cluster.
|
void |
refreshNamespaceData(com.aerospike.client.cluster.Node node,
com.aerospike.helper.model.Namespace namespace) |
void |
refreshNamespaces()
refreshes the cached Namespace information
|
reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> |
select(java.lang.String namespace,
java.lang.String set,
com.aerospike.client.query.Filter filter,
com.aerospike.helper.query.Qualifier... qualifiers)
Select records filtered by a Filter and Qualifiers
|
<T> com.aerospike.client.listener.WriteListener |
writeListener(reactor.core.publisher.MonoSink<T> sink,
T document) |
java.util.function.Function<reactor.core.publisher.MonoSink<?>,com.aerospike.client.listener.WriteListener> |
writeListenerFunction() |
public ReactiveQueryEngine(java.util.Collection<com.aerospike.client.Host> hosts,
com.aerospike.client.policy.ClientPolicy clientPolicy)
public reactor.core.publisher.Mono<java.lang.Void> createIndex(java.lang.String namespace,
java.lang.String setName,
java.lang.String indexName,
java.lang.String binName,
com.aerospike.client.query.IndexType indexType)
public reactor.core.publisher.Mono<java.lang.Void> deleteIndex(java.lang.String namespace,
java.lang.String setName,
java.lang.String indexName)
public reactor.core.publisher.Mono<java.lang.Boolean> indexExists(java.lang.String namespace,
java.lang.String indexName)
public <T> reactor.core.publisher.Mono<T> put(T document,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin... bins)
public reactor.core.publisher.Mono<java.lang.Boolean> delete(com.aerospike.client.Key key)
public reactor.core.publisher.Mono<java.lang.Boolean> exists(com.aerospike.client.Key key)
public <T> reactor.core.publisher.Flux<T> query(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement)
public <T> reactor.core.publisher.Flux<T> get(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key... keys)
public <T> reactor.core.publisher.Mono<T> get(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.BatchPolicy policy,
com.aerospike.client.Key key)
public <T> reactor.core.publisher.Mono<T> operate(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation... operations)
public <T> reactor.core.publisher.Mono<T> getAndTouch(java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> succeFunction,
com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key)
public reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> select(java.lang.String namespace,
java.lang.String set,
com.aerospike.client.query.Filter filter,
com.aerospike.helper.query.Qualifier... qualifiers)
namespace - Namespace to storing the dataset - Set storing the datafilter - Aerospike Filter to be usedqualifiers - Zero or more Qualifiers for the update querypublic com.aerospike.client.query.Statement createStatement(java.lang.String namespace,
java.lang.String set,
com.aerospike.client.query.Filter filter)
public reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> query(com.aerospike.client.query.Statement statement)
public reactor.core.publisher.Flux<com.aerospike.client.query.KeyRecord> getHeader(com.aerospike.client.Key... keys)
public reactor.core.publisher.Mono<com.aerospike.client.query.KeyRecord> get(com.aerospike.client.Key key,
java.lang.String... binsName)
protected boolean isIndexedBin(com.aerospike.client.query.Statement stmt,
com.aerospike.helper.query.Qualifier qualifier)
protected java.util.List<com.aerospike.client.query.PredExp> buildPredExp(com.aerospike.helper.query.Qualifier[] qualifiers)
throws com.aerospike.helper.query.PredExpException
com.aerospike.helper.query.PredExpExceptionprotected java.lang.String buildFilterFunction(com.aerospike.helper.query.Qualifier[] qualifiers)
public void refreshCluster()
public void refreshNamespaces()
public void refreshNamespaceData(com.aerospike.client.cluster.Node node,
com.aerospike.helper.model.Namespace namespace)
public com.aerospike.helper.model.Namespace getNamespace(java.lang.String namespace)
namespace - Namespace namepublic void refreshIndexes()
public java.util.Optional<com.aerospike.helper.model.Index> getIndex(com.aerospike.helper.query.cache.IndexKey key)
key - The key = namespace:set:bin built from the indexed Binpublic void refreshModules()
public com.aerospike.helper.model.Module getModule(java.lang.String moduleName)
moduleName - The name of the modulepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.util.function.Function<reactor.core.publisher.MonoSink<?>,com.aerospike.client.listener.WriteListener> writeListenerFunction()
public <T> com.aerospike.client.listener.WriteListener writeListener(reactor.core.publisher.MonoSink<T> sink,
T document)
public <T> com.aerospike.client.listener.ExistsListener existsListener(reactor.core.publisher.MonoSink<java.lang.Boolean> sink,
T documents)
public <T> com.aerospike.client.listener.DeleteListener deleteListener(reactor.core.publisher.MonoSink<T> sink,
T document)
public <T> com.aerospike.client.listener.RecordListener recordListener(reactor.core.publisher.MonoSink<T> sink,
java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction)
public <T> com.aerospike.client.listener.RecordSequenceListener recordSequenceListener(reactor.core.publisher.FluxSink<T> sink,
java.util.function.BiFunction<com.aerospike.client.Key,com.aerospike.client.Record,T> successFunction)