iceberg-cpp
Loading...
Searching...
No Matches
iceberg
expression
inclusive_metrics_evaluator.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
17
* under the License.
18
*/
19
20
#pragma once
21
39
40
#include <memory>
41
42
#include "
iceberg/expression/expression.h
"
43
#include "iceberg/iceberg_export.h"
44
#include "iceberg/result.h"
45
#include "
iceberg/type_fwd.h
"
46
47
namespace
iceberg {
48
49
class
ICEBERG_EXPORT
InclusiveMetricsEvaluator
{
50
public
:
56
static
Result<std::unique_ptr<InclusiveMetricsEvaluator>> Make(
57
std::shared_ptr<Expression> expr,
const
Schema
& schema,
bool
case_sensitive =
true
);
58
59
~InclusiveMetricsEvaluator
();
60
65
Result<bool> Evaluate(
const
DataFile
& data_file)
const
;
66
67
private
:
68
explicit
InclusiveMetricsEvaluator
(std::shared_ptr<Expression> expr);
69
70
std::shared_ptr<Expression> expr_;
71
};
72
73
}
// namespace iceberg
iceberg::InclusiveMetricsEvaluator
Definition
inclusive_metrics_evaluator.h:49
iceberg::Schema
A schema for a Table.
Definition
schema.h:49
expression.h
iceberg::DataFile
DataFile carries data file path, partition tuple, metrics, ...
Definition
manifest_entry.h:62
type_fwd.h
Generated by
1.9.8