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.collection.primitive.PrimitiveIntSet |
augmentLabels(org.neo4j.collection.primitive.PrimitiveIntSet 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<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<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) |
Iterable<org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor> |
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(org.neo4j.kernel.api.schema.NodePropertyDescriptor descriptor) |
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> |
constraintsChangesForRelationshipType(int relTypeId) |
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> |
constraintsChangesForRelationshipTypeAndProperty(org.neo4j.kernel.api.schema.RelationshipPropertyDescriptor descriptor) |
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.schema_new.index.NewIndexDescriptor> |
indexChanges(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor.Filter indexType) |
Long |
indexCreatedForConstraint(org.neo4j.kernel.api.constraints.UniquenessConstraint constraint) |
ReadableDiffSets<org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor> |
indexDiffSetsByLabel(int labelId,
org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor.Filter indexType) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByNumber(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index,
Number lower,
boolean includeLower,
Number upper,
boolean includeUpper) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByPrefix(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index,
String prefix) |
ReadableDiffSets<Long> |
indexUpdatesForRangeSeekByString(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index,
String lower,
boolean includeLower,
String upper,
boolean includeUpper) |
ReadableDiffSets<Long> |
indexUpdatesForScanOrSeek(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor 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.PrimitiveIntSet |
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.PrimitiveIntSet 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.schema_new.index.NewIndexDescriptor> indexDiffSetsByLabel(int labelId, org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor.Filter indexType)
ReadableDiffSets<org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor> indexChanges(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor.Filter indexType)
Iterable<org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor> 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(org.neo4j.kernel.api.schema.NodePropertyDescriptor descriptor)
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> constraintsChangesForRelationshipType(int relTypeId)
ReadableDiffSets<org.neo4j.kernel.api.constraints.RelationshipPropertyConstraint> constraintsChangesForRelationshipTypeAndProperty(org.neo4j.kernel.api.schema.RelationshipPropertyDescriptor descriptor)
Long indexCreatedForConstraint(org.neo4j.kernel.api.constraints.UniquenessConstraint constraint)
ReadableDiffSets<Long> indexUpdatesForScanOrSeek(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index, Object value)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByNumber(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index, Number lower, boolean includeLower, Number upper, boolean includeUpper)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByString(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor index, String lower, boolean includeLower, String upper, boolean includeUpper)
ReadableDiffSets<Long> indexUpdatesForRangeSeekByPrefix(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor 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.collection.primitive.PrimitiveIntSet augmentLabels(org.neo4j.collection.primitive.PrimitiveIntSet cursor,
NodeState nodeState)
org.neo4j.cursor.Cursor<RelationshipItem> augmentSingleRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor, long relationshipId)
org.neo4j.cursor.Cursor<RelationshipItem> augmentNodeRelationshipCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor, NodeState nodeState, Direction direction, int[] relTypes)
org.neo4j.cursor.Cursor<RelationshipItem> augmentRelationshipsGetAllCursor(org.neo4j.cursor.Cursor<RelationshipItem> cursor)
boolean hasDataChanges()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.