iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
iceberg::ManifestEntryAdapter Class Referenceabstract

Adapter for appending a list of ManifestEntrys to an ArrowArray. Implemented by different versions with version-specific schemas. More...

#include <manifest_adapter_internal.h>

Inheritance diagram for iceberg::ManifestEntryAdapter:
iceberg::ManifestAdapter iceberg::ManifestEntryAdapterV1 iceberg::ManifestEntryAdapterV2 iceberg::ManifestEntryAdapterV3

Public Member Functions

 ManifestEntryAdapter (std::optional< int64_t > snapshot_id_, std::shared_ptr< PartitionSpec > partition_spec, std::shared_ptr< Schema > current_schema, ManifestContent content)
 
virtual Status Append (const ManifestEntry &entry)=0
 
const std::shared_ptr< Schema > & schema () const
 
ManifestContent content () const
 
std::optional< int64_t > snapshot_id () const
 
const std::shared_ptr< PartitionSpec > & partition_spec () const
 
const std::shared_ptr< StructType > & partition_type () const
 
- Public Member Functions inherited from iceberg::ManifestAdapter
virtual Status Init ()=0
 
Status StartAppending ()
 
Result< ArrowArray * > FinishAppending ()
 
int64_t size () const
 
const std::unordered_map< std::string, std::string > & metadata () const
 

Protected Member Functions

Status AppendInternal (const ManifestEntry &entry)
 
Status AppendDataFile (ArrowArray *array, const std::shared_ptr< StructType > &data_file_type, const DataFile &file)
 
virtual Result< std::optional< int64_t > > GetSequenceNumber (const ManifestEntry &entry) const
 
virtual Result< std::optional< std::string > > GetReferenceDataFile (const DataFile &file) const
 
virtual Result< std::optional< int64_t > > GetFirstRowId (const DataFile &file) const
 
virtual Result< std::optional< int64_t > > GetContentOffset (const DataFile &file) const
 
virtual Result< std::optional< int64_t > > GetContentSizeInBytes (const DataFile &file) const
 

Static Protected Member Functions

static Status AppendPartitionValues (ArrowArray *array, const std::shared_ptr< StructType > &partition_type, const PartitionValues &partition_values)
 

Protected Attributes

std::optional< int64_t > snapshot_id_
 
std::shared_ptr< PartitionSpecpartition_spec_
 
std::shared_ptr< Schemacurrent_schema_
 
std::shared_ptr< StructTypepartition_type_
 
std::shared_ptr< Schemamanifest_schema_
 
const ManifestContent content_
 
- Protected Attributes inherited from iceberg::ManifestAdapter
ArrowArray array_
 
ArrowSchema schema_
 
int64_t size_ = 0
 
std::unordered_map< std::string, std::string > metadata_
 

Detailed Description

Adapter for appending a list of ManifestEntrys to an ArrowArray. Implemented by different versions with version-specific schemas.


The documentation for this class was generated from the following files: