org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration

## Class SubgraphStrategy

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy>
  - - org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.SubgraphStrategy

- All Implemented Interfaces:
    Serializable, Comparable<Class<? extends TraversalStrategy>>, TraversalStrategy<TraversalStrategy.DecorationStrategy>, TraversalStrategy.DecorationStrategy

      public final class SubgraphStrategy
      extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy>
      implements TraversalStrategy.DecorationStrategy

  This `TraversalStrategy` provides a way to limit the view of a `Traversal`. By providing `Traversal` representations that represent a form of filtering criterion for vertices and/or edges, this strategy will inject that criterion into the appropriate places of a traversal thus restricting what it traverses and returns.
  Author:
    Stephen Mallette (http://stephen.genoprime.com), Marko A. Rodriguez (http://markorodriguez.com)
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SubgraphStrategy.Builder`

    - ### Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy

      `TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `EDGES`
    `static String` | `VERTEX_PROPERTIES`
    `static String` | `VERTICES`

    - ### Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy

      `STRATEGY`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `apply(Traversal.Admin<?,?> traversal)`
    `Set<Class<? extends TraversalStrategy.DecorationStrategy>>` | `applyPost()` The set of strategies that must be executed after this strategy is executed.
    `static SubgraphStrategy.Builder` | `build()`
    `static SubgraphStrategy` | `create(Configuration configuration)`
    `Configuration` | `getConfiguration()` Get the configuration representation of this strategy.
    `Traversal<Edge,?>` | `getEdgeCriterion()`
    `Traversal<Vertex,?>` | `getVertexCriterion()`
    `Traversal<VertexProperty,?>` | `getVertexPropertyCriterion()`

    - ### Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy

      `equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.DecorationStrategy

      `compareTo, getTraversalCategory`

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy

      `applyPrior`

- - ### Field Detail

    - #### VERTICES

          public static final String VERTICES

      See Also:
        Constant Field Values

    - #### EDGES

          public static final String EDGES

      See Also:
        Constant Field Values

    - #### VERTEX_PROPERTIES

          public static final String VERTEX_PROPERTIES

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### apply

          public void apply(Traversal.Admin<?,?> traversal)

      Specified by:
        `apply` in interface `TraversalStrategy<TraversalStrategy.DecorationStrategy>`

    - #### getConfiguration

          public Configuration getConfiguration()

      Description copied from interface: `TraversalStrategy`
      Get the configuration representation of this strategy. This is useful for converting a strategy into a serialized form.
      Specified by:
        `getConfiguration` in interface `TraversalStrategy<TraversalStrategy.DecorationStrategy>`
      Returns:
        the configuration used to create this strategy

    - #### applyPost

          public Set<Class<? extends TraversalStrategy.DecorationStrategy>> applyPost()

      Description copied from interface: `TraversalStrategy`
      The set of strategies that must be executed after this strategy is executed. If there are no ordering requirements, the default implementation returns an empty set.
      Specified by:
        `applyPost` in interface `TraversalStrategy<TraversalStrategy.DecorationStrategy>`
      Returns:
        the set of strategies that must be executed post this one

    - #### getVertexCriterion

          public Traversal<Vertex,?> getVertexCriterion()

    - #### getEdgeCriterion

          public Traversal<Edge,?> getEdgeCriterion()

    - #### getVertexPropertyCriterion

          public Traversal<VertexProperty,?> getVertexPropertyCriterion()

    - #### create

          public static SubgraphStrategy create(Configuration configuration)

    - #### build

          public static SubgraphStrategy.Builder build()

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.