public interface ReadGraphOption
Modifier and Type | Interface and Description |
---|---|
static class |
ReadGraphOption.OnMissingVertexOption
Class for encapsulating a OnMissingVertex config option
|
static class |
ReadGraphOption.OptimizedForOption
Class for encapsulating a GraphOptimizedFor config option
|
static class |
ReadGraphOption.ParallelHintDegreeReadGraphOption
Class for encapsulating the ParallelHintDegree config option
|
static class |
ReadGraphOption.ReadGraphOptionDataBuilder |
static class |
ReadGraphOption.SynchronizableOptionReadGraphOption
Class for option, which specifies if graph cannot be synchronized, PGX will throw an Exception
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ReadGraphOption.ReadGraphOptionDataBuilder holder) |
static ReadGraphOption.OnMissingVertexOption |
onMissingVertex(OnMissingVertex onMissingVertex)
Creates an option, which specifies the behavior when the source or destination vertex of an edge is missing
|
static ReadGraphOption.OptimizedForOption |
optimizeFor(GraphOptimizedFor optimizedFor)
Creates an option, which specifies whether a graph should be optimized for read or update
|
static ReadGraphOption.SynchronizableOptionReadGraphOption |
synchronizable()
Creates an option, which specifies if a graph cannot be synchronized, PGX will throw an Exception
|
static <T extends ReadGraphOption> |
validateUnique(java.util.Collection<ReadGraphOption> options, java.lang.Class<T> clazz, java.lang.String errorMessage)
Validates a given option list to contain only one item of the specified type.
|
static ReadGraphOption.ParallelHintDegreeReadGraphOption |
withParallelHintDegree(int parallelHintDegree)
Creates an option, which specifies the parallel hint degree to use for internal queries
|
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_ERROR
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE_LOG
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE
static final ReadGraphOption.OptimizedForOption OPTIMIZED_FOR_READ
static final ReadGraphOption.OptimizedForOption OPTIMIZED_FOR_UPDATES
static final ReadGraphOption.SynchronizableOptionReadGraphOption SYNCHRONIZABLE
void apply(ReadGraphOption.ReadGraphOptionDataBuilder holder)
static ReadGraphOption.OnMissingVertexOption onMissingVertex(OnMissingVertex onMissingVertex)
onMissingVertex
- specifies the behavior when the source or destination vertex of an edge is missingstatic ReadGraphOption.OptimizedForOption optimizeFor(GraphOptimizedFor optimizedFor)
optimizedFor
- specifies what the graph should be optimized for (read or update)static ReadGraphOption.SynchronizableOptionReadGraphOption synchronizable()
static <T extends ReadGraphOption> void validateUnique(java.util.Collection<ReadGraphOption> options, java.lang.Class<T> clazz, java.lang.String errorMessage)
options
- the list of options to validateclazz
- the type of option to look forerrorMessage
- the error message to be thrown when validation failsstatic ReadGraphOption.ParallelHintDegreeReadGraphOption withParallelHintDegree(int parallelHintDegree)
parallelHintDegree
- specifies the parallel hint degree to use for internal queries