|
iceberg-cpp
|
COUNT_NULL(term) aggregate. More...
#include <aggregate.h>
Public Member Functions | |
| Result< int64_t > | CountFor (const StructLike &data) const override |
| Count for a single row. Subclasses implement this. | |
| Result< int64_t > | CountFor (const DataFile &file) const override |
| Count using metrics from a data file. | |
| bool | HasValue (const DataFile &file) const override |
| Whether metrics in the data file are sufficient to evaluate. | |
Public Member Functions inherited from iceberg::CountAggregate | |
| Result< Literal > | Evaluate (const StructLike &data) const override |
| Evaluate this expression against a row-based data. | |
| Result< Literal > | Evaluate (const DataFile &file) const override |
| std::unique_ptr< Aggregator > | NewAggregator () const override |
| Create a new aggregator for this aggregate. | |
Public Member Functions inherited from iceberg::BoundAggregate | |
| std::shared_ptr< BoundReference > | reference () override |
| Returns the underlying bound reference for this term. | |
| bool | is_bound_aggregate () const override |
Public Member Functions inherited from iceberg::Aggregate< BoundTerm > | |
| Expression::Operation | op () const override |
| Returns the operation for an expression node. | |
| const std::shared_ptr< T > & | term () const |
| std::string | ToString () const override |
| Get a user-readable string representation. | |
Public Member Functions inherited from iceberg::Expression | |
| virtual Result< std::shared_ptr< Expression > > | Negate () const |
| Returns the negation of this expression, equivalent to not(this). | |
| virtual bool | Equals (const Expression &other) const |
| Returns whether this expression will accept the same values as another. | |
| std::string | ToString () const override |
| Get a user-readable string representation. | |
| virtual bool | is_unbound_predicate () const |
| virtual bool | is_bound_predicate () const |
| virtual bool | is_unbound_aggregate () const |
Static Public Member Functions | |
| static Result< std::unique_ptr< CountNullAggregate > > | Make (std::shared_ptr< BoundTerm > term) |
Additional Inherited Members | |
Public Types inherited from iceberg::Expression | |
| enum class | Operation { kTrue , kFalse , kIsNull , kNotNull , kIsNan , kNotNan , kLt , kLtEq , kGt , kGtEq , kEq , kNotEq , kIn , kNotIn , kNot , kAnd , kOr , kStartsWith , kNotStartsWith , kCount , kCountNull , kCountStar , kMax , kMin } |
| Operation types for expressions. | |
Protected Member Functions inherited from iceberg::CountAggregate | |
| CountAggregate (Expression::Operation op, std::shared_ptr< BoundTerm > term) | |
Protected Member Functions inherited from iceberg::BoundAggregate | |
| BoundAggregate (Expression::Operation op, std::shared_ptr< BoundTerm > term) | |
Protected Member Functions inherited from iceberg::Aggregate< BoundTerm > | |
| Aggregate (Expression::Operation op, std::shared_ptr< T > term) | |
Static Protected Member Functions inherited from iceberg::Aggregate< BoundTerm > | |
| static constexpr bool | IsSupportedOp (Expression::Operation op) |
Protected Attributes inherited from iceberg::Aggregate< BoundTerm > | |
| Expression::Operation | operation_ |
| std::shared_ptr< T > | term_ |
COUNT_NULL(term) aggregate.
|
overridevirtual |
Count using metrics from a data file.
Implements iceberg::CountAggregate.
|
overridevirtual |
Count for a single row. Subclasses implement this.
Implements iceberg::CountAggregate.
|
overridevirtual |
Whether metrics in the data file are sufficient to evaluate.
Implements iceberg::BoundAggregate.