Package oracle.pgx.api
Class MutationStrategyBuilder<B extends MutationStrategyBuilder<B>>
- java.lang.Object
-
- oracle.pgx.api.MutationStrategyBuilder<B>
-
- Direct Known Subclasses:
MergingStrategyBuilder,PickingStrategyBuilder
public abstract class MutationStrategyBuilder<B extends MutationStrategyBuilder<B>> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract oracle.pgx.common.mutations.MutationStrategybuild()Builds theMutationStrategywith the chosen parameters.BdropEdgeProperties(java.util.Collection<EdgeProperty<?>> edgeProperties)Set edge properties that will be dropped after the mutation.BdropEdgeProperty(EdgeProperty<?> edgeProperty)Set edge property that will be dropped after the mutation.BdropVertexProperties(java.util.Collection<VertexProperty<?,?>> vertexProperties)Set vertex properties that will be dropped after the mutation.BdropVertexProperty(VertexProperty<?,?> vertexProperty)Set vertex property that will be dropped after the mutation.BsetCopyMode(PgxGraph.Mode mode)BsetKeptEdgeProperties(java.util.Collection<EdgeProperty<?>> propsToKeep)Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.BsetKeptVertexProperties(java.util.Collection<VertexProperty<?,?>> propsToKeep)Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.BsetMultiEdges(PgxGraph.MultiEdges multiEdges)BsetNewGraphName(java.lang.String newGraphName)Set name of new graph name.BsetSelfEdges(PgxGraph.SelfEdges selfEdges)BsetTrivialVertices(PgxGraph.TrivialVertices trivialVertices)
-
-
-
Method Detail
-
setNewGraphName
public B setNewGraphName(java.lang.String newGraphName)
Set name of new graph name. If null, the new graphname will be generated.- Parameters:
newGraphName-
-
setCopyMode
public B setCopyMode(PgxGraph.Mode mode)
-
setTrivialVertices
public B setTrivialVertices(PgxGraph.TrivialVertices trivialVertices)
- Parameters:
trivialVertices- defines if isolated nodes should be kept in the result. ConstantsPgxGraph.TrivialVertices.KEEP_TRIVIAL_VERTICESorPgxGraph.TrivialVertices.REMOVE_TRIVIAL_VERTICEScan be used
-
setSelfEdges
public B setSelfEdges(PgxGraph.SelfEdges selfEdges)
- Parameters:
selfEdges- defines if self-edges should be kept in the result. ConstantsPgxGraph.SelfEdges.KEEP_SELF_EDGESorPgxGraph.SelfEdges.REMOVE_SELF_EDGEScan be used.
-
setMultiEdges
public B setMultiEdges(PgxGraph.MultiEdges multiEdges)
- Parameters:
multiEdges- defines if multi-edges should be kept in the result. ConstantsPgxGraph.MultiEdges.KEEP_MULTI_EDGESorPgxGraph.MultiEdges.REMOVE_MULTI_EDGEScan be used
-
setKeptVertexProperties
public B setKeptVertexProperties(java.util.Collection<VertexProperty<?,?>> propsToKeep)
Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.- Parameters:
propsToKeep-
-
setKeptEdgeProperties
public B setKeptEdgeProperties(java.util.Collection<EdgeProperty<?>> propsToKeep)
Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.- Parameters:
propsToKeep-
-
dropVertexProperty
public B dropVertexProperty(VertexProperty<?,?> vertexProperty)
Set vertex property that will be dropped after the mutation. By default (without calling this) all vertexProperties will be kept.- Parameters:
vertexProperty-
-
dropEdgeProperty
public B dropEdgeProperty(EdgeProperty<?> edgeProperty)
Set edge property that will be dropped after the mutation. By default (without calling this) all edgeProperties will be kept.- Parameters:
edgeProperty-
-
dropVertexProperties
public B dropVertexProperties(java.util.Collection<VertexProperty<?,?>> vertexProperties)
Set vertex properties that will be dropped after the mutation. By default (without calling this) all edgeProperties will be kept.- Parameters:
vertexProperties-
-
dropEdgeProperties
public B dropEdgeProperties(java.util.Collection<EdgeProperty<?>> edgeProperties)
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 java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionBuilds theMutationStrategywith the chosen parameters. Parameters that were not set, are instantiated with default values.- Throws:
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
-