java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.GValueHelper

public class GValueHelper extends Object
Utility class for GValue helper methods
  • Method Details

    • resolveProperties

      public static Map<Object,List<Object>> resolveProperties(Map<Object,List<Object>> properties)
      Resolves given properties by extracting values from any GValue property values. It is assumed that the property keys are not GValues.
      Parameters:
      properties - map of properties which may have values which are GValues
      Returns:
      map of properties with GValues resolved to their values
    • resolveProperties

      public static Map<Object,List<Object>> resolveProperties(Map<Object,List<Object>> properties, Consumer<GValue<?>> gValueConsumer)
      Resolves given properties by extracting values from any GValue property values. It is assumed that the property keys are not GValues.
      Parameters:
      properties - map of properties which may have values which are GValues
      gValueConsumer - a Consumer that will be called for each GValue found in the given properties
      Returns:
      map of properties with GValues resolved to their values
    • getGValuesFromProperties

      public static Set<GValue<?>> getGValuesFromProperties(Map<Object,List<Object>> properties)
      Extracts a mutable set of GValues found from the given property map that can contain values that are GValues. It is assumed that the property keys are not GValues.
      Parameters:
      properties - map of properties which may have values which are GValues
      Returns:
      a set of GValue property values which were found in the given property map