public interface OLAPJobBuilder<S>
OLAPJob for execution.| Modifier and Type | Method and Description |
|---|---|
OLAPQueryBuilder<S,?,?> |
addQuery()
Adds a new vertex query to this job.
|
Future<OLAPResult<S>> |
execute()
Starts the execution of this job and returns the computed vertex states as a
OLAPResult. |
OLAPJobBuilder<S> |
setInitializer(StateInitializer<S> initial)
Sets an
StateInitializer function to initialize the vertex state on demand. |
OLAPJobBuilder<S> |
setInitialState(Map<Long,S> values)
Set the initial state of the vertices where the key is the vertex id and the value is the state
of the vertex.
|
OLAPJobBuilder<S> |
setInitialState(OLAPResult<S> values)
Sets the initial state of the vertices to the result from a previous OLAP computation.
|
OLAPJobBuilder<S> |
setJob(OLAPJob<S> job)
Configures the
OLAPJob vertex-centric program to execute on all vertices. |
OLAPJobBuilder<S> |
setNumProcessingThreads(int numThreads)
Configure the number of threads to execute the configured
OLAPJob. |
OLAPJobBuilder<S> |
setNumVertices(long numVertices)
If the exact number of vertices to be processed is know a priori, it can be specified
via this method to make memory allocation more efficient.
|
OLAPJobBuilder<S> |
setStateKey(String stateKey)
Defines the name of the key to be used as the dedicated "state" key.
|
OLAPJobBuilder<S> setJob(OLAPJob<S> job)
OLAPJob vertex-centric program to execute on all vertices.job - OLAPJobBuilder<S> setStateKey(String stateKey)
OLAPJob will return the current vertex state.stateKey - OLAPJobBuilder<S> setInitializer(StateInitializer<S> initial)
StateInitializer function to initialize the vertex state on demand.initial - OLAPJobBuilder<S> setInitialState(Map<Long,S> values)
values - OLAPJobBuilder<S> setInitialState(OLAPResult<S> values)
OLAPResult may be removed to be memory efficient
which means that the previous state can be overwritten and is therefore lost.values - OLAPJobBuilder<S> setNumVertices(long numVertices)
numVertices - OLAPJobBuilder<S> setNumProcessingThreads(int numThreads)
OLAPJob.numThreads - OLAPQueryBuilder<S,?,?> addQuery()
OLAPJob executes. Only the data that can be retrieved through previously configured queries
will be accessible during execution.Future<OLAPResult<S>> execute()
OLAPResult.Copyright © 2012–2014. All rights reserved.