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 aFuturebyGraphComputer.submit(). AGraphComputercomputation yields two things: an updated view of the computed onGraphand 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 voidclose()Close the computedGraphComputerresult.Graphgraph()Memorymemory()Get the GraphComputer's computational sideEffects known asMemory.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
graph
public Graph graph()
Description copied from interface:ComputerResult- Specified by:
 graphin interfaceComputerResult- Returns:
 - The computed graph
 
 
- 
memory
public Memory 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
 
 - 
 
 -