Package oracle.pgx.api
Class MutationStrategyBuilder<B extends MutationStrategyBuilder<B>>
java.lang.Object
oracle.pgx.api.MutationStrategyBuilder<B>
- Direct Known Subclasses:
MergingStrategyBuilder,PickingStrategyBuilder
-
Method Summary
Modifier and TypeMethodDescriptionabstract oracle.pgx.common.mutations.MutationStrategybuild()Builds theMutationStrategywith the chosen parameters.dropEdgeProperties(Collection<EdgeProperty<?>> edgeProperties) Set edge properties that will be dropped after the mutation.dropEdgeProperty(EdgeProperty<?> edgeProperty) Set edge property that will be dropped after the mutation.dropVertexProperties(Collection<VertexProperty<?, ?>> vertexProperties) Set vertex properties that will be dropped after the mutation.dropVertexProperty(VertexProperty<?, ?> vertexProperty) Set vertex property that will be dropped after the mutation.setCopyMode(PgxGraph.Mode mode) setKeptEdgeProperties(Collection<EdgeProperty<?>> propsToKeep) Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.setKeptVertexProperties(Collection<VertexProperty<?, ?>> propsToKeep) Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.setMultiEdges(PgxGraph.MultiEdges multiEdges) setNewGraphName(String newGraphName) Set name of new graph name.setSelfEdges(PgxGraph.SelfEdges selfEdges) setTrivialVertices(PgxGraph.TrivialVertices trivialVertices)
-
Method Details
-
setNewGraphName
Set name of new graph name. If null, the new graphname will be generated.- Parameters:
newGraphName-
-
setCopyMode
-
setTrivialVertices
- Parameters:
trivialVertices- defines if isolated nodes should be kept in the result. ConstantsPgxGraph.TrivialVertices.KEEP_TRIVIAL_VERTICESorPgxGraph.TrivialVertices.REMOVE_TRIVIAL_VERTICEScan be used
-
setSelfEdges
- Parameters:
selfEdges- defines if self-edges should be kept in the result. ConstantsPgxGraph.SelfEdges.KEEP_SELF_EDGESorPgxGraph.SelfEdges.REMOVE_SELF_EDGEScan be used.
-
setMultiEdges
- Parameters:
multiEdges- defines if multi-edges should be kept in the result. ConstantsPgxGraph.MultiEdges.KEEP_MULTI_EDGESorPgxGraph.MultiEdges.REMOVE_MULTI_EDGEScan be used
-
setKeptVertexProperties
Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.- Parameters:
propsToKeep-
-
setKeptEdgeProperties
Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.- Parameters:
propsToKeep-
-
dropVertexProperty
Set vertex property that will be dropped after the mutation. By default (without calling this) all vertexProperties will be kept.- Parameters:
vertexProperty-
-
dropEdgeProperty
Set edge property that will be dropped after the mutation. By default (without calling this) all edgeProperties will be kept.- Parameters:
edgeProperty-
-
dropVertexProperties
Set vertex properties that will be dropped after the mutation. By default (without calling this) all edgeProperties will be kept.- Parameters:
vertexProperties-
-
dropEdgeProperties
Set edge properties that will be dropped after the mutation. By default (without calling this) all edgeProperties will be kept.- Parameters:
edgeProperties-
-
build
public abstract oracle.pgx.common.mutations.MutationStrategy build() throws ExecutionException, InterruptedExceptionBuilds theMutationStrategywith the chosen parameters. Parameters that were not set, are instantiated with default values.
-