Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::TableFilter Class Referenceabstract

TableFilter represents a filter pushed down into the table scan. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::TableFilter:

Public Member Functions

 TableFilter (TableFilterType filter_type_p)
virtual FilterPropagateResult CheckStatistics (BaseStatistics &stats) const =0
 Returns true if the statistics indicate that the segment can contain values that satisfy that filter.
virtual string ToString (const string &column_name) const =0
string DebugToString () const
virtual unique_ptr< TableFilter > Copy () const =0
virtual bool Equals (const TableFilter &other) const
virtual unique_ptr< Expression > ToExpression (const Expression &column) const =0
virtual void Serialize (Serializer &serializer) const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< TableFilter > Deserialize (Deserializer &deserializer)

Public Attributes

TableFilterType filter_type

Detailed Description

TableFilter represents a filter pushed down into the table scan.

Constructor & Destructor Documentation

◆ TableFilter()

duckdb::TableFilter::TableFilter ( TableFilterType filter_type_p)
inlineexplicit
20780 : filter_type(filter_type_p) {
20781 }

◆ ~TableFilter()

virtual duckdb::TableFilter::~TableFilter ( )
inlinevirtual
20782 {
20783 }

Member Function Documentation

◆ CheckStatistics()

virtual FilterPropagateResult duckdb::TableFilter::CheckStatistics ( BaseStatistics & stats) const
pure virtual

◆ DebugToString()

string duckdb::TableFilter::DebugToString ( ) const
385932 {
385933 return ToString("c0");
385934}

◆ Equals()

virtual bool duckdb::TableFilter::Equals ( const TableFilter & other) const
inlinevirtual
20793 {
20794 return filter_type == other.filter_type;
20795 }

◆ Serialize()

void duckdb::TableFilter::Serialize ( Serializer & serializer) const
virtual
419421 {
419422 serializer.WriteProperty<TableFilterType>(100, "filter_type", filter_type);
419423}

◆ Deserialize()

unique_ptr< TableFilter > duckdb::TableFilter::Deserialize ( Deserializer & deserializer)
static
419425 {
419426 auto filter_type = deserializer.ReadProperty<TableFilterType>(100, "filter_type");
419427 unique_ptr<TableFilter> result;
419428 switch (filter_type) {
419429 case TableFilterType::CONJUNCTION_AND:
419430 result = ConjunctionAndFilter::Deserialize(deserializer);
419431 break;
419432 case TableFilterType::CONJUNCTION_OR:
419433 result = ConjunctionOrFilter::Deserialize(deserializer);
419434 break;
419435 case TableFilterType::CONSTANT_COMPARISON:
419436 result = ConstantFilter::Deserialize(deserializer);
419437 break;
419438 case TableFilterType::DYNAMIC_FILTER:
419439 result = DynamicFilter::Deserialize(deserializer);
419440 break;
419441 case TableFilterType::EXPRESSION_FILTER:
419442 result = ExpressionFilter::Deserialize(deserializer);
419443 break;
419444 case TableFilterType::IN_FILTER:
419445 result = InFilter::Deserialize(deserializer);
419446 break;
419447 case TableFilterType::IS_NOT_NULL:
419448 result = IsNotNullFilter::Deserialize(deserializer);
419449 break;
419450 case TableFilterType::IS_NULL:
419451 result = IsNullFilter::Deserialize(deserializer);
419452 break;
419453 case TableFilterType::OPTIONAL_FILTER:
419454 result = OptionalFilter::Deserialize(deserializer);
419455 break;
419456 case TableFilterType::STRUCT_EXTRACT:
419457 result = StructFilter::Deserialize(deserializer);
419458 break;
419459 default:
419460 throw SerializationException("Unsupported type for deserialization of TableFilter!");
419461 }
419462 return result;
419463}

◆ Cast() [1/2]

template<class TARGET>
TARGET & duckdb::TableFilter::Cast ( )
inline
20803 {
20804 if (filter_type != TARGET::TYPE) {
20805 throw InternalException("Failed to cast to type - table filter type mismatch");
20806 }
20807 return reinterpret_cast<TARGET &>(*this);
20808 }

◆ Cast() [2/2]

template<class TARGET>
const TARGET & duckdb::TableFilter::Cast ( ) const
inline
20811 {
20812 if (filter_type != TARGET::TYPE) {
20813 throw InternalException("Failed to cast to type - table filter type mismatch");
20814 }
20815 return reinterpret_cast<const TARGET &>(*this);
20816 }

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