Package io.lenses.sql.udf.value
Class Primitive<A>
- java.lang.Object
-
- io.lenses.sql.udf.value.Value
-
- io.lenses.sql.udf.value.Primitive<A>
-
- Direct Known Subclasses:
BigDecimalValue,BigIntValue,BooleanValue,ByteArrayValue,ByteValue,DateValue,DoubleValue,FloatValue,IntValue,LongValue,StringValue,TimeMicrosValue,TimeMillisValue,TimestampMicrosValue,TimestampMillisValue
public abstract class Primitive<A> extends Value
-
-
Field Summary
Fields Modifier and Type Field Description protected Aunderlying
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerasContainer()PrimitiveasPrimitive()RepeatedValueasRepeatedValue()StructValueasStructValue()Aget()booleanisPrimitive()-
Methods inherited from class io.lenses.sql.udf.value.Value
convert, getDataType, isContainer, toBigDecimalValue, toBigIntValue, toBooleanValue, toByteValue, toDoubleValue, toFloatValue, toIntValue, toLongValue, toOptional, toStringValue
-
-
-
-
Field Detail
-
underlying
protected A underlying
-
-
Method Detail
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein classValue
-
asPrimitive
public Primitive asPrimitive()
- Specified by:
asPrimitivein classValue
-
asContainer
public Container asContainer() throws UdfException
- Specified by:
asContainerin classValue- Throws:
UdfException
-
asRepeatedValue
public RepeatedValue asRepeatedValue() throws UdfException
- Specified by:
asRepeatedValuein classValue- Throws:
UdfException
-
asStructValue
public StructValue asStructValue() throws UdfException
- Specified by:
asStructValuein classValue- Throws:
UdfException
-
-