Property | Type | Description | |
---|---|---|---|
$bin | string | The name of the bin within the recod that is an LDT | |
$client | Aerospike | The Aerospike client instance | |
$error | string | The error message for the last operation | |
$errorno | integer | The status code for the last operation | |
$key | string | The key for the record containing the LDT | |
$module | string | The name of the UDF module providing the functionality that this class wraps around | |
$type | string | The type of LDT at the bin |
Method | Description | |
---|---|---|
config ( array &$config ) : integer | Retrieves the LDT configuration data. | |
destroy ( ) : integer | Destroy the LDT at the key and bin the class was initialized to. | |
error ( ) : string | Returns the error message for the previous operation. | |
errorno ( ) : integer | Returns the status code for the previous operation. | |
isLDT ( ) : boolean | Checks whether there actually is an LDT at the key and bin the class was initialized with. | |
isValid ( ) : boolean | Validates whether the LDT at the specified key and bin is in good shape | |
setPageSize ( integer $size ) : integer | Set the page size of the LDT | |
size ( integer &$num_elements ) : integer | Sets $num_elements with the number of elements in the LDT. |
Method | Description | |
---|---|---|
__construct ( Aerospike $client, array $key, string $bin, integer $type ) | Constructor for the abstract \Aerospike\LDT class. Inherited by LDT types. | |
processStatusCode ( integer $status ) | Process the operation status code into error number and message |
Method | Description | |
---|---|---|
getModuleName ( ) : string | Finds the name of the UDF module providing the functionality needed by the given LDT |
protected processStatusCode ( integer $status ) | ||
$status | integer | code of the operation |
public setPageSize ( integer $size ) : integer | ||
$size | integer | |
return | integer | status code of the operation |
protected string $bin | ||
return | string |
protected Aerospike $client | ||
return | Aerospike |
protected string $error | ||
return | string |
protected int $errorno | ||
return | integer |
protected string $key | ||
return | string |
protected string $module | ||
return | string |