Kudu C++ client API
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
scan_predicate.h
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing,
12 // software distributed under the License is distributed on an
13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, either express or implied. See the License for the
15 // specific language governing permissions and limitations
16 // under the License.
17 #ifndef KUDU_CLIENT_SCAN_PREDICATE_H
18 #define KUDU_CLIENT_SCAN_PREDICATE_H
19 
20 #ifdef KUDU_HEADERS_NO_STUBS
21 #include "kudu/gutil/macros.h"
22 #else
23 #include "kudu/client/stubs.h"
24 #endif
25 
26 #include "kudu/util/kudu_export.h"
27 
28 namespace kudu {
29 namespace client {
30 
34 class KUDU_EXPORT KuduPredicate {
35  public:
37  enum ComparisonOp {
38  LESS_EQUAL,
39  GREATER_EQUAL,
40  EQUAL,
41  LESS,
42  GREATER,
43  };
44 
45  ~KuduPredicate();
46 
48  KuduPredicate* Clone() const;
49 
54  class KUDU_NO_EXPORT Data;
55  private:
56  friend class ComparisonPredicateData;
57  friend class ErrorPredicateData;
58  friend class InListPredicateData;
59  friend class IsNotNullPredicateData;
60  friend class IsNullPredicateData;
61  friend class KuduTable;
62  friend class ScanConfiguration;
63 
64  explicit KuduPredicate(Data* d);
65 
66  Data* data_;
67  DISALLOW_COPY_AND_ASSIGN(KuduPredicate);
68 };
69 
70 } // namespace client
71 } // namespace kudu
72 #endif // KUDU_CLIENT_SCAN_PREDICATE_H
ComparisonOp
Supported comparison operators.
Definition: scan_predicate.h:37
A representation of comparison predicate for Kudu queries.
Definition: scan_predicate.h:34
A representation of a table on a particular cluster.
Definition: client.h:868