29#include <unordered_map>
66 std::shared_ptr<class PartitionSet> partition_set) = 0;
97 std::shared_ptr<FileIO> file_io,
98 std::shared_ptr<Schema> schema,
99 std::shared_ptr<PartitionSpec> spec,
100 bool is_committed =
true);
110 const ManifestFile& manifest, std::shared_ptr<FileIO> file_io,
111 std::shared_ptr<Schema> schema,
112 const std::unordered_map<int32_t, std::shared_ptr<PartitionSpec>>& specs_by_id,
113 bool is_committed =
true);
126 std::string_view manifest_location, std::optional<int64_t> manifest_length,
127 std::shared_ptr<FileIO> file_io, std::shared_ptr<Schema> schema,
128 std::shared_ptr<PartitionSpec> spec,
129 std::unique_ptr<InheritableMetadata> inheritable_metadata,
130 std::optional<int64_t> first_row_id = std::nullopt,
bool is_committed =
true);
134 const std::vector<std::string>& columns);
153 std::string_view manifest_list_location, std::shared_ptr<FileIO> file_io);
Read manifest files from a manifest list file.
Definition manifest_reader.h:138
static Result< std::unique_ptr< ManifestListReader > > Make(std::string_view manifest_list_location, std::shared_ptr< FileIO > file_io)
Creates a reader for the manifest list.
virtual Result< std::unordered_map< std::string, std::string > > Metadata() const =0
Get the metadata of the manifest list file.
virtual Result< std::vector< ManifestFile > > Files() const =0
Read all manifest files in the manifest list file.
Read manifest entries from a manifest file.
Definition manifest_reader.h:40
virtual Result< std::vector< ManifestEntry > > Entries()=0
Read all manifest entries in the manifest file.
virtual ManifestReader & SkipCounter(std::shared_ptr< Counter > counter)=0
Set a counter to increment for each entry skipped by per-entry filters.
static bool ShouldDropStats(const std::vector< std::string > &columns)
Determine whether stats should be dropped based on selected columns.
static Result< std::unique_ptr< ManifestReader > > Make(std::string_view manifest_location, std::optional< int64_t > manifest_length, std::shared_ptr< FileIO > file_io, std::shared_ptr< Schema > schema, std::shared_ptr< PartitionSpec > spec, std::unique_ptr< InheritableMetadata > inheritable_metadata, std::optional< int64_t > first_row_id=std::nullopt, bool is_committed=true)
Creates a reader for a manifest file.
virtual ManifestReader & FilterRows(std::shared_ptr< Expression > expr)=0
Filter manifest entries by row-level filter.
virtual ManifestReader & Select(const std::vector< std::string > &columns)=0
Select specific columns of data file to read from the manifest entries.
static Result< std::unique_ptr< ManifestReader > > Make(const ManifestFile &manifest, std::shared_ptr< FileIO > file_io, std::shared_ptr< Schema > schema, const std::unordered_map< int32_t, std::shared_ptr< PartitionSpec > > &specs_by_id, bool is_committed=true)
Creates a reader for a manifest file using specs keyed by ID.
virtual ManifestReader & FilterPartitions(std::shared_ptr< Expression > expr)=0
Filter manifest entries by partition filter.
static std::vector< std::string > WithStatsColumns(const std::vector< std::string > &columns)
Add stats columns to the column list if needed.
virtual ManifestReader & FilterPartitions(std::shared_ptr< class PartitionSet > partition_set)=0
Filter manifest entries to a specific set of partitions.
virtual ManifestReader & CaseSensitive(bool case_sensitive)=0
Set case sensitivity for column name matching.
virtual ManifestReader & TryDropStats()=0
Try to drop stats from returned DataFile objects.
virtual Result< std::vector< ManifestEntry > > LiveEntries()=0
Read only live (non-deleted) manifest entries.
static Result< std::unique_ptr< ManifestReader > > Make(const ManifestFile &manifest, std::shared_ptr< FileIO > file_io, std::shared_ptr< Schema > schema, std::shared_ptr< PartitionSpec > spec, bool is_committed=true)
Creates a reader for a manifest file.
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.
Entry in a manifest list.
Definition manifest_list.h:85