org.apache.tinkerpop.gremlin.process.traversal.step.map

## Class MathStep.TinkerExpression

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.step.map.MathStep.TinkerExpression

- All Implemented Interfaces:
    Serializable
  Enclosing class:
    MathStep<S>

      public static class MathStep.TinkerExpression
      extends Object
      implements Serializable

  A wrapper for the `Expression` class. That class is not marked `Serializable` and therefore gives problems in OLAP specifically with Spark. This wrapper allows the `Expression` to be serialized in that context with Java serialization.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TinkerExpression(String equation, Set<String> variables)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Expression` | `getExpression()`
    `Set<String>` | `getVariables()`

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

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

- - ### Constructor Detail

    - #### TinkerExpression

          public TinkerExpression(String equation,
                                  Set<String> variables)

  - ### Method Detail

    - #### getExpression

          public Expression getExpression()

    - #### getVariables

          public Set<String> getVariables()

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