PHP 클래스 Predis\Collection\Iterator\CursorBasedIterator

Given their incremental nature with multiple fetches, these kind of iterators offer limited guarantees about the returned elements because the collection can change several times during the iteration process.
또한 보기: http://redis.io/commands/scan
저자: Daniele Alessandri ([email protected])
상속: implements Iterator
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$client
$count
$current
$cursor
$elements
$fetchmore
$match
$position
$valid

공개 메소드들

메소드 설명
__construct ( Predis\ClientInterface $client, string $match = null, integer $count = null )
current ( )
key ( )
next ( )
rewind ( )
valid ( )

보호된 메소드들

메소드 설명
executeCommand ( ) : array Fetches a new set of elements from the remote collection, effectively advancing the iteration process.
extractNext ( ) Extracts next values for key() and current().
fetch ( ) Populates the local buffer of elements fetched from the server during the iteration.
getScanOptions ( ) : array Returns an array of options for the SCAN command.
requiredCommand ( Predis\ClientInterface $client, string $commandID ) Ensures that the client supports the specified Redis command required to fetch elements from the server to perform the iteration.
reset ( ) Resets the inner state of the iterator.

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\ClientInterface $client, string $match = null, integer $count = null )
$client Predis\ClientInterface Client connected to Redis.
$match string Pattern to match during the server-side iteration.
$count integer Hint used by Redis to compute the number of results per iteration.

current() 공개 메소드

public current ( )

executeCommand() 추상적인 보호된 메소드

Fetches a new set of elements from the remote collection, effectively advancing the iteration process.
abstract protected executeCommand ( ) : array
리턴 array

extractNext() 보호된 메소드

Extracts next values for key() and current().
protected extractNext ( )

fetch() 보호된 메소드

Populates the local buffer of elements fetched from the server during the iteration.
protected fetch ( )

getScanOptions() 보호된 메소드

Returns an array of options for the SCAN command.
protected getScanOptions ( ) : array
리턴 array

key() 공개 메소드

public key ( )

next() 공개 메소드

public next ( )

requiredCommand() 보호된 메소드

Ensures that the client supports the specified Redis command required to fetch elements from the server to perform the iteration.
protected requiredCommand ( Predis\ClientInterface $client, string $commandID )
$client Predis\ClientInterface Client connected to Redis.
$commandID string Command ID.

reset() 보호된 메소드

Resets the inner state of the iterator.
protected reset ( )

rewind() 공개 메소드

public rewind ( )

valid() 공개 메소드

public valid ( )

프로퍼티 상세

$client 보호되어 있는 프로퍼티

protected $client

$count 보호되어 있는 프로퍼티

protected $count

$current 보호되어 있는 프로퍼티

protected $current

$cursor 보호되어 있는 프로퍼티

protected $cursor

$elements 보호되어 있는 프로퍼티

protected $elements

$fetchmore 보호되어 있는 프로퍼티

protected $fetchmore

$match 보호되어 있는 프로퍼티

protected $match

$position 보호되어 있는 프로퍼티

protected $position

$valid 보호되어 있는 프로퍼티

protected $valid