Method | Description | |
---|---|---|
__construct ( Aerospike $client, array $key, string $bin ) | Constructor for the \Aerospike\LDT\LList class. | |
add ( integer | string | array $value ) : integer | Adds a value of a supported type to the LList. | |
addMany ( array $values ) : integer | Adds values of a supported type to the LList. | |
exists ( integer | string $value, boolean &$res ) : integer | Finds whether any elements match the given value in the LList. | |
existsMany ( array $values ) : integer | Finds whether any elements match a list of values. | |
find ( integer | string $value, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | Finds the elements matching the given value in the LList. | |
findFirst ( integer $count, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | Finds the first N elements in the LList. | |
findLast ( integer $count, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | Finds the lasst N elements in the LList. | |
findRange ( integer | string | null $min, integer | string | null $max, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | Finds the elements whose key is between min and max. | |
remove ( integer | string $value ) : integer | Find and remove an element matching the given value in the LList. | |
removeMany ( array $values ) : integer | Removes several elements in the LList, the plural of remove(). | |
removeRange ( integer | string | null $min = null, integer | string | null $max = null ) : integer | Find and remove the elements from the LList matching a given range. | |
scan ( array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | Returns the elements in the LList | |
update ( integer | string | array $value ) : integer | Inserts a new element into the LList or replaces the matching one. | |
updateMany ( array $values ) : integer | Updates several elements in the LList, the plural of update(). |
public __construct ( Aerospike $client, array $key, string $bin ) | ||
$client | Aerospike | |
$key | array | initialized with Aerospike::initKey() |
$bin | string | name |
public existsMany ( array $values ) : integer | ||
$values | array | |
return | integer | status code of the operation |
public find ( integer | string $value, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | ||
$value | integer | string | |
$elements | array | matched |
$module | string | null | the name of the UDF module containing the optional filter function |
$function | string | null | name of the UDF filter function to apply |
$args | array | optional arguments for the filter function, passed as a map to the filter function |
return | integer | status code of the operation |
public findFirst ( integer $count, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | ||
$count | integer | |
$elements | array | matched |
$module | string | null | the name of the UDF module containing the optional filter function |
$function | string | null | name of the UDF filter function to apply |
$args | array | optional arguments for the filter function, passed as a map to the filter function |
return | integer | status code of the operation |
public findLast ( integer $count, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | ||
$count | integer | |
$elements | array | matched |
$module | string | null | the name of the UDF module containing the optional filter function |
$function | string | null | name of the UDF filter function to apply |
$args | array | optional arguments for the filter function, passed as a map to the filter function |
return | integer | status code of the operation |
public findRange ( integer | string | null $min, integer | string | null $max, array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | ||
$min | integer | string | null | |
$max | integer | string | null | |
$elements | array | matched |
$module | string | null | the name of the UDF module containing the optional filter function |
$function | string | null | name of the UDF filter function to apply |
$args | array | optional arguments for the filter function, passed as a map to the filter function |
return | integer | status code of the operation |
public removeMany ( array $values ) : integer | ||
$values | array | |
return | integer | status code of the operation |
public scan ( array &$elements, string | null $module = null, string | null $function = null, array $args = [] ) : integer | ||
$elements | array | returned |
$module | string | null | the name of the UDF module containing the optional filter function |
$function | string | null | name of the UDF filter function to apply |
$args | array | optional arguments for the filter function, passed as a map to the filter function |
return | integer | status code of the operation |
public updateMany ( array $values ) : integer | ||
$values | array | |
return | integer | status code of the operation |