PHP 클래스 Cassandra\Collection

상속: implements Countable, implements Iterator
파일 보기 프로젝트 열기: datastax/php-driver

공개 메소드들

메소드 설명
__construct ( cassandra\Type $type ) Creates a new collection of a given type.
add ( $value ) : integer Adds one or more values to this collection.
count ( ) : integer Total number of elements in this collection
current ( ) : mixed Current element for iteration
find ( mixed $value ) : integer Finds index of a value in this collection.
get ( integer $index ) : mixed Retrieves the value at a given index.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
remove ( integer $index ) : boolean Deletes the value at a given index
rewind ( ) : void Rewind internal iterator
type ( ) : cassandra\Type The type of this collection.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this collection.

메소드 상세

__construct() 공개 메소드

Creates a new collection of a given type.
public __construct ( cassandra\Type $type )
$type cassandra\Type

add() 공개 메소드

Adds one or more values to this collection.
public add ( $value ) : integer
리턴 integer total number of values in this collection

count() 공개 메소드

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

current() 공개 메소드

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

find() 공개 메소드

Finds index of a value in this collection.
public find ( mixed $value ) : integer
$value mixed Value
리턴 integer Index or null

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

remove() 공개 메소드

Deletes the value at a given index
public remove ( integer $index ) : boolean
$index integer Index
리턴 boolean Whether the value at a given index is correctly removed

rewind() 공개 메소드

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

type() 공개 메소드

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

valid() 공개 메소드

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

values() 공개 메소드

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