E
- The expansion type.public abstract class AbstractGraphExpander<E extends AbstractGraphExpander<E>>
extends java.lang.Object
Constructor and Description |
---|
AbstractGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, java.util.function.Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig,PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup) |
Modifier and Type | Method and Description |
---|---|
E |
edgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy)
Set the strategy for how edge properties of duplicate elements are handled.
|
PgxGraph |
expand()
Call the expand operation and await execution.
|
PgxGraph |
expand(java.lang.String newGraphName)
Call the expand operation and await execution.
|
PgxFuture<PgxGraph> |
expandAsync()
Call the expand operation.
|
PgxFuture<PgxGraph> |
expandAsync(java.lang.String newGraphName)
Call the expand operation.
|
PgxGraph |
expandNewSnapshot()
Blocking version of
expandNewSnapshotAsync() . |
PgxFuture<PgxGraph> |
expandNewSnapshotAsync()
Call the expand operation.
|
E |
vertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy)
Set the strategy for how vertex properties of duplicate elements are handled.
|
E |
withConfig(PartitionedGraphConfig config)
Specify a graph config used to load the additional graph data.
|
public AbstractGraphExpander(PartitionedGraphConfig graphConfig, PgxSession session, java.util.function.Function<oracle.pgx.api.expansion.internal.GraphExpansionConfig,PgxFuture<PgxGraph>> expansionFunction, oracle.pgx.api.subgraph.internal.KeystoreLookup keystoreLookup)
public E edgePropertiesMergingStrategy(PropertyMergeStrategy edgePropertyMergeStrategy)
PropertyMergeStrategy.getDefault()
.edgePropertyMergeStrategy
- The edge property merge strategy.public PgxGraph expand() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxGraph expand(java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
newGraphName
- The new graph name.java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxFuture<PgxGraph> expandAsync()
public PgxFuture<PgxGraph> expandAsync(java.lang.String newGraphName)
public PgxGraph expandNewSnapshot() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
expandNewSnapshotAsync()
. Calls the expand operation and awaits execution. This creates a new snapshot, instead of a new graph.java.util.concurrent.ExecutionException
- when the execution fails.java.lang.InterruptedException
- when the operation gets interrupted.public PgxFuture<PgxGraph> expandNewSnapshotAsync()
public E vertexPropertiesMergingStrategy(PropertyMergeStrategy vertexPropertyMergeStrategy)
PropertyMergeStrategy.getDefault()
.vertexPropertyMergeStrategy
- The vertex property merge strategy.public E withConfig(PartitionedGraphConfig config)
config
- The graph config.