PHP Class Elastica\Bulk

Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Protected Properties

Свойство Type Description
$_actions Elastica\Bulk\Action[]
$_client Client
$_index string | null
$_requestParams request parameters to the bulk api
$_type string | null

Méthodes publiques

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

Méthodes protégées

Méthode Description
_processResponse ( Response $response ) : ResponseSet

Method Details

__construct() public méthode

public __construct ( Client $client )
$client Client

__toString() public méthode

public __toString ( ) : string
Résultat string

_processResponse() protected méthode

protected _processResponse ( Response $response ) : ResponseSet
$response Response
Résultat Elastica\Bulk\ResponseSet

addAction() public méthode

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

addActions() public méthode

public addActions ( array $actions )
$actions array

addData() public méthode

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

addDocument() public méthode

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

addDocuments() public méthode

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

addRawData() public méthode

public addRawData ( array $data )
$data array

addScript() public méthode

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

addScripts() public méthode

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

getActions() public méthode

public getActions ( ) : Action[]
Résultat Elastica\Bulk\Action[]

getIndex() public méthode

public getIndex ( ) : string | null
Résultat string | null

getPath() public méthode

public getPath ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string | null
Résultat string | null

hasIndex() public méthode

public hasIndex ( ) : boolean
Résultat boolean

hasType() public méthode

public hasType ( ) : boolean
Résultat boolean

send() public méthode

public send ( ) : ResponseSet
Résultat Elastica\Bulk\ResponseSet

setIndex() public méthode

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

setRequestParam() public méthode

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() public méthode

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

setType() public méthode

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

toArray() public méthode

public toArray ( ) : array
Résultat array

toString() public méthode

public toString ( ) : string
Résultat string

Property Details

$_actions protected_oe property

protected Action[],Elastica\Bulk $_actions
Résultat Elastica\Bulk\Action[]

$_client protected_oe property

protected Client,Elastica $_client
Résultat Client

$_index protected_oe property

protected string|null $_index
Résultat string | null

$_requestParams protected_oe property

request parameters to the bulk api
protected $_requestParams

$_type protected_oe property

protected string|null $_type
Résultat string | null