All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.client.reactor.IAerospikeReactorClient Maven / Gradle / Ivy

/*
 * Copyright 2012-2018 Aerospike, Inc.
 *
 * Portions may be licensed to Aerospike, Inc. under one or more contributor
 * license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.aerospike.client.reactor;

import com.aerospike.client.*;
import com.aerospike.client.cdt.CTX;
import com.aerospike.client.cluster.Node;
import com.aerospike.client.policy.*;
import com.aerospike.client.query.IndexCollectionType;
import com.aerospike.client.query.IndexType;
import com.aerospike.client.query.KeyRecord;
import com.aerospike.client.query.Statement;
import com.aerospike.client.reactor.dto.KeyExists;
import com.aerospike.client.reactor.dto.KeyObject;
import com.aerospike.client.reactor.dto.KeysExists;
import com.aerospike.client.reactor.dto.KeysRecords;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.io.Closeable;
import java.util.List;
import java.util.Map;

public interface IAerospikeReactorClient extends DefaultPolicyProvider, Closeable {

	/**
	 * Reactively read entire record for specified key.
	 * This method registers the command with an event loop and returns.
	 * The event loop thread will process the command and send the results to the listener.
	 *
	 * @param key					unique record identifier
	 * @throws AerospikeException	if event loop registration fails
	 */
	Mono get(Key key) throws AerospikeException;

	/**
	 * Reactively read multiple records for specified keys in one batch call.
	 * This method registers the command with an event loop and returns.
	 * The event loop thread will process the command and send the results to the listener.
	 * 

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. * The policy can be used to specify timeouts. * * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono get(Key[] keys) throws AerospikeException; /** * Reactively read multiple records for specified keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. * The policy can be used to specify timeouts. * * @param policy batch configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono get(BatchPolicy policy, Key[] keys) throws AerospikeException; /** * Reactively read entire record for specified key. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy can be used to specify timeouts. * * @param policy generic configuration parameters, pass in null for defaults * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono get(Policy policy, Key key) throws AerospikeException; /** * Reactively read record header and bins for specified key. *

* The policy can be used to specify timeouts. * * @param policy generic configuration parameters, pass in null for defaults * @param key unique record identifier * @param binNames bins to retrieve * @throws AerospikeException if event loop registration fails */ Mono get(Policy policy, Key key, String[] binNames) throws AerospikeException; /** * Asynchronously read multiple records for specified batch keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* This method allows different namespaces/bins to be requested for each key in the batch. * The returned records are located in the same list. * If the BatchRead key field is not found, the corresponding record field will be null. * * @param records list of unique record identifiers and the bins to retrieve. * The returned records are located in the same list. * @throws AerospikeException if event loop registration fails */ Mono> get(List records) throws AerospikeException; /** * Reactively read multiple records for specified batch keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* This method allows different namespaces/bins to be requested for each key in the batch. * The returned records are located in the same list. * If the BatchRead key field is not found, the corresponding record field will be null. *

* The policy can be used to specify timeouts. * * @param policy batch configuration parameters, pass in null for defaults * @param records list of unique record identifiers and the bins to retrieve. * The returned records are located in the same list. * @throws AerospikeException if event loop registration fails */ Mono> get(BatchPolicy policy, List records) throws AerospikeException; /** * Reactively read multiple records for specified keys using read operations in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. *

* If a batch request to a node fails, the entire batch is cancelled. * * @param keys array of unique record identifiers * @param operations array of read operations on record * @throws AerospikeException if event loop registration fails */ Mono get(Key[] keys, Operation... operations) throws AerospikeException; /** * Reactively read multiple records for specified keys using read operations in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. *

* If a batch request to a node fails, the entire batch is cancelled. * * @param policy batch configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @param operations array of read operations on record * @throws AerospikeException if event loop registration fails */ Mono get(BatchPolicy policy, Key[] keys, Operation... operations) throws AerospikeException; /** * Reactively read multiple records for specified batch keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* This method allows different namespaces/bins to be requested for each key in the batch. * Each record result is returned in separate onRecord() calls. * If the BatchRead key field is not found, the corresponding record field will be null. * * @param records list of unique record identifiers and the bins to retrieve. * The returned records are located in the same list. * @throws AerospikeException if event loop registration fails */ Flux getFlux(List records) throws AerospikeException; /** * Reactively read multiple records for specified batch keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* This method allows different namespaces/bins to be requested for each key in the batch. * Each record result is returned in separate onRecord() calls. * If the BatchRead key field is not found, the corresponding record field will be null. * The policy can be used to specify timeouts. * * @param policy batch configuration parameters, pass in null for defaults * @param records list of unique record identifiers and the bins to retrieve. * The returned records are located in the same list. * @throws AerospikeException if event loop registration fails */ Flux getFlux(BatchPolicy policy, List records) throws AerospikeException; /** * Reactively read multiple records for specified keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each record result is returned in separate onRecord() calls. * If a key is not found, the record will be null. * The policy can be used to specify timeouts. * * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Flux getFlux(Key[] keys) throws AerospikeException; /** * Reactively read multiple records for specified keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each record result is returned in separate onRecord() calls. * If a key is not found, the record will be null. * The policy can be used to specify timeouts. * * @param policy batch configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Flux getFlux(BatchPolicy policy, Key[] keys) throws AerospikeException; /** * Reactively read multiple records for specified keys using read operations in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each record result is returned in separate onRecord() calls. * If a key is not found, the record will be null. *

* If a batch request to a node fails, responses from other nodes will continue to * be processed. * * @param keys array of unique record identifiers * @param operations array of read operations on record * @throws AerospikeException if event loop registration fails */ Flux getFlux(Key[] keys, Operation... operations) throws AerospikeException; /** * Reactively read multiple records for specified keys using read operations in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each record result is returned in separate onRecord() calls. * If a key is not found, the record will be null. *

* If a batch request to a node fails, responses from other nodes will continue to * be processed. * * @param policy batch configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @param operations array of read operations on record * @throws AerospikeException if event loop registration fails */ Flux getFlux(BatchPolicy policy, Key[] keys, Operation... operations) throws AerospikeException; /** * Reactively read record generation and expiration only for specified key. Bins are not read. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono getHeader(Key key) throws AerospikeException; /** * Reactively read record generation and expiration only for specified key. Bins are not read. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy can be used to specify timeouts. * * @param policy generic configuration parameters, pass in null for defaults * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono getHeader(Policy policy, Key key) throws AerospikeException; /** * Reactively read multiple record header data for specified keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. * * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono getHeaders(Key[] keys) throws AerospikeException; /** * Reactively read multiple record header data for specified keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned records are in positional order with the original key array order. * If a key is not found, the positional record will be null. * The policy can be used to specify timeouts. * * @param policy batch configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono getHeaders(BatchPolicy policy, Key[] keys) throws AerospikeException; /** * Reactively reset record's time to expiration using the policy's expiration. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Fail if the record does not exist. * * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono touch(Key key) throws AerospikeException; /** * Reactively reset record's time to expiration using the policy's expiration. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Fail if the record does not exist. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono touch(WritePolicy policy, Key key) throws AerospikeException; /** * Reactively determine if a record key exists. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono exists(Key key) throws AerospikeException; /** * Reactively determine if a record key exists. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy can be used to specify timeouts. * * @param policy generic configuration parameters, pass in null for defaults * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono exists(Policy policy, Key key) throws AerospikeException; /** * Reactively check if multiple record keys exist in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned boolean array is in positional order with the original key array order. * * @param keys unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono exists(Key[] keys) throws AerospikeException; /** * Reactively check if multiple record keys exist in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The returned boolean array is in positional order with the original key array order. * * @param policy batch configuration parameters, pass in null for defaults * @param keys unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono exists(BatchPolicy policy, Key[] keys) throws AerospikeException; /** * Reactively check if multiple record keys exist in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each key's result is returned in separate onExists() calls. * * @param keys unique record identifiers * @throws AerospikeException if event loop registration fails */ Flux existsFlux(Key[] keys) throws AerospikeException; /** * Reactively check if multiple record keys exist in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Each key's result is returned in separate onExists() calls. * * @param policy batch configuration parameters, pass in null for defaults * @param keys unique record identifiers * @throws AerospikeException if event loop registration fails */ Flux existsFlux(BatchPolicy policy, Key[] keys) throws AerospikeException; /** * Reactively write record bin(s). * This method registers the command with an event loop and returns. * The event loop thread will process the command and publish result. * * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono put(Key key, Bin... bins) throws AerospikeException; /** * Reactively write record bin(s). * This method registers the command with an event loop and returns. * The event loop thread will process the command and publish result. *

* The policy specifies the transaction timeout, record expiration and how the transaction is * handled when the record already exists. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException; /** * Reactively append bin string values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono append(Key key, Bin... bins) throws AerospikeException; /** * Reactively append bin string values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy specifies the transaction timeout, record expiration and how the transaction is * handled when the record already exists. * This call only works for string values. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono append(WritePolicy policy, Key key, Bin... bins) throws AerospikeException; /** * Reactively prepend bin string values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono prepend(Key key, Bin... bins) throws AerospikeException; /** * Reactively prepend bin string values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy specifies the transaction timeout, record expiration and how the transaction is * handled when the record already exists. * This call only works for string values. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono prepend(WritePolicy policy, Key key, Bin... bins) throws AerospikeException; /** * Reactively add integer bin values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono add(Key key, Bin... bins) throws AerospikeException; /** * Reactively add integer bin values to existing record bin values. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy specifies the transaction timeout, record expiration and how the transaction is * handled when the record already exists. * This call only works for integer values. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param bins array of bin name/value pairs * @throws AerospikeException if event loop registration fails */ Mono add(WritePolicy policy, Key key, Bin... bins) throws AerospikeException; /** * Reactively delete record for specified key. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono delete(Key key) throws AerospikeException; /** * Reactively delete record for specified key. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The policy specifies the transaction timeout. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @throws AerospikeException if event loop registration fails */ Mono delete(WritePolicy policy, Key key) throws AerospikeException; /** * Asynchronously delete records for specified keys. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* If a key is not found, the corresponding result {@link BatchRecord#resultCode} will be * {@link ResultCode#KEY_NOT_FOUND_ERROR}. *

* Requires server version 6.0+ * * @param batchPolicy batch configuration parameters, pass in null for defaults * @param deletePolicy delete configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @throws AerospikeException if event loop registration fails */ Mono delete(BatchPolicy batchPolicy, BatchDeletePolicy deletePolicy, Key[] keys) throws AerospikeException; /** * Reactively perform multiple read/write operations on a single key in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* An example would be to add an integer value to an existing record and then * read the result, all in one database call. *

* Write operations are always performed first, regardless of operation order * relative to read operations. *

* Both scalar bin operations (Operation) and list bin operations (ListOperation) * can be performed in same call. * * @param key unique record identifier * @param operations database operations to perform * @throws AerospikeException if event loop registration fails */ Mono operate(Key key, Operation... operations) throws AerospikeException; /** * Reactively perform multiple read/write operations on a single key in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* An example would be to add an integer value to an existing record and then * read the result, all in one database call. *

* Write operations are always performed first, regardless of operation order * relative to read operations. *

* Both scalar bin operations (Operation) and list bin operations (ListOperation) * can be performed in same call. * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param operations database operations to perform * @throws AerospikeException if event loop registration fails */ Mono operate(WritePolicy policy, Key key, Operation... operations) throws AerospikeException; /** * Asynchronously perform read/write operations on multiple keys. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* If a key is not found, the corresponding result {@link BatchRecord#resultCode} will be * {@link ResultCode#KEY_NOT_FOUND_ERROR}. *

* Requires server version 6.0+ * * @param batchPolicy batch configuration parameters, pass in null for defaults * @param writePolicy write configuration parameters, pass in null for defaults * @param keys array of unique record identifiers * @param ops array of read/write operations on record * @throws AerospikeException if event loop registration fails */ Mono operate(BatchPolicy batchPolicy, BatchWritePolicy writePolicy, Key[] keys, Operation... ops) throws AerospikeException; /** * Asynchronously read/write multiple records for specified batch keys in one batch call. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* This method allows different namespaces/bins to be requested for each key in the batch. * The returned records are located in the same list. *

* {@link BatchRecord} can be {@link BatchRead}, {@link BatchWrite}, {@link BatchDelete} or * {@link BatchUDF}. *

* Requires server version 6.0+ * * @param policy batch configuration parameters, pass in null for defaults * @param records list of unique record identifiers and read/write operations * @throws AerospikeException if event loop registration fails */ Mono operate(BatchPolicy policy, List records) throws AerospikeException; /** * Asynchronously attempt to commit the given multi-record transaction. First, the expected * record versions are sent to the server nodes for verification. If all nodes return success, * the transaction is committed. Otherwise, the transaction is aborted. *

* This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Requires server version 8.0+ * * @param txn multi-record transaction * @throws AerospikeException if event loop registration fails */ Mono commit(Txn txn) throws AerospikeException; /** * Asynchronously abort and rollback the given multi-record transaction. *

* This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* Requires server version 8.0+ * * @param txn multi-record transaction * @throws AerospikeException if event loop registration fails */ Mono abort(Txn txn) throws AerospikeException; /** * Reactively execute query on all server nodes. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the flux. * * @param statement database query command * @throws AerospikeException if event loop registration fails */ Flux query(Statement statement) throws AerospikeException; /** * Reactively execute query on all server nodes. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the flux. * * @param policy query configuration parameters, pass in null for defaults * @param statement database query command * @throws AerospikeException if event loop registration fails */ Flux query(QueryPolicy policy, Statement statement) throws AerospikeException; /** * Reactively read all records in specified namespace and set. If the policy's * concurrentNodes is specified, each server node will be read in * parallel. Otherwise, server nodes are read in series. *

* This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param namespace namespace - equivalent to database name * @param setName optional set name - equivalent to database table * @param binNames optional bin to retrieve. All bins will be returned if not specified. * Aerospike 2 servers ignore this parameter. * @throws AerospikeException if event loop registration fails */ Flux scanAll(String namespace, String setName, String... binNames) throws AerospikeException; /** * Reactively read all records in specified namespace and set. If the policy's * concurrentNodes is specified, each server node will be read in * parallel. Otherwise, server nodes are read in series. *

* This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. * * @param policy scan configuration parameters, pass in null for defaults * @param namespace namespace - equivalent to database name * @param setName optional set name - equivalent to database table * @param binNames optional bin to retrieve. All bins will be returned if not specified. * Aerospike 2 servers ignore this parameter. * @throws AerospikeException if event loop registration fails */ Flux scanAll(ScanPolicy policy, String namespace, String setName, String... binNames) throws AerospikeException; /** * Reactively execute user defined function on server. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The function operates on a single record. * The package name is used to locate the udf file location: *

* udf file = /.lua * * @param key unique record identifier * @param packageName server package name where user defined function resides * @param functionName user defined function * @param functionArgs arguments passed in to user defined function * @throws AerospikeException if event loop registration fails */ Mono execute(Key key, String packageName, String functionName, Value... functionArgs) throws AerospikeException; /** * Reactively execute user defined function on server. * This method registers the command with an event loop and returns. * The event loop thread will process the command and send the results to the listener. *

* The function operates on a single record. * The package name is used to locate the udf file location: *

* udf file = /.lua * * @param policy write configuration parameters, pass in null for defaults * @param key unique record identifier * @param packageName server package name where user defined function resides * @param functionName user defined function * @param functionArgs arguments passed in to user defined function * @throws AerospikeException if event loop registration fails */ Mono execute(WritePolicy policy, Key key, String packageName, String functionName, Value... functionArgs) throws AerospikeException; /** * Reactively access server's info monitoring protocol. *

* The info protocol is a name/value pair based system, where an individual * database server node is queried to determine its configuration and status. * The list of supported names can be found at: *

* https://www.aerospike.com/docs/reference/info/index.html *

* */ Mono info(InfoPolicy infoPolicy, Node node, String command); /** * Reactively access server's info monitoring protocol. *

* The info protocol is a name/value pair based system, where an individual * database server node is queried to determine its configuration and status. * The list of supported names can be found at: *

* https://www.aerospike.com/docs/reference/info/index.html *

* */ Mono> info(InfoPolicy infoPolicy, Node node, List commands); /** * Reactively create complex secondary index to be used on bins containing collections. * * @param policy generic configuration parameters, pass in null for defaults * @param namespace namespace - equivalent to database name * @param setName optional set name - equivalent to database table * @param indexName name of secondary index * @param binName bin name that data is indexed on * @param indexType underlying data type of secondary index * @param indexCollectionType index collection type * @param ctx optional context to index on elements within a CDT * @throws AerospikeException if index create fails */ Mono createIndex(Policy policy, String namespace, String setName, String indexName, String binName, IndexType indexType, IndexCollectionType indexCollectionType, CTX... ctx); /** * Reactively delete secondary index. * This asynchronous server call will return before command is complete. * The user can optionally wait for command completion by using the returned * IndexTask instance. * @param policy generic configuration parameters, pass in null for defaults * @param namespace namespace - equivalent to database name * @param setName optional set name - equivalent to database table * @param indexName name of secondary index * @throws AerospikeException if index create fails */ Mono dropIndex( Policy policy, String namespace, String setName, String indexName ); /** * Return the original non-reactive Aerospike Client */ IAerospikeClient getAerospikeClient(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy