$client
$client :
A set of operations expected to succeed (or fail) atomically
__construct(\Everyman\Neo4j\Client $client)
Build the batch and set its client
\Everyman\Neo4j\Client | $client |
addToIndex(\Everyman\Neo4j\Index $index, \Everyman\Neo4j\PropertyContainer $entity, string $key, string $value) : integer
Add the given entity to the given index with the given key/value
\Everyman\Neo4j\Index | $index | |
\Everyman\Neo4j\PropertyContainer | $entity | |
string | $key | |
string | $value |
delete(\Everyman\Neo4j\PropertyContainer $entity) : integer
Add an entity to the batch to delete
\Everyman\Neo4j\PropertyContainer | $entity |
getClient() : \Everyman\Neo4j\Client
Get the batch's client
removeFromIndex(\Everyman\Neo4j\Index $index, \Everyman\Neo4j\PropertyContainer $entity, string $key, string $value) : integer
Remove the given entity from the given index with the given key/value
\Everyman\Neo4j\Index | $index | |
\Everyman\Neo4j\PropertyContainer | $entity | |
string | $key | |
string | $value |
reserve(integer $opId) : mixed
Reserve an operation to prevent it from being double-committed Once an operation has been reserved, future reserve calls will return false, indicating it has already been reserved.
This is mostly useful during commit to prevent an operation being sent twice
integer | $opId |
array operation if not yet reserved, false otherwise
save(\Everyman\Neo4j\PropertyContainer $entity) : integer
Add an entity to the batch to save
\Everyman\Neo4j\PropertyContainer | $entity |
addOperation(\Everyman\Neo4j\Batch\Operation $operation) : integer
Add an operation to the batch
\Everyman\Neo4j\Batch\Operation | $operation |
operation index