Java Code Examples for com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.getIDManager()

The following are Jave code examples for showing how to use getIDManager() of the com.thinkaurelius.titan.graphdb.database.StandardTitanGraph class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: titan1withtp3.1   File: PartitionedVertexProgramExecutor.java   View Source Code Vote up 5 votes
public PartitionedVertexProgramExecutor(StandardTitanGraph graph, FulgoraMemory memory,
                             FulgoraVertexMemory vertexMemory, VertexProgram<M> vertexProgram) {
    this.graph=graph;
    this.idManager = graph.getIDManager();
    this.memory = memory;
    this.vertexMemory = vertexMemory;
    this.vertexProgram = vertexProgram;
}
 
Example 2
Project: titan1withtp3.1   File: VertexMapJob.java   View Source Code Vote up 5 votes
public static Executor getVertexMapJob(StandardTitanGraph graph, FulgoraVertexMemory vertexMemory,
                                       Map<MapReduce, FulgoraMapEmitter> mapJobs) {
    VertexMapJob job = new VertexMapJob(graph.getIDManager(), vertexMemory, mapJobs);
    for (Map.Entry<MapReduce, FulgoraMapEmitter> mapJob : mapJobs.entrySet()) {
        mapJob.getKey().workerStart(MapReduce.Stage.MAP);
    }
    return new Executor(graph, job);
}
 
Example 3
Project: titan1.0.1.kafka   File: PartitionedVertexProgramExecutor.java   View Source Code Vote up 5 votes
public PartitionedVertexProgramExecutor(StandardTitanGraph graph, FulgoraMemory memory,
                             FulgoraVertexMemory vertexMemory, VertexProgram<M> vertexProgram) {
    this.graph=graph;
    this.idManager = graph.getIDManager();
    this.memory = memory;
    this.vertexMemory = vertexMemory;
    this.vertexProgram = vertexProgram;
}
 
Example 4
Project: titan1.0.1.kafka   File: VertexMapJob.java   View Source Code Vote up 5 votes
public static Executor getVertexMapJob(StandardTitanGraph graph, FulgoraVertexMemory vertexMemory,
                                       Map<MapReduce, FulgoraMapEmitter> mapJobs) {
    VertexMapJob job = new VertexMapJob(graph.getIDManager(), vertexMemory, mapJobs);
    for (Map.Entry<MapReduce, FulgoraMapEmitter> mapJob : mapJobs.entrySet()) {
        mapJob.getKey().workerStart(MapReduce.Stage.MAP);
    }
    return new Executor(graph, job);
}
 
Example 5
Project: titan1withtp3.1   File: VertexProgramScanJob.java   View Source Code Vote up 4 votes
public static<M> Executor getVertexProgramScanJob(StandardTitanGraph graph, FulgoraMemory memory,
                                              FulgoraVertexMemory vertexMemory, VertexProgram<M> vertexProgram) {
    VertexProgramScanJob<M> job = new VertexProgramScanJob<M>(graph.getIDManager(),memory,vertexMemory,vertexProgram);
    return new Executor(graph,job);
}
 
Example 6
Project: titan1.0.1.kafka   File: VertexProgramScanJob.java   View Source Code Vote up 4 votes
public static<M> Executor getVertexProgramScanJob(StandardTitanGraph graph, FulgoraMemory memory,
                                              FulgoraVertexMemory vertexMemory, VertexProgram<M> vertexProgram) {
    VertexProgramScanJob<M> job = new VertexProgramScanJob<M>(graph.getIDManager(),memory,vertexMemory,vertexProgram);
    return new Executor(graph,job);
}