Class DefaultComputerResult
java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.util.DefaultComputerResult
- All Implemented Interfaces:
AutoCloseable,ComputerResult
The result of the
GraphComputer's computation. This is returned in a Future by
GraphComputer.submit(). A GraphComputer computation yields two things: an updated view of the
computed on Graph and any computational sideEffects called Memory.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Field Details
-
graph
-
memory
-
-
Constructor Details
-
DefaultComputerResult
-
-
Method Details
-
graph
Description copied from interface:ComputerResult- Specified by:
graphin interfaceComputerResult- Returns:
- The computed graph
-
memory
Description copied from interface:ComputerResultGet the GraphComputer's computational sideEffects known asMemory.- Specified by:
memoryin interfaceComputerResult- Returns:
- the computed memory
-
close
public void close()Description copied from interface:ComputerResultClose the computedGraphComputerresult. The semantics of "close" differ depending on the underlying implementation. In general, when aComputerResultis closed, the computed values are no longer available to the user.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceComputerResult
-
toString
-