public interface EntityReadOperations
| Modifier and Type | Method and Description |
|---|---|
Iterator<Property> |
nodeGetAllProperties(long nodeId) |
Iterator<Long> |
nodeGetLabels(long nodeId)
Returns all labels set on node with id
nodeId. |
Property |
nodeGetProperty(long nodeId,
long propertyKeyId) |
Iterator<Long> |
nodeGetPropertyKeys(long nodeId)
Return all property keys associated with a node.
|
boolean |
nodeHasLabel(long nodeId,
long labelId)
Checks if a node is labeled with a certain label or not.
|
boolean |
nodeHasProperty(long nodeId,
long propertyKeyId)
Returns true if node has the property given it's property key id for the node with the given node id
|
Iterator<Long> |
nodesGetForLabel(long labelId) |
Iterator<Long> |
nodesGetFromIndexLookup(org.neo4j.kernel.impl.api.index.IndexDescriptor index,
Object value)
Returns an iterable with the matched nodes.
|
Iterator<Property> |
relationshipGetAllProperties(long relationshipId) |
Property |
relationshipGetProperty(long relationshipId,
long propertyKeyId) |
Iterator<Long> |
relationshipGetPropertyKeys(long relationshipId)
Return all property keys associated with a relationship.
|
boolean |
relationshipHasProperty(long relationshipId,
long propertyKeyId) |
Iterator<Long> nodesGetForLabel(long labelId)
labelId - the label id of the label that returned nodes are guaranteed to haveIterator<Long> nodesGetFromIndexLookup(org.neo4j.kernel.impl.api.index.IndexDescriptor index, Object value) throws IndexNotFoundKernelException
IndexNotFoundKernelException - if no such index found.boolean nodeHasLabel(long nodeId,
long labelId)
throws EntityNotFoundException
true if the node is labeled with the label, otherwise false.
Label ids are retrieved from KeyWriteOperations.labelGetOrCreateForName(String) or
KeyReadOperations.labelGetForName(String).EntityNotFoundExceptionIterator<Long> nodeGetLabels(long nodeId) throws EntityNotFoundException
nodeId.
If the node has no labels an empty Iterable will be returned.EntityNotFoundExceptionProperty nodeGetProperty(long nodeId, long propertyKeyId) throws PropertyKeyIdNotFoundException, EntityNotFoundException
Property relationshipGetProperty(long relationshipId, long propertyKeyId) throws PropertyKeyIdNotFoundException, EntityNotFoundException
boolean nodeHasProperty(long nodeId,
long propertyKeyId)
throws PropertyKeyIdNotFoundException,
EntityNotFoundException
boolean relationshipHasProperty(long relationshipId,
long propertyKeyId)
throws PropertyKeyIdNotFoundException,
EntityNotFoundException
Iterator<Long> nodeGetPropertyKeys(long nodeId)
Iterator<Long> relationshipGetPropertyKeys(long relationshipId)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.