Files
doris/be/src/exprs/tuple_is_null_predicate.h
ZHAO Chun 90d71508ff Add UserFunctionCache to cache UDF's library (#453)
* Add UserFunctionCache to cache UDF's library

This patch replace LibCache with UserFunctionCache. LibCache use HDFS
URL to identify a UDF's Library, and when BE process restart all of
downloaded library should be loaded another time. We use function id
corresponding to a library, and when process restart, all downloaded
libraries can be loaded without another downloading.

* update
2018-12-21 22:07:21 +08:00

54 lines
1.7 KiB
C++

// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_QUERY_EXPRS_TUPLE_IS_NULL_PREDICATE_H
#define DORIS_BE_SRC_QUERY_EXPRS_TUPLE_IS_NULL_PREDICATE_H
#include "common/object_pool.h"
#include "exprs/predicate.h"
namespace doris {
class TExprNode;
class TupleIsNullPredicate: public Predicate {
public:
virtual Expr* clone(ObjectPool* pool) const override {
return pool->add(new TupleIsNullPredicate(*this));
}
protected:
friend class Expr;
TupleIsNullPredicate(const TExprNode& node);
virtual Status prepare(
RuntimeState* state, const RowDescriptor& row_desc, ExprContext* ctx);
virtual Status get_codegend_compute_fn(RuntimeState* state, llvm::Function** fn) override;
virtual BooleanVal get_boolean_val(ExprContext* ctx, TupleRow* row);
virtual std::string debug_string() const;
private:
std::vector<TupleId> _tuple_ids;
std::vector<int32_t> _tuple_idxs;
};
}
#endif