public class FulgoraBuilder<S> extends Object implements OLAPJobBuilder<S>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HARD_QUERY_LIMIT |
static String |
STATE_KEY |
| Constructor and Description |
|---|
FulgoraBuilder(StandardTitanGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
OLAPQueryBuilder |
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. |
FulgoraBuilder<S> |
setCustomTxOptions(String key,
Object value) |
FulgoraBuilder<S> |
setInitializer(StateInitializer<S> initial)
Sets an
StateInitializer function to initialize the vertex state on demand. |
FulgoraBuilder<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.
|
FulgoraBuilder<S> |
setJob(OLAPJob job)
Configures the
OLAPJob vertex-centric program to execute on all vertices. |
FulgoraBuilder<S> |
setNumProcessingThreads(int numThreads)
Configure the number of threads to execute the configured
OLAPJob. |
FulgoraBuilder<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.
|
FulgoraBuilder<S> |
setStateKey(String stateKey)
Defines the name of the key to be used as the dedicated "state" key.
|
public static final String STATE_KEY
public static final int DEFAULT_HARD_QUERY_LIMIT
public FulgoraBuilder(StandardTitanGraph graph)
public FulgoraBuilder<S> setJob(OLAPJob job)
OLAPJobBuilderOLAPJob vertex-centric program to execute on all vertices.setJob in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setStateKey(String stateKey)
OLAPJobBuilderOLAPJob will return the current vertex state.setStateKey in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setInitializer(StateInitializer<S> initial)
OLAPJobBuilderStateInitializer function to initialize the vertex state on demand.setInitializer in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setInitialState(Map<Long,S> values)
OLAPJobBuildersetInitialState in interface OLAPJobBuilder<S>public OLAPJobBuilder<S> setInitialState(OLAPResult<S> values)
OLAPJobBuilderOLAPResult may be removed to be memory efficient
which means that the previous state can be overwritten and is therefore lost.setInitialState in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setNumVertices(long numVertices)
OLAPJobBuildersetNumVertices in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setNumProcessingThreads(int numThreads)
OLAPJobBuilderOLAPJob.setNumProcessingThreads in interface OLAPJobBuilder<S>public FulgoraBuilder<S> setCustomTxOptions(String key, Object value)
public OLAPQueryBuilder addQuery()
OLAPJobBuilderOLAPJob executes. Only the data that can be retrieved through previously configured queries
will be accessible during execution.addQuery in interface OLAPJobBuilder<S>public Future<OLAPResult<S>> execute()
OLAPJobBuilderOLAPResult.execute in interface OLAPJobBuilder<S>Copyright © 2012–2014. All rights reserved.