public final class TinkerWorkerPool extends Object implements AutoCloseable
Constructor and Description |
---|
TinkerWorkerPool(TinkerGraph graph,
TinkerMemory memory,
int numberOfWorkers) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeNow() |
void |
executeMapReduce(Consumer<MapReduce> worker) |
void |
executeVertexProgram(TriConsumer<Iterator<Vertex>,VertexProgram,TinkerWorkerMemory> worker) |
void |
setMapReduce(MapReduce mapReduce) |
void |
setVertexProgram(VertexProgram vertexProgram) |
public TinkerWorkerPool(TinkerGraph graph, TinkerMemory memory, int numberOfWorkers)
public void setVertexProgram(VertexProgram vertexProgram)
public void setMapReduce(MapReduce mapReduce)
public void executeVertexProgram(TriConsumer<Iterator<Vertex>,VertexProgram,TinkerWorkerMemory> worker) throws InterruptedException
InterruptedException
public void executeMapReduce(Consumer<MapReduce> worker) throws InterruptedException
InterruptedException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.