PHP Класс Elastica\Bulk

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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