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

## Class ProductiveByStrategy.Builder

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.ProductiveByStrategy.Builder

- Enclosing class:
    ProductiveByStrategy

      public static class ProductiveByStrategy.Builder
      extends Object

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ProductiveByStrategy` | `create()`
    `ProductiveByStrategy.Builder` | `productiveKeys(Collection<String> keys)` Specify the list of property keys that should always be productive for `by(String)`.
    `ProductiveByStrategy.Builder` | `productiveKeys(String key, String... rest)` Specify the list of property keys that should always be productive for `by(String)`.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### productiveKeys

          public ProductiveByStrategy.Builder productiveKeys(String key,
                                                             String... rest)

      Specify the list of property keys that should always be productive for `by(String)`. If the keys are not set, then all `by(String)` are productive. Arguments to `by()` that are not of type `ValueTraversal` will not be considered.

    - #### productiveKeys

          public ProductiveByStrategy.Builder productiveKeys(Collection<String> keys)

      Specify the list of property keys that should always be productive for `by(String)`. If the keys are not set, then all `by(String)` are productive. Arguments to `by()` that are not of type `ValueTraversal` will not be considered.

    - #### create

          public ProductiveByStrategy create()

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