PHP 클래스 Aerospike\LDT\LDT

파일 보기 프로젝트 열기: aerospike/aerospike-client-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

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

보호된 메소드들

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

비공개 메소드들

메소드 설명
getModuleName ( ) : string Finds the name of the UDF module providing the functionality needed by the given LDT

메소드 상세

__construct() 보호된 메소드

Constructor for the abstract \Aerospike\LDT class. Inherited by LDT types.
또한 보기: errorno()
또한 보기: error()
protected __construct ( Aerospike $client, array $key, string $bin, integer $type )
$client Aerospike
$key array initialized with Aerospike::initKey()
$bin string name
$type integer of the LDT

config() 공개 메소드

Retrieves the LDT configuration data.
public config ( array &$config ) : integer
$config array will be updated with the configuration data
리턴 integer status code of the operation

destroy() 공개 메소드

Destroy the LDT at the key and bin the class was initialized to.
public destroy ( ) : integer
리턴 integer status code of the operation

error() 공개 메소드

Returns the error message for the previous operation.
public error ( ) : string
리턴 string

errorno() 공개 메소드

Returns the status code for the previous operation.
public errorno ( ) : integer
리턴 integer

isLDT() 공개 메소드

Checks whether there actually is an LDT at the key and bin the class was initialized with.
public isLDT ( ) : boolean
리턴 boolean

isValid() 공개 메소드

Validates whether the LDT at the specified key and bin is in good shape
public isValid ( ) : boolean
리턴 boolean

processStatusCode() 보호된 메소드

Process the operation status code into error number and message
protected processStatusCode ( integer $status )
$status integer code of the operation

setPageSize() 공개 메소드

Set the page size of the LDT
public setPageSize ( integer $size ) : integer
$size integer
리턴 integer status code of the operation

size() 공개 메소드

Sets $num_elements with the number of elements in the LDT.
public size ( integer &$num_elements ) : integer
$num_elements integer returned
리턴 integer status code of the operation

프로퍼티 상세

$bin 보호되어 있는 프로퍼티

The name of the bin within the recod that is an LDT
protected string $bin
리턴 string

$client 보호되어 있는 프로퍼티

The Aerospike client instance
protected Aerospike $client
리턴 Aerospike

$error 보호되어 있는 프로퍼티

The error message for the last operation
또한 보기: LDT::error()
protected string $error
리턴 string

$errorno 보호되어 있는 프로퍼티

The status code for the last operation
또한 보기: LDT::errorno()
protected int $errorno
리턴 integer

$key 보호되어 있는 프로퍼티

The key for the record containing the LDT
protected string $key
리턴 string

$module 보호되어 있는 프로퍼티

The name of the UDF module providing the functionality that this class wraps around
protected string $module
리턴 string

$type 보호되어 있는 프로퍼티

The type of LDT at the bin
protected string $type
리턴 string