Package oracle.pgx.config
Interface ReadGraphOption
-
- All Known Implementing Classes:
ReadGraphOption.OnMissingVertexOption,ReadGraphOption.OptimizedForOption,ReadGraphOption.ParallelHintDegreeReadGraphOption,ReadGraphOption.SynchronizableOptionReadGraphOption
public interface ReadGraphOptionInterface for specifying options for PgxSession#readGraphByName(String, GraphSource, ReadGraphOption...)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classReadGraphOption.OnMissingVertexOptionClass for encapsulating a OnMissingVertex config optionstatic classReadGraphOption.OptimizedForOptionClass for encapsulating a GraphOptimizedFor config optionstatic classReadGraphOption.ParallelHintDegreeReadGraphOptionClass for encapsulating the ParallelHintDegree config optionstatic classReadGraphOption.ReadGraphOptionDataBuilderstatic classReadGraphOption.SynchronizableOptionReadGraphOptionClass for option, which specifies if graph cannot be synchronized, PGX will throw an Exception
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(ReadGraphOption.ReadGraphOptionDataBuilder holder)static ReadGraphOption.OnMissingVertexOptiononMissingVertex(OnMissingVertex onMissingVertex)Creates an option, which specifies the behavior when the source or destination vertex of an edge is missingstatic ReadGraphOption.OptimizedForOptionoptimizeFor(GraphOptimizedFor optimizedFor)Creates an option, which specifies whether a graph should be optimized for read or updatestatic ReadGraphOption.SynchronizableOptionReadGraphOptionsynchronizable()Creates an option, which specifies if a graph cannot be synchronized, PGX will throw an Exceptionstatic <T extends ReadGraphOption>
voidvalidateUnique(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.ParallelHintDegreeReadGraphOptionwithParallelHintDegree(int parallelHintDegree)Creates an option, which specifies the parallel hint degree to use for internal queries
-
-
-
Field Detail
-
OPTIMIZED_FOR_UPDATES
static final ReadGraphOption.OptimizedForOption OPTIMIZED_FOR_UPDATES
-
OPTIMIZED_FOR_READ
static final ReadGraphOption.OptimizedForOption OPTIMIZED_FOR_READ
-
SYNCHRONIZABLE
static final ReadGraphOption.SynchronizableOptionReadGraphOption SYNCHRONIZABLE
-
ON_MISSING_VERTEX_IGNORE_EDGE
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE
-
ON_MISSING_VERTEX_IGNORE_EDGE_LOG
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE_LOG
-
ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE
-
ON_MISSING_VERTEX_ERROR
static final ReadGraphOption.OnMissingVertexOption ON_MISSING_VERTEX_ERROR
-
-
Method Detail
-
validateUnique
static <T extends ReadGraphOption> void 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.- Parameters:
options- the list of options to validateclazz- the type of option to look forerrorMessage- the error message to be thrown when validation fails
-
optimizeFor
static ReadGraphOption.OptimizedForOption optimizeFor(GraphOptimizedFor optimizedFor)
Creates an option, which specifies whether a graph should be optimized for read or update- Parameters:
optimizedFor- specifies what the graph should be optimized for (read or update)- Returns:
- the option, which encapsulates the optimizedFor parameter
-
onMissingVertex
static ReadGraphOption.OnMissingVertexOption onMissingVertex(OnMissingVertex onMissingVertex)
Creates an option, which specifies the behavior when the source or destination vertex of an edge is missing- Parameters:
onMissingVertex- specifies the behavior when the source or destination vertex of an edge is missing- Returns:
- the option, which encapsulates the onMissingVertex option
-
withParallelHintDegree
static ReadGraphOption.ParallelHintDegreeReadGraphOption withParallelHintDegree(int parallelHintDegree)
Creates an option, which specifies the parallel hint degree to use for internal queries- Parameters:
parallelHintDegree- specifies the parallel hint degree to use for internal queries- Returns:
- the option, which encapsulates the parallelHintDegree option
-
synchronizable
static ReadGraphOption.SynchronizableOptionReadGraphOption synchronizable()
Creates an option, which specifies if a graph cannot be synchronized, PGX will throw an Exception
-
apply
void apply(ReadGraphOption.ReadGraphOptionDataBuilder holder)
-
-