Package io.lenses.sql.udf.value
Class StructValue
- java.lang.Object
-
- io.lenses.sql.udf.value.Value
-
- io.lenses.sql.udf.value.Container
-
- io.lenses.sql.udf.value.StructValue
-
public class StructValue extends Container
-
-
Constructor Summary
Constructors Constructor Description StructValue(java.util.Map<java.lang.String,Value> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepeatedValueasRepeatedValue()StructValueasStructValue()java.util.Map<java.lang.String,Value>get()java.util.Collection<Value>getAllValues()ValuegetField(java.lang.String fieldName)static StructValueofOne(java.lang.String fieldName, Value value)static StructValueofThree(java.lang.String fieldName1, Value value1, java.lang.String fieldName2, Value value2, java.lang.String fieldName3, Value value3)static StructValueofTwo(java.lang.String fieldName1, Value value1, java.lang.String fieldName2, Value value2)-
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
-
-
-
-
Constructor Detail
-
StructValue
public StructValue(java.util.Map<java.lang.String,Value> values)
-
-
Method Detail
-
asRepeatedValue
public RepeatedValue asRepeatedValue() throws UdfException
- Specified by:
asRepeatedValuein classValue- Throws:
UdfException
-
asStructValue
public StructValue asStructValue()
- Specified by:
asStructValuein classValue
-
getAllValues
public java.util.Collection<Value> getAllValues()
-
getField
public Value getField(java.lang.String fieldName)
-
ofOne
public static StructValue ofOne(java.lang.String fieldName, Value value)
-
ofTwo
public static StructValue ofTwo(java.lang.String fieldName1, Value value1, java.lang.String fieldName2, Value value2)
-
ofThree
public static StructValue ofThree(java.lang.String fieldName1, Value value1, java.lang.String fieldName2, Value value2, java.lang.String fieldName3, Value value3)
-
-