Package oracle.pgx.config
Interface ReadGraphOption
- All Known Implementing Classes:
ReadGraphOption.OnMissingVertexOption,ReadGraphOption.OptimizedForOption,ReadGraphOption.ParallelHintDegreeReadGraphOption,ReadGraphOption.PropertyLoadingOption,ReadGraphOption.SynchronizableOptionReadGraphOption
public interface ReadGraphOption
Interface for specifying options for PgxSession#readGraphByName(String, GraphSource, ReadGraphOption...)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classClass for encapsulating a OnMissingVertex config optionstatic classClass for encapsulating a GraphOptimizedFor config optionstatic classClass for encapsulating the ParallelHintDegree config optionstatic enumstatic classstatic classstatic classClass for option, which specifies if graph cannot be synchronized, PGX will throw an Exception -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReadGraphOption.OnMissingVertexOptionstatic final ReadGraphOption.OnMissingVertexOptionstatic final ReadGraphOption.OnMissingVertexOptionstatic final ReadGraphOption.OnMissingVertexOptionstatic final ReadGraphOption.OptimizedForOptionstatic final ReadGraphOption.OptimizedForOptionstatic final ReadGraphOption.SynchronizableOptionReadGraphOption -
Method Summary
Modifier and TypeMethodDescriptionCreates an option, to load the graph with all properties.voidexcludeProperties(Map<String, List<String>> propertyFilter) Creates an option, to load the graph without the excluded properties.includeProperties(Map<String, List<String>> propertyFilter) Creates an option, that specifies which properties should be loaded with the graph.onMissingVertex(OnMissingVertex onMissingVertex) Creates an option, which specifies the behavior when the source or destination vertex of an edge is missingoptimizeFor(GraphOptimizedFor optimizedFor) Creates an option, which specifies whether a graph should be optimized for read or updateCreates an option, which specifies if a graph cannot be synchronized, PGX will throw an ExceptionCreates an option, to load the graph without properties.static <T extends ReadGraphOption>
voidvalidateUnique(Collection<ReadGraphOption> options, Class<T> clazz, String errorMessage) Validates a given option list to contain only one item of the specified type.withParallelHintDegree(int parallelHintDegree) Creates an option, which specifies the parallel hint degree to use for internal queries
-
Field Details
-
OPTIMIZED_FOR_UPDATES
-
OPTIMIZED_FOR_READ
-
SYNCHRONIZABLE
-
ON_MISSING_VERTEX_IGNORE_EDGE
-
ON_MISSING_VERTEX_IGNORE_EDGE_LOG
-
ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE
-
ON_MISSING_VERTEX_ERROR
-
-
Method Details
-
validateUnique
static <T extends ReadGraphOption> void validateUnique(Collection<ReadGraphOption> options, Class<T> clazz, 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
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
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
Creates an option, which specifies if a graph cannot be synchronized, PGX will throw an Exception -
includeProperties
static ReadGraphOption.PropertyLoadingOption includeProperties(Map<String, List<String>> propertyFilter) Creates an option, that specifies which properties should be loaded with the graph. -
excludeProperties
static ReadGraphOption.PropertyLoadingOption excludeProperties(Map<String, List<String>> propertyFilter) Creates an option, to load the graph without the excluded properties. -
topologyOnly
Creates an option, to load the graph without properties. -
allProperties
Creates an option, to load the graph with all properties. -
apply
-