|
|
| DeleteFileIndex (DeleteFileIndex &&) noexcept |
| |
|
DeleteFileIndex & | operator= (DeleteFileIndex &&) noexcept |
| |
|
| DeleteFileIndex (const DeleteFileIndex &)=delete |
| |
|
DeleteFileIndex & | operator= (const DeleteFileIndex &)=delete |
| |
|
bool | empty () const |
| | Check if this index is empty (has no delete files).
|
| |
|
bool | has_equality_deletes () const |
| | Check if this index has any equality delete files.
|
| |
|
bool | has_position_deletes () const |
| | Check if this index has any position delete files.
|
| |
|
std::vector< std::shared_ptr< DataFile > > | ReferencedDeleteFiles () const |
| | Get all delete files referenced by this index. TODO(gangwu): use lazy iterator to avoid large memory allocation.
|
| |
| Result< std::vector< std::shared_ptr< DataFile > > > | ForEntry (const ManifestEntry &entry) const |
| | Get the delete files that apply to a manifest entry.
|
| |
| Result< std::vector< std::shared_ptr< DataFile > > > | ForDataFile (int64_t sequence_number, const DataFile &file) const |
| | Get the delete files that apply to a data file with a specific sequence number.
|
| |
|
| Builder (std::shared_ptr< FileIO > io, std::shared_ptr< Schema > schema, std::unordered_map< int32_t, std::shared_ptr< PartitionSpec > > specs_by_id, std::vector< ManifestFile > delete_manifests) |
| | Construct a builder from manifest files.
|
| |
|
| Builder (Builder &&) noexcept |
| |
|
Builder & | operator= (Builder &&) noexcept |
| |
|
| Builder (const Builder &)=delete |
| |
|
Builder & | operator= (const Builder &)=delete |
| |
| Builder & | AfterSequenceNumber (int64_t seq) |
| | Set the minimum sequence number for delete files.
|
| |
| Builder & | DataFilter (std::shared_ptr< Expression > filter) |
| | Set a row-level data filter.
|
| |
|
Builder & | PartitionFilter (std::shared_ptr< Expression > filter) |
| | Set a partition filter expression.
|
| |
|
Builder & | FilterPartitions (std::shared_ptr< PartitionSet > partition_set) |
| | Set a partition set to filter manifests.
|
| |
|
Builder & | CaseSensitive (bool case_sensitive) |
| | Set case sensitivity for column name matching.
|
| |
|
Builder & | IgnoreResiduals () |
| | Ignore residual expressions after partition filtering.
|
| |
| Builder & | PlanWith (OptionalExecutor executor) |
| | Configure an optional executor for reading delete manifests.
|
| |
|
Result< std::unique_ptr< DeleteFileIndex > > | Build () |
| | Build the DeleteFileIndex.
|
| |
An index of delete files by sequence number.
Use DeleteFileIndex::Builder to construct an index, and ForDataFile() or ForEntry() to get the delete files to apply to a given data file.
The index organizes delete files by:
- Global equality deletes (apply to all partitions)
- Partitioned equality deletes (apply to specific partitions)
- Partitioned position deletes (apply to specific partitions)
- File-scoped position deletes (apply to specific data files)
- Deletion vectors (DVs) that reference specific data files