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

Adapter to convert V2 ManifestEntry to ArrowArray. More...

#include <v2_metadata_internal.h>

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

Public Member Functions

 ManifestEntryAdapterV2 (std::optional< int64_t > snapshot_id, std::shared_ptr< PartitionSpec > partition_spec, std::shared_ptr< Schema > current_schema, ManifestContent content)
 
Status Init () override
 
Status Append (const ManifestEntry &entry) override
 
- Public Member Functions inherited from iceberg::ManifestEntryAdapter
 ManifestEntryAdapter (std::optional< int64_t > snapshot_id_, std::shared_ptr< PartitionSpec > partition_spec, std::shared_ptr< Schema > current_schema, ManifestContent content)
 
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
Status StartAppending ()
 
Result< ArrowArray * > FinishAppending ()
 
int64_t size () const
 
const std::unordered_map< std::string, std::string > & metadata () const
 

Static Public Member Functions

static std::shared_ptr< SchemaEntrySchema (std::shared_ptr< StructType > partition_type)
 
static std::shared_ptr< SchemaWrapFileSchema (std::shared_ptr< StructType > file_schema)
 
static std::shared_ptr< StructTypeDataFileType (std::shared_ptr< StructType > partition_type)
 

Protected Member Functions

Result< std::optional< int64_t > > GetSequenceNumber (const ManifestEntry &entry) const override
 
Result< std::optional< std::string > > GetReferenceDataFile (const DataFile &file) const override
 
- Protected Member Functions inherited from iceberg::ManifestEntryAdapter
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 > > 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
 

Additional Inherited Members

- Static Protected Member Functions inherited from iceberg::ManifestEntryAdapter
static Status AppendPartitionValues (ArrowArray *array, const std::shared_ptr< StructType > &partition_type, const PartitionValues &partition_values)
 
- Protected Attributes inherited from iceberg::ManifestEntryAdapter
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 to convert V2 ManifestEntry to ArrowArray.

Member Function Documentation

◆ Append()

Status iceberg::ManifestEntryAdapterV2::Append ( const ManifestEntry entry)
overridevirtual

◆ GetReferenceDataFile()

Result< std::optional< std::string > > iceberg::ManifestEntryAdapterV2::GetReferenceDataFile ( const DataFile file) const
overrideprotectedvirtual

Reimplemented from iceberg::ManifestEntryAdapter.

◆ GetSequenceNumber()

Result< std::optional< int64_t > > iceberg::ManifestEntryAdapterV2::GetSequenceNumber ( const ManifestEntry entry) const
overrideprotectedvirtual

Reimplemented from iceberg::ManifestEntryAdapter.

◆ Init()

Status iceberg::ManifestEntryAdapterV2::Init ( )
overridevirtual

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