public interface ReadableTransactionState
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TxStateVisitor visitor) |
ReadableDiffSets<Long> |
addedAndRemovedNodes()
Returns nodes that have been added and removed in this tx.
|
ReadableRelationshipDiffSets<Long> |
addedAndRemovedRelationships()
Returns rels that have been added and removed in this tx.
|
Iterator<StorageProperty> |
augmentGraphProperties(Iterator<StorageProperty> original) |
org.neo4j.cursor.Cursor<RelationshipItem> |
augmentIteratorRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor,
org.neo4j.kernel.impl.api.store.RelationshipIterator iterator) |
org.neo4j.cursor.Cursor<LabelItem> |
augmentLabelCursor(org.neo4j.cursor.Cursor<LabelItem> cursor,
NodeState nodeState) |
int |
augmentNodeDegree(long node,
int committedDegree,
Direction direction) |
int |
augmentNodeDegree(long node,
int committedDegree,
Direction direction,
int relType) |
org.neo4j.cursor.Cursor<RelationshipItem> |
augmentNodeRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor,
NodeState nodeState,
Direction direction,
int[] relTypes) |
org.neo4j.collection.primitive.PrimitiveLongIterator |
augmentNodesGetAll(org.neo4j.collection.primitive.PrimitiveLongIterator committed) |
org.neo4j.cursor.Cursor<NodeItem> |
augmentNodesGetAllCursor(org.neo4j.cursor.Cursor<NodeItem> cursor) |
org.neo4j.cursor.Cursor<PropertyItem> |
augmentPropertyCursor(org.neo4j.cursor.Cursor<PropertyItem> cursor,
PropertyContainerState propertyContainerState) |
org.neo4j.kernel.impl.api.store.RelationshipIterator |
augmentRelationshipsGetAll(org.neo4j.kernel.impl.api.store.RelationshipIterator committed) |
org.neo4j.cursor.Cursor<RelationshipItem> |
augmentRelationshipsGetAllCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor) |
org.neo4j.cursor.Cursor<LabelItem> |
augmentSingleLabelCursor(org.neo4j.cursor.Cursor<LabelItem> cursor,
NodeState nodeState,
int labelId) |
org.neo4j.cursor.Cursor<NodeItem> |
augmentSingleNodeCursor(org.neo4j.cursor.Cursor<NodeItem> cursor,
long nodeId) |
org.neo4j.cursor.Cursor<PropertyItem> |
augmentSinglePropertyCursor(org.neo4j.cursor.Cursor<PropertyItem> cursor,
PropertyContainerState propertyContainerState,
int propertyKeyId) |
org.neo4j.cursor.Cursor<RelationshipItem> |
augmentSingleRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor,
long relationshipId) |
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> |
constraintIndexChanges() |
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> |
constraintIndexDiffSetsByLabel(int labelId) |
Iterable<org.neo4j.kernel.api.index.IndexDescriptor> |
constraintIndexesCreatedInTx() |
ReadableDiffSets<org.neo4j.kernel.api.constraints.PropertyConstraint> |
constraintsChanges() |
ReadableDiffSets<org.neo4j.kernel.api.constraints.NodePropertyConstraint> |
constraintsChangesForLabel(int labelId) |
ReadableDiffSets<org.neo4j.kernel.api.constraints.NodePropertyConstraint> |
constraintsChangesForLabelAndProperty(int labelId,
int propertyKey) |
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> |
constraintsChangesForRelationshipType(int relTypeId) |
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> |
constraintsChangesForRelationshipTypeAndProperty(int relTypeId,
int propertyKey) |
NodeState |
getNodeState(long id) |
RelationshipState |
getRelationshipState(long id) |
boolean |
hasChanges() |
boolean |
hasDataChanges()
The way tokens are created is that the first time a token is needed it gets created in its own little
token mini-transaction, separate from the surrounding transaction that creates or modifies data that need it.
|
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> |
indexChanges() |
Long |
indexCreatedForConstraint(org.neo4j.kernel.api.constraints.UniquenessConstraint constraint) |
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> |
indexDiffSetsByLabel(int labelId) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByNumber(org.neo4j.kernel.api.index.IndexDescriptor index,
Number lower,
boolean includeLower,
Number upper,
boolean includeUpper) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByPrefix(org.neo4j.kernel.api.index.IndexDescriptor index,
String prefix) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByString(org.neo4j.kernel.api.index.IndexDescriptor index,
String lower,
boolean includeLower,
String upper,
boolean includeUpper) |
ReadableDiffSets<Long> |
indexUpdatesForScanOrSeek(org.neo4j.kernel.api.index.IndexDescriptor index,
Object value) |
Iterable<NodeState> |
modifiedNodes()
Nodes that have had labels, relationships, or properties modified in this tx.
|
Iterable<RelationshipState> |
modifiedRelationships()
Rels that have properties modified in this tx.
|
boolean |
nodeIsAddedInThisTx(long nodeId) |
boolean |
nodeIsDeletedInThisTx(long nodeId) |
boolean |
nodeModifiedInThisTx(long nodeId) |
org.neo4j.collection.primitive.PrimitiveIntIterator |
nodeRelationshipTypes(long nodeId) |
ReadableDiffSets<Integer> |
nodeStateLabelDiffSets(long nodeId) |
ReadableDiffSets<Long> |
nodesWithLabelChanged(int labelId)
Returns all nodes that, in this tx, have had labelId removed.
|
boolean |
relationshipIsAddedInThisTx(long relationshipId) |
boolean |
relationshipIsDeletedInThisTx(long relationshipId) |
<EX extends Exception> |
relationshipVisit(long relId,
org.neo4j.kernel.impl.api.RelationshipVisitor<EX> visitor) |
void accept(TxStateVisitor visitor) throws org.neo4j.kernel.api.exceptions.schema.ConstraintValidationKernelException, org.neo4j.kernel.api.exceptions.schema.CreateConstraintFailureException
org.neo4j.kernel.api.exceptions.schema.ConstraintValidationKernelExceptionorg.neo4j.kernel.api.exceptions.schema.CreateConstraintFailureExceptionboolean hasChanges()
ReadableDiffSets<Long> nodesWithLabelChanged(int labelId)
ReadableDiffSets<Long> addedAndRemovedNodes()
ReadableRelationshipDiffSets<Long> addedAndRemovedRelationships()
Iterable<NodeState> modifiedNodes()
Iterable<RelationshipState> modifiedRelationships()
boolean relationshipIsAddedInThisTx(long relationshipId)
boolean relationshipIsDeletedInThisTx(long relationshipId)
ReadableDiffSets<Integer> nodeStateLabelDiffSets(long nodeId)
Iterator<StorageProperty> augmentGraphProperties(Iterator<StorageProperty> original)
boolean nodeIsAddedInThisTx(long nodeId)
boolean nodeIsDeletedInThisTx(long nodeId)
boolean nodeModifiedInThisTx(long nodeId)
org.neo4j.collection.primitive.PrimitiveIntIterator nodeRelationshipTypes(long nodeId)
int augmentNodeDegree(long node,
int committedDegree,
Direction direction)
int augmentNodeDegree(long node,
int committedDegree,
Direction direction,
int relType)
org.neo4j.collection.primitive.PrimitiveLongIterator augmentNodesGetAll(org.neo4j.collection.primitive.PrimitiveLongIterator committed)
org.neo4j.kernel.impl.api.store.RelationshipIterator augmentRelationshipsGetAll(org.neo4j.kernel.impl.api.store.RelationshipIterator committed)
<EX extends Exception> boolean relationshipVisit(long relId, org.neo4j.kernel.impl.api.RelationshipVisitor<EX> visitor) throws EX extends Exception
true if the relationship was visited in this state, i.e. if it was created
by this current transaction, otherwise false where the relationship might need to be
visited from the store.EX extends ExceptionReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> indexDiffSetsByLabel(int labelId)
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> constraintIndexDiffSetsByLabel(int labelId)
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> indexChanges()
ReadableDiffSets<org.neo4j.kernel.api.index.IndexDescriptor> constraintIndexChanges()
Iterable<org.neo4j.kernel.api.index.IndexDescriptor> constraintIndexesCreatedInTx()
ReadableDiffSets<org.neo4j.kernel.api.constraints.PropertyConstraint> constraintsChanges()
ReadableDiffSets<org.neo4j.kernel.api.constraints.NodePropertyConstraint> constraintsChangesForLabel(int labelId)
ReadableDiffSets<org.neo4j.kernel.api.constraints.NodePropertyConstraint> constraintsChangesForLabelAndProperty(int labelId, int propertyKey)
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> constraintsChangesForRelationshipType(int relTypeId)
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> constraintsChangesForRelationshipTypeAndProperty(int relTypeId, int propertyKey)
Long indexCreatedForConstraint(org.neo4j.kernel.api.constraints.UniquenessConstraint constraint)
ReadableDiffSets<Long> indexUpdatesForScanOrSeek(org.neo4j.kernel.api.index.IndexDescriptor index, Object value)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByNumber(org.neo4j.kernel.api.index.IndexDescriptor index, Number lower, boolean includeLower, Number upper, boolean includeUpper)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByString(org.neo4j.kernel.api.index.IndexDescriptor index, String lower, boolean includeLower, String upper, boolean includeUpper)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByPrefix(org.neo4j.kernel.api.index.IndexDescriptor index, String prefix)
NodeState getNodeState(long id)
RelationshipState getRelationshipState(long id)
org.neo4j.cursor.Cursor<NodeItem> augmentSingleNodeCursor(org.neo4j.cursor.Cursor<NodeItem> cursor, long nodeId)
org.neo4j.cursor.Cursor<PropertyItem> augmentPropertyCursor(org.neo4j.cursor.Cursor<PropertyItem> cursor, PropertyContainerState propertyContainerState)
org.neo4j.cursor.Cursor<PropertyItem> augmentSinglePropertyCursor(org.neo4j.cursor.Cursor<PropertyItem> cursor, PropertyContainerState propertyContainerState, int propertyKeyId)
org.neo4j.cursor.Cursor<LabelItem> augmentLabelCursor(org.neo4j.cursor.Cursor<LabelItem> cursor, NodeState nodeState)
org.neo4j.cursor.Cursor<LabelItem> augmentSingleLabelCursor(org.neo4j.cursor.Cursor<LabelItem> cursor, NodeState nodeState, int labelId)
org.neo4j.cursor.Cursor<RelationshipItem> augmentSingleRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor, long relationshipId)
org.neo4j.cursor.Cursor<RelationshipItem> augmentIteratorRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor, org.neo4j.kernel.impl.api.store.RelationshipIterator iterator)
org.neo4j.cursor.Cursor<RelationshipItem> augmentNodeRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor, NodeState nodeState, Direction direction, int[] relTypes)
org.neo4j.cursor.Cursor<NodeItem> augmentNodesGetAllCursor(org.neo4j.cursor.Cursor<NodeItem> cursor)
org.neo4j.cursor.Cursor<RelationshipItem> augmentRelationshipsGetAllCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor)
boolean hasDataChanges()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.