Package com.yandex.ydb.table.query
Interface Params
-
@ParametersAreNonnullByDefault public interface Params
- Author:
- Sergey Polovko
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ParamscopyOf(Params params)Returns a mutable implementation ofParamscontaining the same entries as given parameters.static ParamscopyOf(Map<String,Value<?>> values)Returns a mutable implementation ofParamscontaining the same entries as given map.static Paramscreate()Returns a modifiable implementation ofParamswith no parameters.static Paramscreate(int initialCapacity)Returns a modifiable implementation ofParamswith no parameters.static Paramsempty()Returns an immutable implementation ofParamswith no parameters.booleanisEmpty()Returnstrueif there are no defined parameters in this container.static Paramsof(String name, Value<?> value)Returns an immutable implementation ofParamswith single parameter.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2)Returns an immutable implementation ofParamswith two parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3)Returns an immutable implementation ofParamswith three parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4)Returns an immutable implementation ofParamswith four parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5)Returns an immutable implementation ofParamswith five parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6)Returns an immutable implementation ofParamswith six parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6, String name7, Value<?> value7, String name8, Value<?> value8)Returns an immutable implementation ofParamswith eight parameters.static Paramsof(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6, String name7, Value<?> value7, String name8, Value<?> value8, String name9, Value<?> value9)Returns an immutable implementation ofParamswith nine parameters.<T extends Type>
Paramsput(String name, Value<T> value)Associates the specified value with the specified name in this params container.Map<String,com.yandex.ydb.ValueProtos.TypedValue>toPb()Converts each parameter value into Protobuf messageValueProtos.TypedValueand return them as unmodifiable map.Map<String,Value<?>>values()Returns original values as unmodifiable map.
-
-
-
Method Detail
-
empty
static Params empty()
Returns an immutable implementation ofParamswith no parameters.- Returns:
- an empty
Params
-
create
static Params create()
Returns a modifiable implementation ofParamswith no parameters.- Returns:
- an empty
Params
-
create
static Params create(int initialCapacity)
Returns a modifiable implementation ofParamswith 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 ofParamswith single parameter.- Returns:
- non empty
Paramswith single parameter
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2)
Returns an immutable implementation ofParamswith two parameters.- Returns:
- non empty
Paramswith two parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3)
Returns an immutable implementation ofParamswith three parameters.- Returns:
- non empty
Paramswith three parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4)
Returns an immutable implementation ofParamswith four parameters.- Returns:
- non empty
Paramswith four parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5)
Returns an immutable implementation ofParamswith five parameters.- Returns:
- non empty
Paramswith five parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6)
Returns an immutable implementation ofParamswith six parameters.- Returns:
- non empty
Paramswith six parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6, String name7, Value<?> value7, String name8, Value<?> value8)
Returns an immutable implementation ofParamswith eight parameters.- Returns:
- non empty
Paramswith eight parameters
-
of
static Params of(String name1, Value<?> value1, String name2, Value<?> value2, String name3, Value<?> value3, String name4, Value<?> value4, String name5, Value<?> value5, String name6, Value<?> value6, String name7, Value<?> value7, String name8, Value<?> value8, String name9, Value<?> value9)
Returns an immutable implementation ofParamswith nine parameters.- Returns:
- non empty
Paramswith nine parameters
-
copyOf
static Params copyOf(Map<String,Value<?>> values)
Returns a mutable implementation ofParamscontaining the same entries as given map.- Parameters:
values- entries to be copied- Returns:
Paramscontaining specified values
-
copyOf
static Params copyOf(Params params)
Returns a mutable implementation ofParamscontaining the same entries as given parameters.- Parameters:
params- parameters to be copied- Returns:
Paramscontaining specified parameters
-
isEmpty
boolean isEmpty()
Returnstrueif there are no defined parameters in this container.- Returns:
trueif there are no defined parameters in this container.
-
put
<T extends Type> Params 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 associatedvalue- 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 messageValueProtos.TypedValueand return them as unmodifiable map.- Returns:
- map of converted parameters
-
-