iceberg-cpp
Loading...
Searching...
No Matches
Protected Member Functions | Static Protected Member Functions | List of all members
iceberg::test::ParquetMetricsTest Class Reference
Inheritance diagram for iceberg::test::ParquetMetricsTest:
iceberg::test::MetricsTestBase

Protected Member Functions

void SetUp () override
 
Result< MetricsGetMetrics (std::shared_ptr< Schema > schema, std::shared_ptr<::arrow::Array > records) override
 Get metrics for the given schema and records.
 
Result< MetricsGetMetrics (std::shared_ptr< Schema > schema, std::shared_ptr< MetricsConfig > config, std::shared_ptr<::arrow::Array > records) override
 Get metrics with custom MetricsConfig.
 
std::string CreateOutputFile () override
 Create an output file for testing.
 
Result< int > GetSplitCount () override
 Get the number of row groups/splits in a file.
 
Result< MetricsGetMetricsWithFieldMetrics (std::shared_ptr< Schema > schema, std::shared_ptr< MetricsConfig > config, std::shared_ptr<::arrow::Array > records, const std::unordered_map< int32_t, FieldMetrics > &field_metrics)
 
bool SupportsSmallRowGroups () const override
 Whether the format supports small row groups for testing.
 
bool ReportsNanCounts () const override
 Whether the format reports NaN counts for floating-point fields.
 
- Protected Member Functions inherited from iceberg::test::MetricsTestBase
void AssertCounts (int field_id, std::optional< int64_t > expected_value_count, std::optional< int64_t > expected_null_count, const Metrics &metrics)
 
void AssertCounts (int field_id, std::optional< int64_t > expected_value_count, std::optional< int64_t > expected_null_count, std::optional< int64_t > expected_nan_count, const Metrics &metrics)
 
void AssertColumnSizeFields (std::vector< int32_t > expected_field_ids, const Metrics &metrics)
 
template<typename T >
void AssertBounds (int field_id, std::shared_ptr< PrimitiveType > type, std::optional< T > expected_lower, std::optional< T > expected_upper, const Metrics &metrics)
 
std::shared_ptr<::arrow::Array > CreateRecordArrays (const std::shared_ptr<::arrow::Schema > &arrow_schema, const std::string &json_data)
 
void MetricsForRepeatedValues ()
 
void MetricsForTopLevelFields ()
 
void MetricsForDecimals ()
 
void MetricsForNestedStructFields ()
 
void MetricsModeForNestedStructFields ()
 
void MetricsForListAndMapElements ()
 
void MetricsForNullColumns ()
 
void MetricsForNaNColumns ()
 
void ColumnBoundsWithNaNValueAtFront ()
 
void ColumnBoundsWithNaNValueInMiddle ()
 
void ColumnBoundsWithNaNValueAtEnd ()
 
void MetricsForTopLevelWithMultipleRowGroup ()
 
void MetricsForNestedStructFieldsWithMultipleRowGroup ()
 
void NoneMetricsMode ()
 
void CountsMetricsMode ()
 
void FullMetricsMode ()
 
void TruncateStringMetricsMode ()
 
void TruncateBinaryMetricsMode ()
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
- Static Protected Member Functions inherited from iceberg::test::MetricsTestBase
static std::shared_ptr< SchemaSimpleSchema ()
 
static std::shared_ptr< SchemaNestedSchema ()
 
static std::shared_ptr< SchemaFloatDoubleSchema ()
 

Additional Inherited Members

- Protected Attributes inherited from iceberg::test::MetricsTestBase
std::shared_ptr< FileIOfile_io_
 
std::string temp_dir_
 
std::string path_
 

Member Function Documentation

◆ CreateOutputFile()

std::string iceberg::test::ParquetMetricsTest::CreateOutputFile ( )
inlineoverrideprotectedvirtual

Create an output file for testing.

Implements iceberg::test::MetricsTestBase.

◆ GetMetrics() [1/2]

Result< Metrics > iceberg::test::ParquetMetricsTest::GetMetrics ( std::shared_ptr< Schema schema,
std::shared_ptr< MetricsConfig config,
std::shared_ptr<::arrow::Array >  records 
)
inlineoverrideprotectedvirtual

Get metrics with custom MetricsConfig.

Implements iceberg::test::MetricsTestBase.

◆ GetMetrics() [2/2]

Result< Metrics > iceberg::test::ParquetMetricsTest::GetMetrics ( std::shared_ptr< Schema schema,
std::shared_ptr<::arrow::Array >  records 
)
inlineoverrideprotectedvirtual

Get metrics for the given schema and records.

Implements iceberg::test::MetricsTestBase.

◆ GetSplitCount()

Result< int > iceberg::test::ParquetMetricsTest::GetSplitCount ( )
inlineoverrideprotectedvirtual

Get the number of row groups/splits in a file.

Implements iceberg::test::MetricsTestBase.

◆ ReportsNanCounts()

bool iceberg::test::ParquetMetricsTest::ReportsNanCounts ( ) const
inlineoverrideprotectedvirtual

Whether the format reports NaN counts for floating-point fields.

Reimplemented from iceberg::test::MetricsTestBase.

◆ SetUp()

void iceberg::test::ParquetMetricsTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from iceberg::test::MetricsTestBase.

◆ SupportsSmallRowGroups()

bool iceberg::test::ParquetMetricsTest::SupportsSmallRowGroups ( ) const
inlineoverrideprotectedvirtual

Whether the format supports small row groups for testing.

Reimplemented from iceberg::test::MetricsTestBase.


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