iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
iceberg::Aggregate< T > Class Template Reference

Base aggregate holding an operation and a term. More...

#include <aggregate.h>

Inheritance diagram for iceberg::Aggregate< T >:
iceberg::Expression iceberg::util::Formattable

Public Member Functions

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
 
virtual bool is_bound_aggregate () const
 

Protected Member Functions

 Aggregate (Expression::Operation op, std::shared_ptr< T > term)
 

Static Protected Member Functions

static constexpr bool IsSupportedOp (Expression::Operation op)
 

Protected Attributes

Expression::Operation operation_
 
std::shared_ptr< T > 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.
 

Detailed Description

template<TermType T>
class iceberg::Aggregate< T >

Base aggregate holding an operation and a term.

Member Function Documentation

◆ op()

template<TermType T>
Expression::Operation iceberg::Aggregate< T >::op ( ) const
inlineoverridevirtual

Returns the operation for an expression node.

Implements iceberg::Expression.

◆ ToString()

template<TermType T>
std::string iceberg::Aggregate< T >::ToString ( ) const
overridevirtual

Get a user-readable string representation.

Implements iceberg::util::Formattable.


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