Class GafferPopGraphVariables

  • All Implemented Interfaces:
    org.apache.tinkerpop.gremlin.structure.Graph.Variables

    public final class GafferPopGraphVariables
    extends Object
    implements org.apache.tinkerpop.gremlin.structure.Graph.Variables
    • Field Detail

      • DATA_AUTHS

        public static final String DATA_AUTHS
        Variable key for the list of data auths for the default user.
        See Also:
        Constant Field Values
      • USER_ID

        public static final String USER_ID
        Variable key for the userId used for constructing a default user.
        See Also:
        Constant Field Values
      • GET_ELEMENTS_LIMIT

        public static final String GET_ELEMENTS_LIMIT
        The max number of elements that can be returned by GetElements
        See Also:
        Constant Field Values
      • HAS_STEP_FILTER_STAGE

        public static final String HAS_STEP_FILTER_STAGE
        When to apply HasStep filtering
        See Also:
        Constant Field Values
      • CYPHER_KEY

        public static final String CYPHER_KEY
        Key used in a with step to include a opencypher query traversal
        See Also:
        Constant Field Values
      • LAST_OPERATION_CHAIN

        public static final String LAST_OPERATION_CHAIN
        The variable with the last Gaffer operation chain that was ran from the Gremlin query
        See Also:
        Constant Field Values
    • Constructor Detail

      • GafferPopGraphVariables

        public GafferPopGraphVariables​(Map<String,​Object> variables)
      • GafferPopGraphVariables

        public GafferPopGraphVariables()
    • Method Detail

      • keys

        public Set<String> keys()
        Specified by:
        keys in interface org.apache.tinkerpop.gremlin.structure.Graph.Variables
      • get

        public <R> Optional<R> get​(String key)
        Specified by:
        get in interface org.apache.tinkerpop.gremlin.structure.Graph.Variables
      • remove

        public void remove​(String key)
        Specified by:
        remove in interface org.apache.tinkerpop.gremlin.structure.Graph.Variables
      • set

        public void set​(String key,
                        Object value)
        Specified by:
        set in interface org.apache.tinkerpop.gremlin.structure.Graph.Variables
      • setOperationOptions

        public void setOperationOptions​(Iterable<String> opOptions)
        Sets the operation options key, attempts to convert to a String Map by spitting each value on ':'.
        Parameters:
        opOptions - List of String key value pairs e.g.
         [ "key:value", "key2:value2" ] 
      • getOperationOptions

        public Map<String,​String> getOperationOptions()
        Gets the operation options if available.
        Returns:
        Operation options map
      • getUser

        public User getUser()
      • getElementsLimit

        public Integer getElementsLimit()
      • getHasStepFilterStage

        public String getHasStepFilterStage()
      • getLastOperationChain

        public OperationChain<?> getLastOperationChain()