public class ReadStatement extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_SUCH_LABEL |
static long |
NO_SUCH_PROPERTY_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Iterator<UniquenessConstraint> |
constraintsGetAll()
Get all constraints.
|
Iterator<UniquenessConstraint> |
constraintsGetForLabel(long labelId)
Get all constraints applicable to label.
|
Iterator<UniquenessConstraint> |
constraintsGetForLabelAndPropertyKey(long labelId,
long propertyKeyId)
Get all constraints applicable to label and propertyKey.
|
Iterator<SafeProperty> |
graphGetAllProperties() |
Property |
graphGetProperty(long propertyKeyId) |
Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> |
indexesGetAll()
Returns all indexes.
|
Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> |
indexesGetForLabel(long labelId)
Get all indexes for a label.
|
org.neo4j.kernel.impl.api.index.IndexDescriptor |
indexesGetForLabelAndPropertyKey(long labelId,
long propertyKey)
Returns the index rule for the given labelId and propertyKey.
|
String |
indexGetFailure(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor)
Returns the failure description of a failed index.
|
InternalIndexState |
indexGetState(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor)
Retrieve the state of an index.
|
long |
labelGetForName(String labelName)
Returns a label id for a label name.
|
String |
labelGetName(long labelId)
Returns the label name for the given label id.
|
long |
labelGetOrCreateForName(String labelName)
Returns a label id for a label name.
|
Iterator<org.neo4j.kernel.impl.core.Token> |
labelsGetAllTokens()
Returns the labels currently stored in the database *
|
Iterator<SafeProperty> |
nodeGetAllProperties(long nodeId) |
org.neo4j.kernel.impl.api.PrimitiveLongIterator |
nodeGetLabels(long nodeId)
Returns all labels set on node with id
nodeId. |
Property |
nodeGetProperty(long nodeId,
long propertyKeyId) |
boolean |
nodeHasLabel(long nodeId,
long labelId)
Checks if a node is labeled with a certain label or not.
|
org.neo4j.kernel.impl.api.PrimitiveLongIterator |
nodesGetForLabel(long labelId) |
org.neo4j.kernel.impl.api.PrimitiveLongIterator |
nodesGetFromIndexLookup(org.neo4j.kernel.impl.api.index.IndexDescriptor index,
Object value)
Returns an iterable with the matched nodes.
|
long |
propertyKeyGetForName(String propertyKeyName)
Returns a property key id for the given property key.
|
String |
propertyKeyGetName(long propertyKeyId)
Returns the name of a property given its property key id
|
long |
propertyKeyGetOrCreateForName(String propertyKeyName)
Returns a property key id for a property key.
|
Iterator<SafeProperty> |
relationshipGetAllProperties(long relationshipId) |
Property |
relationshipGetProperty(long relationshipId,
long propertyKeyId) |
long |
relationshipTypeGetForName(String relationshipTypeName) |
String |
relationshipTypeGetName(long relationshipTypeId) |
long |
relationshipTypeGetOrCreateForName(String relationshipTypeName) |
<K,V> V |
schemaStateGetOrCreate(K key,
Function<K,V> creator) |
Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> |
uniqueIndexesGetAll()
Returns all constraint indexes.
|
Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> |
uniqueIndexesGetForLabel(long labelId)
Get all constraint indexes for a label.
|
public static final long NO_SUCH_LABEL
public static final long NO_SUCH_PROPERTY_KEY
public void close()
close in interface AutoCloseablepublic org.neo4j.kernel.impl.api.PrimitiveLongIterator nodesGetForLabel(long labelId)
labelId - the label id of the label that returned nodes are guaranteed to havepublic org.neo4j.kernel.impl.api.PrimitiveLongIterator nodesGetFromIndexLookup(org.neo4j.kernel.impl.api.index.IndexDescriptor index, Object value) throws IndexNotFoundKernelException
IndexNotFoundKernelException - if no such index found.public boolean nodeHasLabel(long nodeId,
long labelId)
throws EntityNotFoundException
true if the node is labeled with the label, otherwise false.EntityNotFoundExceptionpublic org.neo4j.kernel.impl.api.PrimitiveLongIterator nodeGetLabels(long nodeId) throws EntityNotFoundException
nodeId.
If the node has no labels an empty Iterable will be returned.EntityNotFoundExceptionpublic Property nodeGetProperty(long nodeId, long propertyKeyId) throws EntityNotFoundException
EntityNotFoundExceptionpublic Property relationshipGetProperty(long relationshipId, long propertyKeyId) throws EntityNotFoundException
EntityNotFoundExceptionpublic Property graphGetProperty(long propertyKeyId)
public Iterator<SafeProperty> nodeGetAllProperties(long nodeId) throws EntityNotFoundException
EntityNotFoundExceptionpublic Iterator<SafeProperty> relationshipGetAllProperties(long relationshipId) throws EntityNotFoundException
EntityNotFoundExceptionpublic Iterator<SafeProperty> graphGetAllProperties()
public org.neo4j.kernel.impl.api.index.IndexDescriptor indexesGetForLabelAndPropertyKey(long labelId, long propertyKey) throws SchemaRuleNotFoundException
SchemaRuleNotFoundExceptionpublic Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> indexesGetForLabel(long labelId)
public Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> indexesGetAll()
public Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> uniqueIndexesGetForLabel(long labelId)
public Iterator<org.neo4j.kernel.impl.api.index.IndexDescriptor> uniqueIndexesGetAll()
public InternalIndexState indexGetState(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws IndexNotFoundKernelException
IndexNotFoundKernelExceptionpublic String indexGetFailure(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws IndexNotFoundKernelException
IndexNotFoundKernelExceptionpublic Iterator<UniquenessConstraint> constraintsGetForLabelAndPropertyKey(long labelId, long propertyKeyId)
UniquenessConstraint
for the time being.public Iterator<UniquenessConstraint> constraintsGetForLabel(long labelId)
UniquenessConstraint
for the time being.public Iterator<UniquenessConstraint> constraintsGetAll()
UniquenessConstraint
for the time being.public long labelGetForName(String labelName)
NO_SUCH_LABEL will be returned.public String labelGetName(long labelId) throws LabelNotFoundKernelException
LabelNotFoundKernelExceptionpublic long propertyKeyGetForName(String propertyKeyName)
NO_SUCH_PROPERTY_KEY will be returned.public String propertyKeyGetName(long propertyKeyId) throws PropertyKeyIdNotFoundKernelException
public Iterator<org.neo4j.kernel.impl.core.Token> labelsGetAllTokens()
public long relationshipTypeGetForName(String relationshipTypeName)
public String relationshipTypeGetName(long relationshipTypeId) throws RelationshipTypeIdNotFoundKernelException
public long labelGetOrCreateForName(String labelName) throws IllegalTokenNameException, TooManyLabelsException
public long propertyKeyGetOrCreateForName(String propertyKeyName) throws IllegalTokenNameException
IllegalTokenNameExceptionpublic long relationshipTypeGetOrCreateForName(String relationshipTypeName) throws IllegalTokenNameException
IllegalTokenNameExceptionpublic <K,V> V schemaStateGetOrCreate(K key,
Function<K,V> creator)
Copyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.