PHP 클래스 Aerospike\LDT\LList

상속: extends LDT
파일 보기 프로젝트 열기: aerospike/aerospike-client-php

공개 메소드들

메소드 설명
__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().

메소드 상세

__construct() 공개 메소드

Constructor for the \Aerospike\LDT\LList class.
또한 보기: LDT::__construct()
public __construct ( Aerospike $client, array $key, string $bin )
$client Aerospike
$key array initialized with Aerospike::initKey()
$bin string name

add() 공개 메소드

The elements added must be consistently the same type (string, integer, array).
public add ( integer | string | array $value ) : integer
$value integer | string | array
리턴 integer status code of the operation

addMany() 공개 메소드

The elements added must be consistently the same type (string, integer, array).
public addMany ( array $values ) : integer
$values array
리턴 integer status code of the operation

exists() 공개 메소드

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used for comparison.
public exists ( integer | string $value, boolean &$res ) : integer
$value integer | string
$res boolean
리턴 integer status code of the operation

existsMany() 공개 메소드

The elements checked must be consistently the same type (string, integer, array).
public existsMany ( array $values ) : integer
$values array
리턴 integer status code of the operation

find() 공개 메소드

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used for comparison. An optional UDF filter function can be applied to the elements found. The filter function returns nil to filter out the element, otherwise it may transform the element before returning it.
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
리턴 integer status code of the operation

findFirst() 공개 메소드

An optional UDF filter function can be applied to the elements found. The filter function returns nil to filter out the element, otherwise it may transform the element before returning it.
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
리턴 integer status code of the operation

findLast() 공개 메소드

An optional UDF filter function can be applied to the elements found. The filter function returns nil to filter out the element, otherwise it may transform the element before returning it.
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
리턴 integer status code of the operation

findRange() 공개 메소드

A null $min gets all elements less than or equal to $max. A null $max gets all elements greater than or equal to $min. An optional UDF filter function can be applied to the elements found. The filter function returns nil to filter out the element, otherwise it may transform the element before returning it.
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
리턴 integer status code of the operation

remove() 공개 메소드

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used to identify the element which is to be removed.
public remove ( integer | string $value ) : integer
$value integer | string
리턴 integer status code of the operation

removeMany() 공개 메소드

The elements removed must be consistently the same type (string, integer, array).
public removeMany ( array $values ) : integer
$values array
리턴 integer status code of the operation

removeRange() 공개 메소드

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used to identify the elements which are to be removed. A null $min gets all elements less than or equal to $max. A null $max gets all elements greater than or equal to $min.
public removeRange ( integer | string | null $min = null, integer | string | null $max = null ) : integer
$min integer | string | null
$max integer | string | null
리턴 integer status code of the operation

scan() 공개 메소드

An optional UDF filter function can be applied to the elements found. The filter function returns nil to filter out the element, otherwise it may transform the element before returning it.
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
리턴 integer status code of the operation

update() 공개 메소드

The elements must be consistently the same type (string, integer, array).
public update ( integer | string | array $value ) : integer
$value integer | string | array
리턴 integer status code of the operation

updateMany() 공개 메소드

The elements updated must be consistently the same type (string, integer, array).
public updateMany ( array $values ) : integer
$values array
리턴 integer status code of the operation