PHP 클래스 Cassandra\Rows

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

공개 메소드들

메소드 설명
count ( ) : integer Returns the number of rows.
current ( ) : array Returns current row.
first ( ) : array | null Get the first row.
isLastPage ( ) : boolean Check for the last page when paging.
key ( ) : integer Returns current index.
next ( ) : void Advances the rows iterator by one.
nextPage ( float | null $timeout = null ) : Rows | null Get the next page of results.
nextPageAsync ( ) : cassandra\Future Get the next page of results asynchronously.
offsetExists ( integer $offset ) : boolean Returns existence of a given row.
offsetGet ( integer $offset ) : array | null Returns a row at given index.
offsetSet ( integer $offset, array $value ) : void Sets a row at given index.
offsetUnset ( integer $offset ) : void Removes a row at given index.
pagingStateToken ( ) : string Returns the raw paging state token.
rewind ( ) : void Resets the rows iterator.
valid ( ) : boolean Returns existence of more rows being available.

메소드 상세

count() 공개 메소드

Returns the number of rows.
또한 보기: Countable::count()
public count ( ) : integer
리턴 integer number of rows

current() 공개 메소드

Returns current row.
또한 보기: Iterator::current()
public current ( ) : array
리턴 array current row

first() 공개 메소드

Get the first row.
public first ( ) : array | null
리턴 array | null returns first row if any

isLastPage() 공개 메소드

Check for the last page when paging.
public isLastPage ( ) : boolean
리턴 boolean whether this is the last page or not

key() 공개 메소드

Returns current index.
또한 보기: Iterator::key()
public key ( ) : integer
리턴 integer index

next() 공개 메소드

Advances the rows iterator by one.
또한 보기: Iterator::next()
public next ( ) : void
리턴 void

nextPage() 공개 메소드

Get the next page of results.
public nextPage ( float | null $timeout = null ) : Rows | null
$timeout float | null
리턴 Rows | null loads and returns next result page

nextPageAsync() 공개 메소드

Get the next page of results asynchronously.
public nextPageAsync ( ) : cassandra\Future
리턴 cassandra\Future returns future of the next result page

offsetExists() 공개 메소드

Returns existence of a given row.
또한 보기: ArrayAccess::offsetExists()
public offsetExists ( integer $offset ) : boolean
$offset integer row index
리턴 boolean whether a row at a given index exists

offsetGet() 공개 메소드

Returns a row at given index.
또한 보기: ArrayAccess::offsetGet()
public offsetGet ( integer $offset ) : array | null
$offset integer row index
리턴 array | null row at a given index

offsetSet() 공개 메소드

Sets a row at given index.
또한 보기: ArrayAccess::offsetSet()
public offsetSet ( integer $offset, array $value ) : void
$offset integer row index
$value array row value
리턴 void

offsetUnset() 공개 메소드

Removes a row at given index.
또한 보기: ArrayAccess::offsetUnset()
public offsetUnset ( integer $offset ) : void
$offset integer row index
리턴 void

pagingStateToken() 공개 메소드

Returns the raw paging state token.
public pagingStateToken ( ) : string
리턴 string

rewind() 공개 메소드

Resets the rows iterator.
또한 보기: Iterator::rewind()
public rewind ( ) : void
리턴 void

valid() 공개 메소드

Returns existence of more rows being available.
또한 보기: Iterator::valid()
public valid ( ) : boolean
리턴 boolean whether there are more rows available for iteration