Class DefaultComputerResult
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.computer.util.DefaultComputerResult
-
- All Implemented Interfaces:
AutoCloseable
,ComputerResult
public class DefaultComputerResult extends Object implements ComputerResult
The result of theGraphComputer
's computation. This is returned in aFuture
byGraphComputer.submit()
. AGraphComputer
computation yields two things: an updated view of the computed onGraph
and any computational sideEffects calledMemory
.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Constructor Summary
Constructors Constructor Description DefaultComputerResult(Graph graph, Memory memory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the computedGraphComputer
result.Graph
graph()
Memory
memory()
Get the GraphComputer's computational sideEffects known asMemory
.String
toString()
-
-
-
Method Detail
-
graph
public Graph graph()
Description copied from interface:ComputerResult
- Specified by:
graph
in interfaceComputerResult
- Returns:
- The computed graph
-
memory
public Memory memory()
Description copied from interface:ComputerResult
Get the GraphComputer's computational sideEffects known asMemory
.- Specified by:
memory
in interfaceComputerResult
- Returns:
- the computed memory
-
close
public void close()
Description copied from interface:ComputerResult
Close the computedGraphComputer
result. The semantics of "close" differ depending on the underlying implementation. In general, when aComputerResult
is closed, the computed values are no longer available to the user.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceComputerResult
-
-