PHP Class Cassandra\Rows

Inheritance: implements Iterator, implements Countable, implements ArrayAccess
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode Description
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.

Method Details

count() public méthode

Returns the number of rows.
See also: Countable::count()
public count ( ) : integer
Résultat integer number of rows

current() public méthode

Returns current row.
See also: Iterator::current()
public current ( ) : array
Résultat array current row

first() public méthode

Get the first row.
public first ( ) : array | null
Résultat array | null returns first row if any

isLastPage() public méthode

Check for the last page when paging.
public isLastPage ( ) : boolean
Résultat boolean whether this is the last page or not

key() public méthode

Returns current index.
See also: Iterator::key()
public key ( ) : integer
Résultat integer index

next() public méthode

Advances the rows iterator by one.
See also: Iterator::next()
public next ( ) : void
Résultat void

nextPage() public méthode

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

nextPageAsync() public méthode

Get the next page of results asynchronously.
public nextPageAsync ( ) : cassandra\Future
Résultat cassandra\Future returns future of the next result page

offsetExists() public méthode

Returns existence of a given row.
See also: ArrayAccess::offsetExists()
public offsetExists ( integer $offset ) : boolean
$offset integer row index
Résultat boolean whether a row at a given index exists

offsetGet() public méthode

Returns a row at given index.
See also: ArrayAccess::offsetGet()
public offsetGet ( integer $offset ) : array | null
$offset integer row index
Résultat array | null row at a given index

offsetSet() public méthode

Sets a row at given index.
See also: ArrayAccess::offsetSet()
public offsetSet ( integer $offset, array $value ) : void
$offset integer row index
$value array row value
Résultat void

offsetUnset() public méthode

Removes a row at given index.
See also: ArrayAccess::offsetUnset()
public offsetUnset ( integer $offset ) : void
$offset integer row index
Résultat void

pagingStateToken() public méthode

Returns the raw paging state token.
public pagingStateToken ( ) : string
Résultat string

rewind() public méthode

Resets the rows iterator.
See also: Iterator::rewind()
public rewind ( ) : void
Résultat void

valid() public méthode

Returns existence of more rows being available.
See also: Iterator::valid()
public valid ( ) : boolean
Résultat boolean whether there are more rows available for iteration