Package com.arcadedb.database.async
Class CreateEdgeAsyncTask
- java.lang.Object
-
- com.arcadedb.database.async.DatabaseAsyncAbstractTask
-
- com.arcadedb.database.async.CreateEdgeAsyncTask
-
- All Implemented Interfaces:
DatabaseAsyncTask
- Direct Known Subclasses:
CreateBothVerticesAndEdgeAsyncTask
,CreateDestinationVertexAndEdgeAsyncTask
,CreateSourceVertexAndEdgeAsyncTask
public class CreateEdgeAsyncTask extends DatabaseAsyncAbstractTask
Asynchronous Task that creates the edge that connects 2 vertices.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bidirectional
protected NewEdgeCallback
callback
protected Identifiable
destinationVertex
protected Object[]
edgeAttributes
protected String
edgeType
protected boolean
light
protected Identifiable
sourceVertex
-
Constructor Summary
Constructors Constructor Description CreateEdgeAsyncTask(Identifiable sourceVertex, Identifiable destinationVertex, String edgeType, Object[] edgeAttributes, boolean bidirectional, boolean light, NewEdgeCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createEdge(DatabaseInternal database, Identifiable sourceVertex, Identifiable destinationVertex, boolean createdSourceVertex, boolean createdDestinationVertex)
void
execute(DatabaseAsyncExecutorImpl.AsyncThread async, DatabaseInternal database)
String
toString()
-
Methods inherited from class com.arcadedb.database.async.DatabaseAsyncAbstractTask
completed, requiresActiveTx
-
-
-
-
Field Detail
-
sourceVertex
protected final Identifiable sourceVertex
-
destinationVertex
protected final Identifiable destinationVertex
-
edgeType
protected final String edgeType
-
edgeAttributes
protected final Object[] edgeAttributes
-
bidirectional
protected final boolean bidirectional
-
light
protected final boolean light
-
callback
protected final NewEdgeCallback callback
-
-
Constructor Detail
-
CreateEdgeAsyncTask
public CreateEdgeAsyncTask(Identifiable sourceVertex, Identifiable destinationVertex, String edgeType, Object[] edgeAttributes, boolean bidirectional, boolean light, NewEdgeCallback callback)
-
-
Method Detail
-
execute
public void execute(DatabaseAsyncExecutorImpl.AsyncThread async, DatabaseInternal database)
-
createEdge
protected void createEdge(DatabaseInternal database, Identifiable sourceVertex, Identifiable destinationVertex, boolean createdSourceVertex, boolean createdDestinationVertex)
-
-