Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
null-literal.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 
16 #ifndef IMPALA_EXPRS_NULL_LITERAL_H_
17 #define IMPALA_EXPRS_NULL_LITERAL_H_
18 
19 #include "exprs/expr.h"
20 
21 namespace impala {
22 
23 class TExprNode;
24 
25 class NullLiteral: public Expr {
26  public:
28  virtual Status GetCodegendComputeFn(RuntimeState* state, llvm::Function** fn);
29 
40 
41  virtual std::string DebugString() const;
42 
43  protected:
44  friend class Expr;
45 
46  NullLiteral(const TExprNode& node) : Expr(node) { }
47 };
48 
49 }
50 
51 #endif
virtual impala_udf::IntVal GetIntVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:45
virtual impala_udf::BooleanVal GetBooleanVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:30
NullLiteral(PrimitiveType type)
Definition: null-literal.h:27
This object has a compatible storage format with boost::ptime.
Definition: udf.h:495
virtual impala_udf::TinyIntVal GetTinyIntVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:35
virtual impala_udf::TimestampVal GetTimestampVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:70
virtual impala_udf::FloatVal GetFloatVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:55
virtual impala_udf::SmallIntVal GetSmallIntVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:40
PrimitiveType
Definition: types.h:27
NullLiteral(const TExprNode &node)
Definition: null-literal.h:46
virtual impala_udf::StringVal GetStringVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:65
This is the superclass of all expr evaluation nodes.
Definition: expr.h:116
const ColumnType & type() const
Definition: expr.h:145
virtual impala_udf::DecimalVal GetDecimalVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:75
virtual Status GetCodegendComputeFn(RuntimeState *state, llvm::Function **fn)
Definition: null-literal.cc:86
virtual impala_udf::BigIntVal GetBigIntVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:50
virtual impala_udf::DoubleVal GetDoubleVal(ExprContext *, TupleRow *)
Definition: null-literal.cc:60
virtual std::string DebugString() const