PHP 클래스 Cassandra\Tuple

상속: implements cassandra\Value, implements Countable, implements Iterator
파일 보기 프로젝트 열기: datastax/php-driver 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $types ) Creates a new tuple with the given types.
count ( ) : integer Total number of elements in this tuple
current ( ) : mixed Current element for iteration
get ( integer $index ) : mixed Retrieves the value at a given index.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
rewind ( ) : void Rewind internal iterator
set ( integer $index, mixed $value ) : void Sets the value at index in this tuple .
type ( ) : cassandra\Type The type of this tuple.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this tuple.

메소드 상세

__construct() 공개 메소드

Creates a new tuple with the given types.
public __construct ( array $types )
$types array Array of types

count() 공개 메소드

Total number of elements in this tuple
public count ( ) : integer
리턴 integer count

current() 공개 메소드

Current element for iteration
public current ( ) : mixed
리턴 mixed current element

get() 공개 메소드

Retrieves the value at a given index.
public get ( integer $index ) : mixed
$index integer Index
리턴 mixed Value or null

key() 공개 메소드

Current key for iteration
public key ( ) : integer
리턴 integer current key

next() 공개 메소드

Move internal iterator forward
public next ( ) : void
리턴 void

rewind() 공개 메소드

Rewind internal iterator
public rewind ( ) : void
리턴 void

set() 공개 메소드

Sets the value at index in this tuple .
public set ( integer $index, mixed $value ) : void
$index integer Index
$value mixed Value or null
리턴 void

type() 공개 메소드

The type of this tuple.
public type ( ) : cassandra\Type
리턴 cassandra\Type

valid() 공개 메소드

Check whether a current value exists
public valid ( ) : boolean
리턴 boolean

values() 공개 메소드

Array of values in this tuple.
public values ( ) : array
리턴 array values