public class AerospikeClient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<AerospikeClient> |
__TYPE_ARG |
| Constructor and Description |
|---|
AerospikeClient(AerospikeClient delegate) |
AerospikeClient(java.lang.Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
AerospikeClient |
add(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously add integer/double bin values to existing record bin values.
|
AerospikeClient |
append(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously append bin string values to existing record bin values.
|
void |
close()
Close all client connections to database server nodes.
|
static AerospikeClient |
create(io.vertx.reactivex.core.Vertx vertx)
Like
create(io.vertx.reactivex.core.Vertx, com.dream11.aerospike.config.AerospikeConnectOptions) with default options. |
static AerospikeClient |
create(io.vertx.reactivex.core.Vertx vertx,
AerospikeConnectOptions connectOptions)
Create a shared aerospike client using the given connect options.
|
static AerospikeClient |
createNonShared(io.vertx.reactivex.core.Vertx vertx)
Like
createNonShared(io.vertx.reactivex.core.Vertx, com.dream11.aerospike.config.AerospikeConnectOptions) with default options. |
static AerospikeClient |
createNonShared(io.vertx.reactivex.core.Vertx vertx,
AerospikeConnectOptions connectOptions)
Create a non shared aerospike client using the given connect options.
|
AerospikeClient |
delete(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Asynchronously delete record for specified key.
|
boolean |
equals(java.lang.Object o) |
AerospikeClient |
execute(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
java.lang.String packageName,
java.lang.String functionName,
com.aerospike.client.Value[] functionArgs,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> handler)
Asynchronously execute user defined function on server.
|
AerospikeClient |
exists(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Boolean>>> handler)
Asynchronously check if multiple record keys exist in one batch call.
|
AerospikeClient |
exists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Asynchronously determine if a record key exists.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple records for specified keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple record headers and bins for specified keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.BatchPolicy batchPolicy,
java.util.List<com.aerospike.client.BatchRead> records,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.BatchRead>>> handler)
Asynchronously read multiple records for specified batch keys in one batch call.
|
AerospikeClient |
get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read entire record for specified key.
|
AerospikeClient |
get(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read record header and bins for specified key.
|
com.aerospike.client.AerospikeClient |
getAerospikeClient()
Get the underlying
AerospikeClient |
AerospikeClient |
getClusterStats(io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.cluster.ClusterStats>> handler)
Return operating cluster statistics.
|
AerospikeClient |
getDelegate() |
AerospikeClient |
getHeader(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
Asynchronously read multiple record header data for specified keys in one batch call.
|
AerospikeClient |
getHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously read record generation and expiration only for specified key.
|
int |
hashCode() |
AerospikeClient |
isConnected(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
Determine if we are ready to talk to the database server cluster.
|
static AerospikeClient |
newInstance(AerospikeClient arg) |
AerospikeClient |
operate(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation[] operations,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
Asynchronously perform multiple read/write operations on a single key in one batch call.
|
AerospikeClient |
prepend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously prepend bin string values to existing record bin values.
|
AerospikeClient |
put(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously write record bin(s).
|
AerospikeClient |
query(com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously execute query on all server nodes.
|
io.reactivex.Single<com.aerospike.client.Key> |
rxAdd(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
Asynchronously add integer/double bin values to existing record bin values.
|
io.reactivex.Single<com.aerospike.client.Key> |
rxAppend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
Asynchronously append bin string values to existing record bin values.
|
io.reactivex.Single<java.lang.Boolean> |
rxDelete(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key)
Asynchronously delete record for specified key.
|
io.reactivex.Single<java.lang.Object> |
rxExecute(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
java.lang.String packageName,
java.lang.String functionName,
com.aerospike.client.Value[] functionArgs)
Asynchronously execute user defined function on server.
|
io.reactivex.Single<java.util.List<java.lang.Boolean>> |
rxExists(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
Asynchronously check if multiple record keys exist in one batch call.
|
io.reactivex.Single<java.lang.Boolean> |
rxExists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Asynchronously determine if a record key exists.
|
io.reactivex.Single<java.util.List<com.aerospike.client.Record>> |
rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
Asynchronously read multiple records for specified keys in one batch call.
|
io.reactivex.Single<java.util.List<com.aerospike.client.Record>> |
rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
java.lang.String[] binNames)
Asynchronously read multiple record headers and bins for specified keys in one batch call.
|
io.reactivex.Single<java.util.List<com.aerospike.client.BatchRead>> |
rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
java.util.List<com.aerospike.client.BatchRead> records)
Asynchronously read multiple records for specified batch keys in one batch call.
|
io.reactivex.Single<com.aerospike.client.Record> |
rxGet(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Asynchronously read entire record for specified key.
|
io.reactivex.Single<com.aerospike.client.Record> |
rxGet(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
java.lang.String[] binNames)
Asynchronously read record header and bins for specified key.
|
io.reactivex.Single<com.aerospike.client.cluster.ClusterStats> |
rxGetClusterStats()
Return operating cluster statistics.
|
io.reactivex.Single<java.util.List<com.aerospike.client.Record>> |
rxGetHeader(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
Asynchronously read multiple record header data for specified keys in one batch call.
|
io.reactivex.Single<com.aerospike.client.Record> |
rxGetHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
Asynchronously read record generation and expiration only for specified key.
|
io.reactivex.Single<java.lang.Boolean> |
rxIsConnected()
Determine if we are ready to talk to the database server cluster.
|
io.reactivex.Single<com.aerospike.client.Record> |
rxOperate(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation[] operations)
Asynchronously perform multiple read/write operations on a single key in one batch call.
|
io.reactivex.Single<com.aerospike.client.Key> |
rxPrepend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
Asynchronously prepend bin string values to existing record bin values.
|
io.reactivex.Single<com.aerospike.client.Key> |
rxPut(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
Asynchronously write record bin(s).
|
io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> |
rxQuery(com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement)
Asynchronously execute query on all server nodes.
|
io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> |
rxScanAll(com.aerospike.client.policy.ScanPolicy policy,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames)
Asynchronously read all records in specified namespace and set
|
io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> |
rxScanPartitions(com.aerospike.client.policy.ScanPolicy policy,
com.aerospike.client.query.PartitionFilter partitionFilter,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames)
Asynchronously read records in specified namespace, set and partition filter.
|
io.reactivex.Single<com.aerospike.client.Key> |
rxTouch(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key)
Asynchronously reset record's time to expiration using the policy's expiration.
|
AerospikeClient |
scanAll(com.aerospike.client.policy.ScanPolicy policy,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously read all records in specified namespace and set
|
AerospikeClient |
scanPartitions(com.aerospike.client.policy.ScanPolicy policy,
com.aerospike.client.query.PartitionFilter partitionFilter,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
Asynchronously read records in specified namespace, set and partition filter.
|
java.lang.String |
toString() |
AerospikeClient |
touch(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
Asynchronously reset record's time to expiration using the policy's expiration.
|
public static final io.vertx.lang.rx.TypeArg<AerospikeClient> __TYPE_ARG
public AerospikeClient(AerospikeClient delegate)
public AerospikeClient(java.lang.Object delegate)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic AerospikeClient getDelegate()
public void close()
public static AerospikeClient create(io.vertx.reactivex.core.Vertx vertx, AerospikeConnectOptions connectOptions)
vertx - the vertx instanceconnectOptions - user provided connection optionspublic static AerospikeClient create(io.vertx.reactivex.core.Vertx vertx)
create(io.vertx.reactivex.core.Vertx, com.dream11.aerospike.config.AerospikeConnectOptions) with default options.vertx - the vertx instancepublic static AerospikeClient createNonShared(io.vertx.reactivex.core.Vertx vertx, AerospikeConnectOptions connectOptions)
vertx - the vertx instanceconnectOptions - user provided connection optionspublic static AerospikeClient createNonShared(io.vertx.reactivex.core.Vertx vertx)
createNonShared(io.vertx.reactivex.core.Vertx, com.dream11.aerospike.config.AerospikeConnectOptions) with default options.vertx - the vertx instancepublic AerospikeClient isConnected(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
handler - the handler that will handle responsepublic io.reactivex.Single<java.lang.Boolean> rxIsConnected()
public AerospikeClient getClusterStats(io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.cluster.ClusterStats>> handler)
handler - the handler that will handle the received cluster statisticspublic io.reactivex.Single<com.aerospike.client.cluster.ClusterStats> rxGetClusterStats()
public com.aerospike.client.AerospikeClient getAerospikeClient()
AerospikeClientcom.aerospike.client.AerospikeClient instance which is used internally.public AerospikeClient put(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Key> rxPut(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairspublic AerospikeClient append(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Key> rxAppend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairspublic AerospikeClient prepend(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Key> rxPrepend(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairspublic AerospikeClient add(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Bin[] bins, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairshandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Key> rxAdd(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Bin[] bins)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierbins - array of bin name/value pairspublic AerospikeClient delete(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultpublic io.reactivex.Single<java.lang.Boolean> rxDelete(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierpublic AerospikeClient touch(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Key>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Key> rxTouch(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierpublic AerospikeClient exists(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> handler)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultpublic io.reactivex.Single<java.lang.Boolean> rxExists(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierpublic AerospikeClient exists(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Boolean>>> handler)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - unique record identifiershandler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<java.lang.Boolean>> rxExists(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - unique record identifierspublic AerospikeClient get(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Record> rxGet(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierpublic AerospikeClient get(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierbinNames - bins to retrievehandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Record> rxGet(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key,
java.lang.String[] binNames)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierbinNames - bins to retrievepublic AerospikeClient getHeader(com.aerospike.client.policy.Policy policy, com.aerospike.client.Key key, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierhandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Record> rxGetHeader(com.aerospike.client.policy.Policy policy,
com.aerospike.client.Key key)
policy - generic configuration parameters, pass in null for defaultskey - unique record identifierpublic AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, java.util.List<com.aerospike.client.BatchRead> records, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.BatchRead>>> handler)
batchPolicy - batch configuration parameters, pass in null for defaultsrecords - list of unique record identifiers and the bins to retrieve. The returned records are located in the same list.handler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.BatchRead>> rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
java.util.List<com.aerospike.client.BatchRead> records)
batchPolicy - batch configuration parameters, pass in null for defaultsrecords - list of unique record identifiers and the bins to retrieve. The returned records are located in the same list.public AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiershandler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.Record>> rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifierspublic AerospikeClient get(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiersbinNames - array of bins to retrievehandler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.Record>> rxGet(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys,
java.lang.String[] binNames)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiersbinNames - array of bins to retrievepublic AerospikeClient getHeader(com.aerospike.client.policy.BatchPolicy batchPolicy, com.aerospike.client.Key[] keys, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.Record>>> handler)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifiershandler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.Record>> rxGetHeader(com.aerospike.client.policy.BatchPolicy batchPolicy,
com.aerospike.client.Key[] keys)
batchPolicy - batch configuration parameters, pass in null for defaultskeys - array of unique record identifierspublic AerospikeClient operate(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, com.aerospike.client.Operation[] operations, io.vertx.core.Handler<io.vertx.core.AsyncResult<com.aerospike.client.Record>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifieroperations - database operations to performhandler - the handler that will handle the resultpublic io.reactivex.Single<com.aerospike.client.Record> rxOperate(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
com.aerospike.client.Operation[] operations)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifieroperations - database operations to performpublic AerospikeClient scanAll(com.aerospike.client.policy.ScanPolicy policy, java.lang.String namespace, java.lang.String setName, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
policy - scan configuration parameters, pass in null for defaultsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.handler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> rxScanAll(com.aerospike.client.policy.ScanPolicy policy,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames)
policy - scan configuration parameters, pass in null for defaultsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.public AerospikeClient scanPartitions(com.aerospike.client.policy.ScanPolicy policy, com.aerospike.client.query.PartitionFilter partitionFilter, java.lang.String namespace, java.lang.String setName, java.lang.String[] binNames, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
policy - scan configuration parameters, pass in null for defaultspartitionFilter - filter on a subset of data partitionsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.handler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> rxScanPartitions(com.aerospike.client.policy.ScanPolicy policy,
com.aerospike.client.query.PartitionFilter partitionFilter,
java.lang.String namespace,
java.lang.String setName,
java.lang.String[] binNames)
policy - scan configuration parameters, pass in null for defaultspartitionFilter - filter on a subset of data partitionsnamespace - namespace - equivalent to database namesetName - optional set name - equivalent to database tablebinNames - optional bins to retrieve. All bins will be returned if empty.public AerospikeClient execute(com.aerospike.client.policy.WritePolicy writePolicy, com.aerospike.client.Key key, java.lang.String packageName, java.lang.String functionName, com.aerospike.client.Value[] functionArgs, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> handler)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierpackageName - server package name where user defined function residesfunctionName - user defined functionfunctionArgs - arguments passed in to user defined functionhandler - the handler that will handle the resultpublic io.reactivex.Single<java.lang.Object> rxExecute(com.aerospike.client.policy.WritePolicy writePolicy,
com.aerospike.client.Key key,
java.lang.String packageName,
java.lang.String functionName,
com.aerospike.client.Value[] functionArgs)
writePolicy - write configuration parameters, pass in null for defaultskey - unique record identifierpackageName - server package name where user defined function residesfunctionName - user defined functionfunctionArgs - arguments passed in to user defined functionpublic AerospikeClient query(com.aerospike.client.policy.QueryPolicy queryPolicy, com.aerospike.client.query.Statement statement, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<com.aerospike.client.query.KeyRecord>>> handler)
queryPolicy - query configuration parameters, pass in null for defaultsstatement - query filter. Statement instance is not suitable for reuse since it's modified in this method.handler - the handler that will handle the resultpublic io.reactivex.Single<java.util.List<com.aerospike.client.query.KeyRecord>> rxQuery(com.aerospike.client.policy.QueryPolicy queryPolicy,
com.aerospike.client.query.Statement statement)
queryPolicy - query configuration parameters, pass in null for defaultsstatement - query filter. Statement instance is not suitable for reuse since it's modified in this method.public static AerospikeClient newInstance(AerospikeClient arg)
Copyright © 2021. All rights reserved.