Modifier and Type | Class and Description |
---|---|
static class |
AerospikeException.CommandRejected
Exception thrown when asynchronous command was rejected because the
max concurrent database commands have been exceeded.
|
static class |
AerospikeException.Connection
Exception thrown when client can't connect to the server.
|
static class |
AerospikeException.InvalidNode
Exception thrown when chosen node is not active.
|
static class |
AerospikeException.Parse
Exception thrown when client can't parse data returned from server.
|
static class |
AerospikeException.QueryTerminated
Exception thrown when query was terminated prematurely.
|
static class |
AerospikeException.ScanTerminated
Exception thrown when scan was terminated prematurely.
|
static class |
AerospikeException.Serialize
Exception thrown when Java serialization error occurs.
|
static class |
AerospikeException.Timeout
Exception thrown when database request expires before completing.
|
Modifier and Type | Method and Description |
---|---|
void |
AerospikeClient.add(WritePolicy policy,
Key key,
Bin... bins)
Add integer bin values to existing record bin values.
|
void |
AerospikeClient.append(WritePolicy policy,
Key key,
Bin... bins)
Append bin string values to existing record bin values.
|
void |
AerospikeClient.changePassword(AdminPolicy policy,
String user,
String password)
Change user's password.
|
static byte[] |
Key.computeDigest(String setName,
Value key)
Generate unique server hash value from set name, key type and user defined key.
|
IndexTask |
AerospikeClient.createIndex(Policy policy,
String namespace,
String setName,
String indexName,
String binName,
IndexType indexType)
Create secondary index.
|
void |
AerospikeClient.createUser(AdminPolicy policy,
String user,
String password,
List<String> roles)
Create user with password and roles.
|
boolean |
AerospikeClient.delete(WritePolicy policy,
Key key)
Delete record for specified key.
|
void |
AerospikeClient.dropIndex(Policy policy,
String namespace,
String setName,
String indexName)
Delete secondary index.
|
void |
AerospikeClient.dropUser(AdminPolicy policy,
String user)
Remove user from cluster.
|
abstract int |
Value.estimateSize()
Calculate number of bytes necessary to serialize the value in the wire protocol.
|
int |
Value.ValueArray.estimateSize() |
int |
Value.ListValue.estimateSize() |
int |
Value.MapValue.estimateSize() |
Object |
AerospikeClient.execute(Policy policy,
Key key,
String packageName,
String functionName,
Value... args)
|
ExecuteTask |
AerospikeClient.execute(Policy policy,
Statement statement,
String packageName,
String functionName,
Value... functionArgs)
|
Object |
AerospikeClient.execute(WritePolicy policy,
Key key,
String packageName,
String functionName,
Value... args)
Execute user defined function on server and return results.
|
ExecuteTask |
AerospikeClient.execute(WritePolicy policy,
Statement statement,
String packageName,
String functionName,
Value... functionArgs)
Apply user defined function on records that match the statement filter.
|
boolean[] |
AerospikeClient.exists(BatchPolicy policy,
Key[] keys)
Check if multiple record keys exist in one batch call.
|
boolean |
AerospikeClient.exists(Policy policy,
Key key)
Determine if a record key exists.
|
boolean[] |
AerospikeClient.exists(Policy policy,
Key[] keys)
Deprecated.
Use
AerospikeClient.exists(BatchPolicy, Key[]) instead. |
Record[] |
AerospikeClient.get(BatchPolicy policy,
Key[] keys)
Read multiple records for specified keys in one batch call.
|
Record[] |
AerospikeClient.get(BatchPolicy policy,
Key[] keys,
String... binNames)
Read multiple record headers and bins for specified keys in one batch call.
|
Record |
AerospikeClient.get(Policy policy,
Key key)
Read entire record for specified key.
|
Record[] |
AerospikeClient.get(Policy policy,
Key[] keys)
Deprecated.
Use
AerospikeClient.get(BatchPolicy, Key[]) instead. |
Record[] |
AerospikeClient.get(Policy policy,
Key[] keys,
String... binNames)
Deprecated.
Use
AerospikeClient.get(BatchPolicy, Key[], String...) instead. |
Record |
AerospikeClient.get(Policy policy,
Key key,
String... binNames)
Read record header and bins for specified key.
|
Record[] |
AerospikeClient.getHeader(BatchPolicy policy,
Key[] keys)
Read multiple record header data for specified keys in one batch call.
|
Record |
AerospikeClient.getHeader(Policy policy,
Key key)
Read record generation and expiration only for specified key.
|
Record[] |
AerospikeClient.getHeader(Policy policy,
Key[] keys)
Deprecated.
Use
AerospikeClient.getHeader(BatchPolicy, Key[]) instead. |
void |
AerospikeClient.grantRoles(AdminPolicy policy,
String user,
List<String> roles)
Add roles to user's list of roles.
|
Record |
AerospikeClient.operate(WritePolicy policy,
Key key,
Operation... operations)
Perform multiple read/write operations on a single key in one batch call.
|
void |
AerospikeClient.prepend(WritePolicy policy,
Key key,
Bin... bins)
Prepend bin string values to existing record bin values.
|
void |
AerospikeClient.put(WritePolicy policy,
Key key,
Bin... bins)
Write record bin(s).
|
RecordSet |
AerospikeClient.query(QueryPolicy policy,
Statement statement)
Execute query on all server nodes and return record iterator.
|
ResultSet |
AerospikeClient.queryAggregate(QueryPolicy policy,
Statement statement,
String packageName,
String functionName,
Value... functionArgs)
Execute query, apply statement's aggregation function, and return result iterator.
|
RecordSet |
AerospikeClient.queryNode(QueryPolicy policy,
Statement statement,
Node node)
Execute query on a single server node and return record iterator.
|
UserRoles |
AerospikeClient.queryUser(AdminPolicy policy,
String user)
Retrieve roles for a given user.
|
List<UserRoles> |
AerospikeClient.queryUsers(AdminPolicy policy)
Retrieve all users and their roles.
|
RegisterTask |
AerospikeClient.register(Policy policy,
String clientPath,
String serverPath,
Language language)
Register package containing user defined functions with server.
|
void |
AerospikeClient.replaceRoles(AdminPolicy policy,
String user,
List<String> roles)
Replace user's list of roles.
|
static HashMap<String,String> |
Info.request(com.aerospike.client.cluster.Connection conn)
Get all the default info from the specified database server node.
|
static HashMap<String,String> |
Info.request(com.aerospike.client.cluster.Connection conn,
String... names)
Get many info values by name from the specified database server node.
|
static String |
Info.request(com.aerospike.client.cluster.Connection conn,
String name)
Get one info value by name from the specified database server node.
|
static HashMap<String,String> |
Info.request(InetSocketAddress socketAddress)
Get all the default info from the specified database server node.
|
static HashMap<String,String> |
Info.request(InetSocketAddress socketAddress,
String... names)
Get many info values by name from the specified database server node.
|
static String |
Info.request(InetSocketAddress socketAddress,
String name)
Get one info value by name from the specified database server node.
|
static Map<String,String> |
Info.request(InfoPolicy policy,
Node node)
Get default info values from the specified database server node.
|
static Map<String,String> |
Info.request(InfoPolicy policy,
Node node,
String... names)
Get many info values by name from the specified database server node.
|
static String |
Info.request(InfoPolicy policy,
Node node,
String name)
Get one info value by name from the specified database server node.
|
static String |
Info.request(Node node,
String name)
Get one info value by name from the specified database server node.
|
static HashMap<String,String> |
Info.request(String hostname,
int port)
Get default info from the specified database server node, using host name and port.
|
static HashMap<String,String> |
Info.request(String hostname,
int port,
String... names)
Get many info values by name from the specified database server node,
using host name and port.
|
static String |
Info.request(String hostname,
int port,
String name)
Get one info value by name from the specified database server node, using
host name and port.
|
void |
AerospikeClient.revokeRoles(AdminPolicy policy,
String user,
List<String> roles)
Remove roles from user's list of roles.
|
void |
AerospikeClient.scanAll(ScanPolicy policy,
String namespace,
String setName,
ScanCallback callback,
String... binNames)
Read all records in specified namespace and set.
|
void |
ScanCallback.scanCallback(Key key,
Record record)
This method will be called for each record returned from a scan.
|
void |
AerospikeClient.scanNode(ScanPolicy policy,
Node node,
String namespace,
String setName,
ScanCallback callback,
String... binNames)
Read all records in specified namespace and set for one node only.
|
void |
AerospikeClient.scanNode(ScanPolicy policy,
String nodeName,
String namespace,
String setName,
ScanCallback callback,
String... binNames)
Read all records in specified namespace and set for one node only.
|
void |
AerospikeClient.touch(WritePolicy policy,
Key key)
Reset record's time to expiration using the policy's expiration.
|
void |
Value.validateKeyType()
Validate if value type can be used as a key.
|
abstract int |
Value.write(byte[] buffer,
int offset)
Serialize the value in the wire protocol.
|
Constructor and Description |
---|
AerospikeClient(ClientPolicy policy,
Host... hosts)
Initialize Aerospike client with suitable hosts to seed the cluster map.
|
AerospikeClient(ClientPolicy policy,
String hostname,
int port)
Initialize Aerospike client.
|
AerospikeClient(String hostname,
int port)
Initialize Aerospike client.
|
Info(com.aerospike.client.cluster.Connection conn)
Send default empty command to server and store results.
|
Info(com.aerospike.client.cluster.Connection conn,
String... commands)
Send multiple commands to server and store results.
|
Info(com.aerospike.client.cluster.Connection conn,
String command)
Send single command to server and store results.
|
Key(String namespace,
String setName,
byte[] key)
Initialize key from namespace, optional set name and user key.
|
Key(String namespace,
String setName,
byte[] key,
int offset,
int length)
Initialize key from namespace, optional set name and user key.
|
Key(String namespace,
String setName,
int key)
Initialize key from namespace, optional set name and user key.
|
Key(String namespace,
String setName,
long key)
Initialize key from namespace, optional set name and user key.
|
Key(String namespace,
String setName,
String key)
Initialize key from namespace, optional set name and user key.
|
Key(String namespace,
String setName,
Value key)
Initialize key from namespace, optional set name and user key.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncClient.add(WritePolicy policy,
WriteListener listener,
Key key,
Bin... bins)
Asynchronously add integer bin values to existing record bin values.
|
void |
AsyncClient.append(WritePolicy policy,
WriteListener listener,
Key key,
Bin... bins)
Asynchronously append bin string values to existing record bin values.
|
void |
AsyncClient.delete(WritePolicy policy,
DeleteListener listener,
Key key)
Asynchronously delete record for specified key.
|
void |
AsyncClient.exists(Policy policy,
ExistsArrayListener listener,
Key[] keys)
Asynchronously check if multiple record keys exist in one batch call.
|
void |
AsyncClient.exists(Policy policy,
ExistsListener listener,
Key key)
Asynchronously determine if a record key exists.
|
void |
AsyncClient.exists(Policy policy,
ExistsSequenceListener listener,
Key[] keys)
Asynchronously check if multiple record keys exist in one batch call.
|
void |
AsyncClient.get(Policy policy,
RecordArrayListener listener,
Key[] keys)
Asynchronously read multiple records for specified keys in one batch call.
|
void |
AsyncClient.get(Policy policy,
RecordArrayListener listener,
Key[] keys,
String... binNames)
Asynchronously read multiple record headers and bins for specified keys in one batch call.
|
void |
AsyncClient.get(Policy policy,
RecordListener listener,
Key key)
Asynchronously read entire record for specified key.
|
void |
AsyncClient.get(Policy policy,
RecordListener listener,
Key key,
String... binNames)
Asynchronously read record header and bins for specified key.
|
void |
AsyncClient.get(Policy policy,
RecordSequenceListener listener,
Key[] keys)
Asynchronously read multiple records for specified keys in one batch call.
|
void |
AsyncClient.get(Policy policy,
RecordSequenceListener listener,
Key[] keys,
String... binNames)
Asynchronously read multiple record headers and bins for specified keys in one batch call.
|
void |
AsyncClient.getHeader(Policy policy,
RecordArrayListener listener,
Key[] keys)
Asynchronously read multiple record header data for specified keys in one batch call.
|
void |
AsyncClient.getHeader(Policy policy,
RecordListener listener,
Key key)
Asynchronously read record generation and expiration only for specified key.
|
void |
AsyncClient.getHeader(Policy policy,
RecordSequenceListener listener,
Key[] keys)
Asynchronously read multiple record header data for specified keys in one batch call.
|
void |
AsyncClient.operate(WritePolicy policy,
RecordListener listener,
Key key,
Operation... operations)
Asynchronously perform multiple read/write operations on a single key in one batch call.
|
void |
AsyncClient.prepend(WritePolicy policy,
WriteListener listener,
Key key,
Bin... bins)
Asynchronously prepend bin string values to existing record bin values.
|
void |
AsyncClient.put(WritePolicy policy,
WriteListener listener,
Key key,
Bin... bins)
Asynchronously write record bin(s).
|
void |
AsyncClient.scanAll(ScanPolicy policy,
RecordSequenceListener listener,
String namespace,
String setName,
String... binNames)
Asynchronously read all records in specified namespace and set.
|
void |
AsyncClient.touch(WritePolicy policy,
WriteListener listener,
Key key)
Asynchronously create record if it does not already exist.
|
Constructor and Description |
---|
AsyncClient(AsyncClientPolicy policy,
Host... hosts)
Initialize asynchronous client with suitable hosts to seed the cluster map.
|
AsyncClient(AsyncClientPolicy policy,
String hostname,
int port)
Initialize asynchronous client.
|
AsyncClient(String hostname,
int port)
Initialize asynchronous client.
|
Modifier and Type | Method and Description |
---|---|
com.aerospike.client.cluster.Connection |
Node.getConnection(int timeoutMillis)
Get a socket connection from connection pool to the server node.
|
Modifier and Type | Method and Description |
---|---|
void |
LargeList.add(List<?> values)
Add values to the list.
|
void |
LargeSet.add(List<?> values)
Add values to the set.
|
void |
LargeList.add(Value... values)
Add values to list.
|
void |
LargeSet.add(Value... values)
Add values to the set.
|
void |
LargeList.add(Value value)
Add value to list.
|
void |
LargeSet.add(Value value)
Add a value to the set.
|
void |
LargeList.destroy()
Delete bin containing the list.
|
void |
LargeMap.destroy()
Delete bin containing the map.
|
void |
LargeSet.destroy()
Delete bin containing the set.
|
void |
LargeStack.destroy()
Delete bin containing the stack.
|
boolean |
LargeMap.exists(Value keyValue)
Check existence of key in the map.
|
boolean |
LargeSet.exists(Value value)
Check existence of value in the set.
|
List<?> |
LargeStack.filter(int peekCount,
String filterModule,
String filterName,
Value... filterArgs)
Select items from top of stack.
|
List<?> |
LargeList.filter(String filterModule,
String filterName,
Value... filterArgs)
Select values from list and apply specified Lua filter.
|
Map<?,?> |
LargeMap.filter(String filterModule,
String filterName,
Value... filterArgs)
Select items from map.
|
List<?> |
LargeSet.filter(String filterModule,
String filterName,
Value... filterArgs)
Select values from set and apply specified Lua filter.
|
List<?> |
LargeList.find(Value value)
Select values from list.
|
List<?> |
LargeList.findThenFilter(Value value,
String filterModule,
String filterName,
Value... filterArgs)
Select values from list and apply specified Lua filter.
|
Map<?,?> |
LargeMap.get(Value name)
Get value from map given name key.
|
Object |
LargeSet.get(Value value)
Select value from set.
|
int |
LargeList.getCapacity()
Return maximum number of entries in the list.
|
int |
LargeMap.getCapacity()
Return maximum number of entries for the map.
|
int |
LargeSet.getCapacity()
Return maximum number of entries in the set.
|
int |
LargeStack.getCapacity()
Return maximum number of entries for the stack.
|
Map<?,?> |
LargeList.getConfig()
Return map of list configuration parameters.
|
Map<?,?> |
LargeMap.getConfig()
Return map configuration parameters.
|
Map<?,?> |
LargeSet.getConfig()
Return map of set configuration parameters.
|
Map<?,?> |
LargeStack.getConfig()
Return map of stack configuration parameters.
|
List<?> |
LargeStack.peek(int peekCount)
Select items from top of stack.
|
void |
LargeStack.push(List<?> values)
Push values onto stack.
|
void |
LargeStack.push(Value... values)
Push values onto stack.
|
void |
LargeStack.push(Value value)
Push value onto stack.
|
void |
LargeMap.put(Map<?,?> map)
Add map values to map.
|
void |
LargeMap.put(Value name,
Value value)
Add entry to map.
|
List<?> |
LargeList.range(Value begin,
Value end)
Select a range of values from the large list.
|
List<?> |
LargeList.range(Value begin,
Value end,
String filterModule,
String filterName,
Value... filterArgs)
Select a range of values from the large list, then apply a Lua filter.
|
void |
LargeList.remove(List<?> values)
Delete values from list.
|
void |
LargeList.remove(Value value)
Delete value from list.
|
void |
LargeMap.remove(Value name)
Remove entry from map.
|
void |
LargeSet.remove(Value value)
Delete value from set.
|
int |
LargeList.remove(Value begin,
Value end)
Delete values from list between range.
|
List<?> |
LargeList.scan()
Return all objects in the list.
|
Map<?,?> |
LargeMap.scan()
Return all objects in the map.
|
List<?> |
LargeSet.scan()
Return list of all objects in the set.
|
List<?> |
LargeStack.scan()
Return list of all objects on the stack.
|
void |
LargeList.setCapacity(int capacity)
Set maximum number of entries in the list.
|
void |
LargeMap.setCapacity(int capacity)
Set maximum number of entries for the map.
|
void |
LargeSet.setCapacity(int capacity)
Set maximum number of entries in the set.
|
void |
LargeStack.setCapacity(int capacity)
Set maximum number of entries for the stack.
|
int |
LargeList.size()
Return size of list.
|
int |
LargeMap.size()
Return size of map.
|
int |
LargeSet.size()
Return size of set.
|
int |
LargeStack.size()
Return size of stack.
|
void |
LargeList.update(List<?> values)
Update/Add each value in values list depending if key exists or not.
|
void |
LargeList.update(Value... values)
Update/Add each value in array depending if key exists or not.
|
void |
LargeList.update(Value value)
Update value in list if key exists.
|
Modifier and Type | Method and Description |
---|---|
void |
DeleteListener.onFailure(AerospikeException exception)
This method is called when an asynchronous delete command fails.
|
void |
ExistsArrayListener.onFailure(AerospikeException exception)
This method is called when an asynchronous exists command fails.
|
void |
ExistsListener.onFailure(AerospikeException exception)
This method is called when an asynchronous exists command fails.
|
void |
ExistsSequenceListener.onFailure(AerospikeException exception)
This method is called when an asynchronous batch exists command fails.
|
void |
RecordArrayListener.onFailure(AerospikeException exception)
This method is called when an asynchronous batch get command fails.
|
void |
RecordListener.onFailure(AerospikeException exception)
This method is called when an asynchronous get or operate command fails.
|
void |
RecordSequenceListener.onFailure(AerospikeException exception)
This method is called when an asynchronous batch get or scan command fails.
|
void |
WriteListener.onFailure(AerospikeException exception)
This method is called when an asynchronous write command fails.
|
Modifier and Type | Method and Description |
---|---|
void |
RecordSequenceListener.onRecord(Key key,
Record record)
This method is called when an asynchronous record is received from the server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RecordSet.next()
Retrieve next record.
|
boolean |
ResultSet.next()
Retrieve next result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Task.isDone()
Has task completed.
|
void |
Task.waitTillComplete()
Wait for asynchronous task to complete using default sleep interval.
|
void |
Task.waitTillComplete(int sleepInterval)
Wait for asynchronous task to complete using given sleep interval.
|
Copyright © 2012–2015 Aerospike, Inc. All rights reserved.