Class DeclarativeMatchStep<S>

java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,Map<String,Object>>
org.apache.tinkerpop.gremlin.process.traversal.step.map.DeclarativeMatchStep<S>
All Implemented Interfaces:
Serializable, Cloneable, Iterator<Traverser.Admin<Map<String,Object>>>, Step<S,Map<String,Object>>, Configuring, Parameterizing
Direct Known Subclasses:
GqlMatchStep

public class DeclarativeMatchStep<S> extends AbstractStep<S,Map<String,Object>> implements Configuring
A placeholder step that represents a declarative pattern-matching query. This step is not directly executable; a graph provider must register an execution strategy that replaces it with a concrete implementation.

The query language is intentionally unset (null) by default. Graph providers accept or reject the query language they receive: a null value means the user did not specify a language and the provider should use its native query language; a non-null value is an explicit hint that the provider may accept or reject. Use the .with("queryLanguage", value) modulator to specify a language explicitly.

Since:
4.0.0
See Also:
  • Field Details

  • Constructor Details

    • DeclarativeMatchStep

      public DeclarativeMatchStep(Traversal.Admin traversal, String matchQuery, Map<String,Object> params)
      Constructs a DeclarativeMatchStep as a mid-traversal step with the given query and optional parameters. The query language is left unset (null); graph providers treat null as "use your native language."
      Parameters:
      traversal - the parent traversal
      matchQuery - the declarative query string
      params - optional query parameters (may be null)
    • DeclarativeMatchStep

      public DeclarativeMatchStep(Traversal.Admin traversal, String matchQuery, Map<String,Object> params, String queryLanguage, boolean isStart)
      Constructs a DeclarativeMatchStep with the given query, optional parameters, query language, and start-step flag.
      Parameters:
      traversal - the parent traversal
      matchQuery - the declarative query string
      params - optional query parameters (may be null)
      queryLanguage - the query language identifier, or null if not specified
      isStart - true when this step is the first step in the traversal (spawned from a GraphTraversalSource); the step will self-seed rather than pulling from upstream starts
  • Method Details