ErrorUnknown
ErrorUnknown
Point of interaction between client and neo4j server
addToIndex(\Everyman\Neo4j\Index $index, \Everyman\Neo4j\PropertyContainer $entity, string $key, string $value) : boolean
Add an entity to an index
\Everyman\Neo4j\Index | $index | |
\Everyman\Neo4j\PropertyContainer | $entity | |
string | $key | |
string | $value |
commitBatch(\Everyman\Neo4j\Batch $batch) : boolean
Commit a batch of operations
\Everyman\Neo4j\Batch | $batch |
true on success
deleteIndex(\Everyman\Neo4j\Index $index) : boolean
Delete the given index
\Everyman\Neo4j\Index | $index |
deleteNode(\Everyman\Neo4j\Node $node) : boolean
Delete the given node
\Everyman\Neo4j\Node | $node |
deleteRelationship(\Everyman\Neo4j\Relationship $relationship) : boolean
Delete the given relationship
\Everyman\Neo4j\Relationship | $relationship |
endBatch() : \Everyman\Neo4j\Client
Detach the current open batch.
The batch can still be committed via the batch returned by Client::startBatch()
executeCypherQuery(\Everyman\Neo4j\Cypher\Query $query) : \Everyman\Neo4j\Query\ResultSet
Execute the given Cypher query and return the result
\Everyman\Neo4j\Cypher\Query | $query | A Cypher query, or a query template. |
executeGremlinQuery(\Everyman\Neo4j\Gremlin\Query $query) : \Everyman\Neo4j\Query\ResultSet
Execute the given Gremlin query and return the result
\Everyman\Neo4j\Gremlin\Query | $query |
executePagedTraversal(\Everyman\Neo4j\Pager $pager) : array
Execute a paged traversal and return the result
\Everyman\Neo4j\Pager | $pager |
executeTraversal(\Everyman\Neo4j\Traversal $traversal, \Everyman\Neo4j\Node $startNode, string $returnType) : array
Execute the given traversal and return the result
\Everyman\Neo4j\Traversal | $traversal | |
\Everyman\Neo4j\Node | $startNode | |
string | $returnType |
getEntityCache() : \Everyman\Neo4j\Cache\EntityCache
Get the cache
getEntityMapper() : \Everyman\Neo4j\EntityMapper
Get the entity mapper
getNode(integer $id, boolean $force) : \Everyman\Neo4j\Node
Get the requested node Using the $force option disables the check of whether or not the node exists and will return a Node with the given id even if it does not.
integer | $id | |
boolean | $force |
getNodeRelationships(\Everyman\Neo4j\Node $node, mixed $types, string $dir) : mixed
Get all relationships on a node matching the criteria
\Everyman\Neo4j\Node | $node | |
mixed | $types | a string or array of strings |
string | $dir |
false on error, else an array of Relationship objects
getPaths(\Everyman\Neo4j\PathFinder $finder) : array
Get an array of paths matching the finder's criteria
\Everyman\Neo4j\PathFinder | $finder |
getReferenceNode() : \Everyman\Neo4j\Node
Retrieve the reference node (id: 0) from the server
getRelationship(integer $id, boolean $force) : \Everyman\Neo4j\Relationship
Get the requested relationship Using the $force option disables the check of whether or not the relationship exists and will return a Relationship with the given id even if it does not.
integer | $id | |
boolean | $force |
getTransport() : \Everyman\Neo4j\Transport
Get the transport
loadNode(\Everyman\Neo4j\Node $node) : boolean
Load the given node with data from the server
\Everyman\Neo4j\Node | $node |
loadRelationship(\Everyman\Neo4j\Relationship $rel) : boolean
Load the given relationship with data from the server
\Everyman\Neo4j\Relationship | $rel |
makeNode() : \Everyman\Neo4j\Node
Create a new node object bound to this client
makeRelationship() : \Everyman\Neo4j\Relationship
Create a new relationship object bound to this client
queryIndex(\Everyman\Neo4j\Index $index, string $query) : array
Query an index using a query string.
The default query language in Neo4j is Lucene
\Everyman\Neo4j\Index | $index | |
string | $query |
removeFromIndex(\Everyman\Neo4j\Index $index, \Everyman\Neo4j\PropertyContainer $entity, string $key, string $value) : boolean
Remove an entity from an index If $value is not given, all reference of the entity for the key are removed.
If $key is not given, all reference of the entity are removed.
\Everyman\Neo4j\Index | $index | |
\Everyman\Neo4j\PropertyContainer | $entity | |
string | $key | |
string | $value |
saveIndex(\Everyman\Neo4j\Index $index) : boolean
Save the given index
\Everyman\Neo4j\Index | $index |
saveNode(\Everyman\Neo4j\Node $node) : boolean
Save the given node
\Everyman\Neo4j\Node | $node |
saveRelationship(\Everyman\Neo4j\Relationship $rel) : boolean
Save the given relationship
\Everyman\Neo4j\Relationship | $rel |
searchIndex(\Everyman\Neo4j\Index $index, string $key, string $value) : array
Search an index for matching entities
\Everyman\Neo4j\Index | $index | |
string | $key | |
string | $value |
setEntityCache(\Everyman\Neo4j\Cache\EntityCache $cache)
Set the cache to use
\Everyman\Neo4j\Cache\EntityCache | $cache |
setEntityMapper(\Everyman\Neo4j\EntityMapper $mapper)
Set the entity mapper to use
\Everyman\Neo4j\EntityMapper | $mapper |
setTransport(\Everyman\Neo4j\Transport $transport)
Set the transport to use
\Everyman\Neo4j\Transport | $transport |
startBatch() : \Everyman\Neo4j\Batch
Start an implicit batch
Any data manipulation calls that occur between this call and the subsequent Client::commitBatch() call will be wrapped in a batch operation.
runCommand(\Everyman\Neo4j\Command $command) : mixed
Run a command that will talk to the transport
\Everyman\Neo4j\Command | $command |