iceberg-cpp
Loading...
Searching...
No Matches
data_table_scan.h
Go to the documentation of this file.
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
24
25#include <memory>
26#include <vector>
27
29#include "iceberg/result.h"
30#include "iceberg/table_scan.h"
31#include "iceberg/type_fwd.h"
32
33namespace iceberg {
34
36class ICEBERG_EXPORT DataTableScan : public TableScan {
37 public:
38 ~DataTableScan() override = default;
39
42 std::shared_ptr<TableMetadata> metadata, std::shared_ptr<Schema> schema,
43 std::shared_ptr<FileIO> io, internal::TableScanContext context);
44
50
58
59 protected:
60 using TableScan::TableScan;
61};
62
63extern template class ICEBERG_EXTERN_TEMPLATE_CLASS_EXPORT
65
66} // namespace iceberg
A scan that reads data files and applies delete files to filter rows.
Definition data_table_scan.h:36
static Result< std::unique_ptr< DataTableScan > > Make(std::shared_ptr< TableMetadata > metadata, std::shared_ptr< Schema > schema, std::shared_ptr< FileIO > io, internal::TableScanContext context)
Constructs a DataTableScan instance.
Result< std::vector< std::shared_ptr< FileScanTask > > > PlanFiles() const
Plans the scan tasks by resolving manifests and data files.
virtual Result< FileScanTaskStreamPtr > PlanFilesStream() const
Lazily plans scan tasks by resolving manifests and data files on demand.
Builder class for creating TableScan instances.
Definition table_scan.h:293
Represents a configured scan operation on a table.
Definition table_scan.h:466
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.
Definition table_scan.h:260
Define table scan APIs and scan task types.