Kudu C++ client API
Loading...
Searching...
No Matches
columnar_scan_batch.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_COLUMNAR_SCAN_BATCH_H
18#define KUDU_CLIENT_COLUMNAR_SCAN_BATCH_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#include "kudu/util/status.h"
28
29namespace kudu {
30class Slice;
31
32namespace client {
33
51class KUDU_EXPORT KuduColumnarScanBatch {
52 public:
55
57 int NumRows() const;
58
73 Status GetFixedLengthColumn(int idx, Slice* data) const;
74
88 Status GetVariableLengthColumn(int idx, Slice* offsets, Slice* data) const;
89
106
107 private:
108 class KUDU_NO_EXPORT Data;
109
110 friend class KuduScanner;
111
112 Data* data_;
113 DISALLOW_COPY_AND_ASSIGN(KuduColumnarScanBatch);
114};
115
116
117} // namespace client
118} // namespace kudu
119
120#endif
A wrapper around externally allocated data.
Definition slice.h:51
A representation of an operation's outcome.
Definition status.h:165
A batch of columnar data returned from a scanner.
Definition columnar_scan_batch.h:51
Status GetVariableLengthColumn(int idx, Slice *offsets, Slice *data) const
Status GetFixedLengthColumn(int idx, Slice *data) const
Status GetNonNullBitmapForColumn(int idx, Slice *data) const
This class is a representation of a single scan.
Definition client.h:2712