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 SummaryConstructors Constructor Description DefaultComputerResult(Graph graph, Memory memory)
 - 
Method SummaryAll 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- 
graphpublic Graph graph() Description copied from interface:ComputerResult- Specified by:
- graphin interface- ComputerResult
- Returns:
- The computed graph
 
 - 
memorypublic Memory memory() Description copied from interface:ComputerResultGet the GraphComputer's computational sideEffects known asMemory.- Specified by:
- memoryin interface- ComputerResult
- Returns:
- the computed memory
 
 - 
closepublic 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 interface- AutoCloseable
- Specified by:
- closein interface- ComputerResult
 
 
- 
 
-