Class LiteralContext
- java.lang.Object
-
- org.apache.pinot.common.request.context.LiteralContext
-
public class LiteralContext extends Object
TheLiteralContextclass represents a literal in the query.This includes both value and type information. We translate thrift literal to this representation in server. Currently, only Boolean literal is correctly encoded in thrift and passed in. All integers are encoded as LONG in thrift, and the other numerical types are encoded as DOUBLE. The remaining types are encoded as STRING.
-
-
Constructor Summary
Constructors Constructor Description LiteralContext(Literal literal)LiteralContext(FieldSpec.DataType type, Object value)
-
-
-
Constructor Detail
-
LiteralContext
public LiteralContext(Literal literal)
-
LiteralContext
public LiteralContext(FieldSpec.DataType type, Object value)
-
-
Method Detail
-
getType
public FieldSpec.DataType getType()
-
getValue
@Nullable public Object getValue()
-
-