PHP 클래스 Elastica\Bulk

파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_actions Elastica\Bulk\Action[]
$_client Client
$_index string | null
$_requestParams request parameters to the bulk api
$_type string | null

공개 메소드들

메소드 설명
__construct ( Client $client )
__toString ( ) : string
addAction ( Action $action )
addActions ( array $actions )
addData ( Elastica\Script\AbstractScript | Document | array $data, string $opType = null )
addDocument ( Document $document, string $opType = null )
addDocuments ( array $documents, string $opType = null )
addRawData ( array $data )
addScript ( Elastica\Script\AbstractScript $script, string $opType = null )
addScripts ( array $scripts, string $opType = null )
getActions ( ) : Action[]
getIndex ( ) : string | null
getPath ( ) : string
getType ( ) : string | null
hasIndex ( ) : boolean
hasType ( ) : boolean
send ( ) : ResponseSet
setIndex ( string | Index $index )
setRequestParam ( string $name, string $value ) Set a url parameter on the request bulk request.
setShardTimeout ( string $time ) Set the amount of time that the request will wait the shards to come on line.
setType ( string | Type $type )
toArray ( ) : array
toString ( ) : string

보호된 메소드들

메소드 설명
_processResponse ( Response $response ) : ResponseSet

메소드 상세

__construct() 공개 메소드

public __construct ( Client $client )
$client Client

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

_processResponse() 보호된 메소드

protected _processResponse ( Response $response ) : ResponseSet
$response Response
리턴 Elastica\Bulk\ResponseSet

addAction() 공개 메소드

public addAction ( Action $action )
$action Elastica\Bulk\Action

addActions() 공개 메소드

public addActions ( array $actions )
$actions array

addData() 공개 메소드

public addData ( Elastica\Script\AbstractScript | Document | array $data, string $opType = null )
$data Elastica\Script\AbstractScript | Document | array
$opType string

addDocument() 공개 메소드

public addDocument ( Document $document, string $opType = null )
$document Document
$opType string

addDocuments() 공개 메소드

public addDocuments ( array $documents, string $opType = null )
$documents array
$opType string

addRawData() 공개 메소드

public addRawData ( array $data )
$data array

addScript() 공개 메소드

public addScript ( Elastica\Script\AbstractScript $script, string $opType = null )
$script Elastica\Script\AbstractScript
$opType string

addScripts() 공개 메소드

public addScripts ( array $scripts, string $opType = null )
$scripts array
$opType string

getActions() 공개 메소드

public getActions ( ) : Action[]
리턴 Elastica\Bulk\Action[]

getIndex() 공개 메소드

public getIndex ( ) : string | null
리턴 string | null

getPath() 공개 메소드

public getPath ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : string | null
리턴 string | null

hasIndex() 공개 메소드

public hasIndex ( ) : boolean
리턴 boolean

hasType() 공개 메소드

public hasType ( ) : boolean
리턴 boolean

send() 공개 메소드

public send ( ) : ResponseSet
리턴 Elastica\Bulk\ResponseSet

setIndex() 공개 메소드

public setIndex ( string | Index $index )
$index string | Index

setRequestParam() 공개 메소드

Set a url parameter on the request bulk request.
public setRequestParam ( string $name, string $value )
$name string name of the parameter
$value string value of the parameter

setShardTimeout() 공개 메소드

Requires Elasticsearch version >= 0.90.8.
public setShardTimeout ( string $time )
$time string timeout in Elasticsearch time format

setType() 공개 메소드

public setType ( string | Type $type )
$type string | Type

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

toString() 공개 메소드

public toString ( ) : string
리턴 string

프로퍼티 상세

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

protected Action[],Elastica\Bulk $_actions
리턴 Elastica\Bulk\Action[]

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

protected Client,Elastica $_client
리턴 Client

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

protected string|null $_index
리턴 string | null

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

request parameters to the bulk api
protected $_requestParams

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

protected string|null $_type
리턴 string | null