Class TinkerStorageMutation<T extends Element>
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.storage.TinkerStorageMutation<T>
- Type Parameters:
T- the element type (TinkerVertexorTinkerEdge)
A single element change within a committing transaction, handed to a
TinkerStorage engine to persist. This
is the stable, public view of a change that decouples storage engines from TinkerGraph's internal transactional
containers. A mutation is either a put (the element was added or modified, element() is non-null)
or a delete (element() is null and isDeleted() is true).-
Constructor Summary
ConstructorsConstructorDescriptionTinkerStorageMutation(Object id, T element) Create a mutation for the given element id. -
Method Summary
-
Constructor Details
-
TinkerStorageMutation
Create a mutation for the given element id.- Parameters:
id- the element identifier (nevernull)element- the committed element for a put, ornullfor a delete
-
-
Method Details
-
id
The identifier of the changed element. -
element
The committed element to persist, ornullwhen this mutation is a deletion. -
isDeleted
public boolean isDeleted()Returnstruewhen this mutation deletes the element rather than adding or modifying it.
-