Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
compound-predicates-ir.cc
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
#include "
exprs/compound-predicates.h
"
16
17
using namespace
impala;
18
using namespace
impala_udf;
19
20
BooleanVal
CompoundPredicate::Not
(
FunctionContext
* context,
const
BooleanVal
& v) {
21
if
(v.
is_null
)
return
BooleanVal::null();
22
return
BooleanVal
(!v.
val
);
23
}
24
impala_udf::BooleanVal::val
bool val
Definition:
udf.h:364
impala_udf::FunctionContext
Definition:
udf.h:47
impala_udf::AnyVal::is_null
bool is_null
Definition:
udf.h:359
compound-predicates.h
impala::CompoundPredicate::Not
static BooleanVal Not(FunctionContext *context, const BooleanVal &)
Definition:
compound-predicates-ir.cc:20
impala_udf::BooleanVal
Definition:
udf.h:363
be
src
exprs
compound-predicates-ir.cc
Generated on Thu May 7 2015 16:10:36 for Impala by
1.8.6