public class TLScheduler2 extends Object implements IGASSchedulerImpl
LinkedHashSet
) to track the
distinct vertices scheduled by each execution thread. After the computation
round, those per-thread segments of the frontier are combined into a single
global, compact, and ordered frontier. To maximize the parallel activity, the
per-thread frontiers are sorted using N threads (one per segment). Finally,
the frontier segments are combined using a MergeSortIterator
- this
is a sequential step with a linear cost in the size of the frontier.Constructor and Description |
---|
TLScheduler2(GASEngine gasEngine) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset all internal state (and get rid of any thread locals).
|
void |
compactFrontier(IStaticFrontier frontier)
Compact the schedule into the new frontier.
|
void |
schedule(org.openrdf.model.Value v)
Add the vertex to the schedule.
|
public TLScheduler2(GASEngine gasEngine)
public void schedule(org.openrdf.model.Value v)
IGASScheduler
schedule
in interface IGASScheduler
v
- The vertex.public void clear()
IGASSchedulerImpl
clear
in interface IGASSchedulerImpl
public void compactFrontier(IStaticFrontier frontier)
IGASSchedulerImpl
compactFrontier
in interface IGASSchedulerImpl
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.