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