Kudu C++ client API
 All Classes Namespaces 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 #include "kudu/gutil/port.h"
23 #else
24 #include "kudu/client/stubs.h"
25 #endif
26 
27 #include "kudu/client/schema.h"
28 #include "kudu/util/kudu_export.h"
29 
30 namespace kudu {
31 namespace client {
32 
36 class KUDU_EXPORT KuduPredicate {
37  public:
39  enum ComparisonOp {
40  LESS_EQUAL,
41  GREATER_EQUAL,
42  EQUAL,
43  LESS,
44  GREATER,
45  };
46 
47  ~KuduPredicate();
48 
50  KuduPredicate* Clone() const;
51 
56  class KUDU_NO_EXPORT Data;
57  private:
58  friend class ComparisonPredicateData;
59  friend class ErrorPredicateData;
60  friend class KuduTable;
61  friend class ScanConfiguration;
62 
63  explicit KuduPredicate(Data* d);
64 
65  Data* data_;
66  DISALLOW_COPY_AND_ASSIGN(KuduPredicate);
67 };
68 
69 } // namespace client
70 } // namespace kudu
71 #endif // KUDU_CLIENT_SCAN_PREDICATE_H
ComparisonOp
Supported comparison operators.
Definition: scan_predicate.h:39
A representation of comparison predicate for Kudu queries.
Definition: scan_predicate.h:36
A representation of a table on a particular cluster.
Definition: client.h:648