22#include "iceberg/expression/literal.h"
23#include "iceberg/result.h"
37 Result<PartitionFieldSummary>
Finish()
const;
39 const std::shared_ptr<Type>& type()
const {
return type_; }
42 const std::shared_ptr<Type>& type_{
nullptr};
43 bool contains_null_{
false};
44 bool contains_nan_{
false};
45 std::optional<Literal> lower_bound_;
46 std::optional<Literal> upper_bound_;
55 : field_stats_(
std::move(field_stats)) {}
64 Result<std::vector<PartitionFieldSummary>>
Summaries()
const;
67 std::vector<PartitionFieldStats> field_stats_;
Literal is a literal value that is associated with a primitive type.
Definition literal.h:39
Statistics for a partition field.
Definition partition_summary_internal.h:29
Result< PartitionFieldSummary > Finish() const
Finish the partition field stats and produce the partition field summary.
Definition partition_summary.cc:58
Status Update(const Literal &value)
Update the partition field stats with a new partition field value.
Definition partition_summary.cc:33
Maintains statistics for each partition field and produces the partition field summaries.
Definition partition_summary_internal.h:51
PartitionSummary(std::vector< PartitionFieldStats > field_stats)
Create a PartitionSummary with the given field stats.
Definition partition_summary_internal.h:54
Result< std::vector< PartitionFieldSummary > > Summaries() const
Get the list of partition field summaries.
Definition partition_summary.cc:94
Status Update(const PartitionValues &partition_values)
Update the partition summary with partition values.
Definition partition_summary.cc:78
StructLike wrapper for a vector of literals that represent partition values.
Definition partition_values.h:36
A data type representing a struct with nested fields.
Definition type.h:108