public static class VertexMapJob.Executor extends VertexJobConverter implements Closeable
GHOST_VERTEX_COUNT, job, TRUNCATED_ENTRY_LISTS, VERTEX_EXISTS_QUERY
graph, tx
Modifier and Type | Method and Description |
---|---|
VertexMapJob.Executor |
clone()
Returns a clone of this ScanJob.
|
void |
close() |
List<SliceQuery> |
getQueries()
Returns one or more
SliceQuery instances belonging to this ScanJob . |
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.
|
convert, convert, getKeyFilter, process, startTransaction
getVertexId, isGhostVertex, open
public 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).
getQueries
in interface ScanJob
getQueries
in class VertexJobConverter
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.workerIterationStart
in interface ScanJob
workerIterationStart
in class VertexJobConverter
jobConfig
- configuration for this particular jobgraphConfig
- configuration options for the entire graph against which this job is executedmetrics
- ScanMetrics
for this jobpublic 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.workerIterationEnd
in interface ScanJob
workerIterationEnd
in class VertexJobConverter
metrics
- ScanMetrics
for this jobpublic VertexMapJob.Executor clone()
ScanJob
clone
in interface ScanJob
clone
in class VertexJobConverter
ScanJob
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractScanJob
Copyright © 2012–2023. All rights reserved.