Class ExecutionPropertyMap<T extends ExecutionProperty>

    • Constructor Detail

      • ExecutionPropertyMap

        public ExecutionPropertyMap​(String id)
        Constructor for ExecutionPropertyMap class.
        Parameters:
        id - ID of the vertex / edge to keep the execution property of.
    • Method Detail

      • getId

        public String getId()
        ID of the item this ExecutionPropertyMap class is keeping track of.
        Returns:
        the ID of the item this ExecutionPropertyMap class is keeping track of.
      • put

        public T put​(T executionProperty)
        Put the given execution property in the ExecutionPropertyMap. By default, it does not finalize the property.
        Parameters:
        executionProperty - execution property to insert.
        Returns:
        the previous execution property, or null if there was no execution property with the specified property key.
      • put

        public T put​(T executionProperty,
                     Boolean finalize)
        Put the given execution property in the ExecutionPropertyMap.
        Parameters:
        executionProperty - execution property to insert.
        finalize - whether or not to finalize the execution property.
        Returns:
        the previous execution property, or null if there was no execution property with the specified property key.
      • get

        public <U extends SerializableOptional<U> get​(Class<? extends ExecutionProperty<U>> executionPropertyKey)
        Get the value of the given execution property type.
        Type Parameters:
        U - Type of the return value.
        Parameters:
        executionPropertyKey - the execution property type to find the value of.
        Returns:
        the value of the given execution property.
      • remove

        public T remove​(Class<? extends T> key)
        remove the execution property.
        Parameters:
        key - key of the execution property to remove.
        Returns:
        the removed execution property
      • containsKey

        public boolean containsKey​(Class<? extends T> key)
        Parameters:
        key - key to look for.
        Returns:
        whether or not the execution property map contains the key.
      • forEachProperties

        public void forEachProperties​(Consumer<? super T> action)
        Same as forEach function in Java 8, but for execution properties.
        Parameters:
        action - action to apply to each of the execution properties.
      • stream

        public Stream<T> stream()
        Returns:
        Stream of execution properties.
      • asJsonNode

        public com.fasterxml.jackson.databind.node.ObjectNode asJsonNode()
        Returns:
        JsonNode for this execution property map.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object