public class GhostVertexRemover extends AbstractScanJob
Modifier and Type | Field and Description |
---|---|
static String |
REMOVED_RELATION_COUNT |
static String |
REMOVED_VERTEX_COUNT |
static String |
SKIPPED_GHOST_LIMIT_COUNT |
graph, tx
Modifier | Constructor and Description |
---|---|
|
GhostVertexRemover() |
protected |
GhostVertexRemover(GhostVertexRemover copy) |
|
GhostVertexRemover(JanusGraph graph) |
Modifier and Type | Method and Description |
---|---|
GhostVertexRemover |
clone()
Returns a clone of this ScanJob.
|
List<SliceQuery> |
getQueries()
Returns one or more
SliceQuery instances belonging to this ScanJob . |
void |
process(StaticBuffer key,
Map<SliceQuery,EntryList> entries,
ScanMetrics metrics)
Run this
ScanJob 's computation on the supplied row-key and entries. |
protected StandardJanusGraphTx |
startTransaction(StandardJanusGraph graph) |
void |
workerIterationEnd(ScanMetrics metrics)
Invoked after a block of computation (i.e.
|
void |
workerIterationStart(Configuration jobConfig,
Configuration graphConfig,
ScanMetrics metrics)
Invoked before a block of computation (i.e.
|
close, getVertexId, isGhostVertex, open
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyFilter
public static final String REMOVED_RELATION_COUNT
public static final String REMOVED_VERTEX_COUNT
public static final String SKIPPED_GHOST_LIMIT_COUNT
public GhostVertexRemover(JanusGraph graph)
public GhostVertexRemover()
protected GhostVertexRemover(GhostVertexRemover copy)
public GhostVertexRemover clone()
ScanJob
clone
in interface ScanJob
clone
in class AbstractScanJob
ScanJob
public void workerIterationStart(Configuration jobConfig, Configuration graphConfig, ScanMetrics metrics)
ScanJob
VertexProgram.workerIterationStart(Memory)
This method may not be called if there is no data to be processed. Correspondingly, the end method won't be called either.
No-op default implementation.jobConfig
- configuration for this particular jobgraphConfig
- configuration options for the entire graph against which this job is executedmetrics
- ScanMetrics
for this jobprotected StandardJanusGraphTx startTransaction(StandardJanusGraph graph)
startTransaction
in class AbstractScanJob
public void process(StaticBuffer key, Map<SliceQuery,EntryList> entries, ScanMetrics metrics)
ScanJob
ScanJob
's computation on the supplied row-key and entries.
This method will be called by a client of this interface if and only if both of the following criteria are satisfied:
ScanJob.getKeyFilter()
must evaluate to true
on the key
.
entries
parameter must contain an entry whose key is the first
SliceQuery
returned by ScanJob.getQueries()
and whose value
is an EntryList
with at least size one. In other words, the
initial query in this job's query list must have matched at least once.
Implementations may assume these two conditions are satisfied. Calling this method when either of these two conditions is false yields undefined behavior.
It is the caller's responsibility to construct an entries
map that
maps each SliceQuery
to that query's matches.
The caller is also responsible for truncating the entries
values
to honor BaseQuery.getLimit()
when BaseQuery.hasLimit()
is true. Passing in an entries
value longer than the limit set in
its respective key yields undefined behavior.
This method may be called by concurrent threads in a single process.
public void workerIterationEnd(ScanMetrics metrics)
ScanJob
VertexProgram.workerIterationEnd(Memory)
This method may not be called if there is no data to be processed. Correspondingly, the start method won't be called either.
No-op default implementation.metrics
- ScanMetrics
for this jobpublic List<SliceQuery> getQueries()
ScanJob
SliceQuery
instances belonging to this ScanJob
.
Before calling
ScanJob.process(org.janusgraph.diskstorage.StaticBuffer, java.util.Map, ScanMetrics)
,
users of this interface must check that the key in question contains at least one
entry matching the initial SliceQuery
returned by this method. See the javadoc
for the process
method for more information.
If this method returns more than one query, then the initial query's lower bound must
be all zero bits and the initial query's upper bound must be all one bits (per the
preconditions in StandardScannerExecutor
, the reference ScanJob
executor).
Copyright © 2012–2023. All rights reserved.