PHP Класс Cassandra\Rows

Наследование: implements Iterator, implements Countable, implements ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
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