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.MutationStrategy
build()
Builds theMutationStrategy
with the chosen parameters.B
dropEdgeProperties(java.util.Collection<EdgeProperty<?>> edgeProperties)
Set edge properties that will be dropped after the mutation.B
dropEdgeProperty(EdgeProperty<?> edgeProperty)
Set edge property that will be dropped after the mutation.B
dropVertexProperties(java.util.Collection<VertexProperty<?,?>> vertexProperties)
Set vertex properties that will be dropped after the mutation.B
dropVertexProperty(VertexProperty<?,?> vertexProperty)
Set vertex property that will be dropped after the mutation.B
setCopyMode(PgxGraph.Mode mode)
B
setKeptEdgeProperties(java.util.Collection<EdgeProperty<?>> propsToKeep)
Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.B
setKeptVertexProperties(java.util.Collection<VertexProperty<?,?>> propsToKeep)
Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.B
setMultiEdges(PgxGraph.MultiEdges multiEdges)
B
setNewGraphName(java.lang.String newGraphName)
Set name of new graph name.B
setSelfEdges(PgxGraph.SelfEdges selfEdges)
B
setTrivialVertices(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_VERTICES
orPgxGraph.TrivialVertices.REMOVE_TRIVIAL_VERTICES
can 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_EDGES
orPgxGraph.SelfEdges.REMOVE_SELF_EDGES
can 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_EDGES
orPgxGraph.MultiEdges.REMOVE_MULTI_EDGES
can 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.InterruptedException
Builds theMutationStrategy
with the chosen parameters. Parameters that were not set, are instantiated with default values.- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
-