Package io.lenses.sql.udf.value
Class RepeatedValue<A extends Value>
- java.lang.Object
-
- io.lenses.sql.udf.value.Value
-
- io.lenses.sql.udf.value.Container
-
- io.lenses.sql.udf.value.RepeatedValue<A>
-
-
Constructor Summary
Constructors Constructor Description RepeatedValue(java.util.List<A> values, DataType valueType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepeatedValueasRepeatedValue()StructValueasStructValue()static <T extends Value>
RepeatedValue<T>empty(DataType valueType)java.util.List<A>get()Valueget(int pos)java.util.Collection<A>getAllValues()DataTypegetValueType()static <T extends Value>
RepeatedValue<T>ofOne(T first)static <T extends Value>
RepeatedValue<T>ofThree(T first, T second, T third)static <T extends Value>
RepeatedValue<T>ofTwo(T first, T second)static <T extends Value>
RepeatedValue<T>ofValues(java.util.List<T> values)-
Methods inherited from class io.lenses.sql.udf.value.Container
asContainer, asPrimitive, isPrimitive, toBigDecimalValue, toBigIntValue, toBooleanValue, toByteValue, toDoubleValue, toFloatValue, toIntValue, toLongValue, toStringValue
-
Methods inherited from class io.lenses.sql.udf.value.Value
convert, getDataType, isContainer, toOptional
-
-
-
-
Method Detail
-
asRepeatedValue
public RepeatedValue asRepeatedValue()
- Specified by:
asRepeatedValuein classValue
-
asStructValue
public StructValue asStructValue() throws UdfException
- Specified by:
asStructValuein classValue- Throws:
UdfException
-
getAllValues
public java.util.Collection<A> getAllValues()
-
get
public Value get(int pos)
-
getValueType
public DataType getValueType()
-
empty
public static <T extends Value> RepeatedValue<T> empty(DataType valueType)
-
ofOne
public static <T extends Value> RepeatedValue<T> ofOne(T first)
-
ofTwo
public static <T extends Value> RepeatedValue<T> ofTwo(T first, T second)
-
ofThree
public static <T extends Value> RepeatedValue<T> ofThree(T first, T second, T third)
-
ofValues
public static <T extends Value> RepeatedValue<T> ofValues(java.util.List<T> values)
-
-