Interface Params

    • Method Detail

      • empty

        static Params empty()
        Returns an immutable implementation of Params with no parameters.
        Returns:
        an empty Params
      • create

        static Params create()
        Returns a modifiable implementation of Params with no parameters.
        Returns:
        an empty Params
      • create

        static Params create​(int initialCapacity)
        Returns a modifiable implementation of Params with no parameters.
        Parameters:
        initialCapacity - initial capacity of backing map
        Returns:
        an empty Params
      • of

        static Params of​(String name,
                         Value<?> value)
        Returns an immutable implementation of Params with single parameter.
        Returns:
        non empty Params with single parameter
      • of

        static Params of​(String name1,
                         Value<?> value1,
                         String name2,
                         Value<?> value2)
        Returns an immutable implementation of Params with two parameters.
        Returns:
        non empty Params with two parameters
      • copyOf

        static Params copyOf​(Map<String,​Value<?>> values)
        Returns a mutable implementation of Params containing the same entries as given map.
        Parameters:
        values - entries to be copied
        Returns:
        Params containing specified values
      • copyOf

        static Params copyOf​(Params params)
        Returns a mutable implementation of Params containing the same entries as given parameters.
        Parameters:
        params - parameters to be copied
        Returns:
        Params containing specified parameters
      • isEmpty

        boolean isEmpty()
        Returns true if there are no defined parameters in this container.
        Returns:
        true if there are no defined parameters in this container.
      • put

        <T extends TypeParams put​(String name,
                                    Value<T> value)
        Associates the specified value with the specified name in this params container.
        Parameters:
        name - name with which the specified value is to be associated
        value - value to be associated with the specified name
        Returns:
        this params container
      • toPb

        Map<String,​com.yandex.ydb.ValueProtos.TypedValue> toPb()
        Converts each parameter value into Protobuf message ValueProtos.TypedValue and return them as unmodifiable map.
        Returns:
        map of converted parameters
      • values

        Map<String,​Value<?>> values()
        Returns original values as unmodifiable map.
        Returns:
        unmodifiable map of values