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 Object
  • Method Details

    • setNewGraphName

      public B setNewGraphName(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. Constants PgxGraph.TrivialVertices.KEEP_TRIVIAL_VERTICES or PgxGraph.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. Constants PgxGraph.SelfEdges.KEEP_SELF_EDGES or PgxGraph.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. Constants PgxGraph.MultiEdges.KEEP_MULTI_EDGES or PgxGraph.MultiEdges.REMOVE_MULTI_EDGES can be used
    • setKeptVertexProperties

      public B setKeptVertexProperties(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(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(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(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 ExecutionException, InterruptedException
      Builds the MutationStrategy with the chosen parameters. Parameters that were not set, are instantiated with default values.
      Throws:
      ExecutionException
      InterruptedException