iceberg-cpp
Loading...
Searching...
No Matches
metadata_scan_task_reader.h
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
22#include <cstdint>
23#include <memory>
24
27#include "iceberg/result.h"
28#include "iceberg/type_fwd.h"
29
30namespace iceberg {
31
33class ICEBERG_EXPORT MetadataScanTaskReader {
34 public:
36 struct Options {
38 int64_t batch_size = 1024;
39 };
40
43
45
51
53 MetadataScanTaskReader& operator=(const MetadataScanTaskReader&) = delete;
54
55 private:
56 explicit MetadataScanTaskReader(Options options);
57
58 const Options options_;
59};
60
61} // namespace iceberg
Opens metadata scan tasks as Arrow streams.
Definition metadata_scan_task_reader.h:33
static Result< std::unique_ptr< MetadataScanTaskReader > > Make(Options options)
Create a reusable task reader from shared read options.
Result< ArrowArrayStream > Open(const MetadataScanTask &task) const
Open a task and return an Arrow C stream for its projected rows.
Base class for metadata table scan tasks.
Definition metadata_scan_task.h:34
Definition expected.h:1199
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:34
Define Result, Status, and error helpers.
Options shared by all tasks opened by this reader.
Definition metadata_scan_task_reader.h:36