Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::common::SelectionVector Class Reference

#include <sel_vector.h>

Public Member Functions

 SelectionVector (sel_t capacity)
 
 SelectionVector ()
 
bool isUnfiltered () const
 
bool isContinuous () const
 
void setToUnfiltered ()
 
void setToUnfiltered (sel_t size)
 
void setToFiltered ()
 
void setToFiltered (sel_t size)
 
std::span< sel_tgetMutableBuffer () const
 
std::span< const sel_tgetSelectedPositions () const
 
template<class Func >
void forEach (Func &&func) const
 
sel_t getSelSize () const
 
void setSelSize (sel_t size)
 
void incrementSelSize (sel_t increment=1)
 
sel_t operator[] (sel_t index) const
 
sel_toperator[] (sel_t index)
 

Static Public Attributes

static KUZU_API const std::array< sel_t, DEFAULT_VECTOR_CAPACITYINCREMENTAL_SELECTED_POS
 

Constructor & Destructor Documentation

◆ SelectionVector() [1/2]

kuzu::common::SelectionVector::SelectionVector ( sel_t capacity)
inlineexplicit

◆ SelectionVector() [2/2]

kuzu::common::SelectionVector::SelectionVector ( )
inline

Member Function Documentation

◆ forEach()

template<class Func >
void kuzu::common::SelectionVector::forEach ( Func && func) const
inline

◆ getMutableBuffer()

std::span< sel_t > kuzu::common::SelectionVector::getMutableBuffer ( ) const
inline

◆ getSelectedPositions()

std::span< const sel_t > kuzu::common::SelectionVector::getSelectedPositions ( ) const
inline

◆ getSelSize()

sel_t kuzu::common::SelectionVector::getSelSize ( ) const
inline

◆ incrementSelSize()

void kuzu::common::SelectionVector::incrementSelSize ( sel_t increment = 1)
inline

◆ isContinuous()

bool kuzu::common::SelectionVector::isContinuous ( ) const
inline

◆ isUnfiltered()

bool kuzu::common::SelectionVector::isUnfiltered ( ) const
inline

◆ operator[]() [1/2]

sel_t & kuzu::common::SelectionVector::operator[] ( sel_t index)
inline

◆ operator[]() [2/2]

sel_t kuzu::common::SelectionVector::operator[] ( sel_t index) const
inline

◆ setSelSize()

void kuzu::common::SelectionVector::setSelSize ( sel_t size)
inline

◆ setToFiltered() [1/2]

void kuzu::common::SelectionVector::setToFiltered ( )
inline

◆ setToFiltered() [2/2]

void kuzu::common::SelectionVector::setToFiltered ( sel_t size)
inline

◆ setToUnfiltered() [1/2]

void kuzu::common::SelectionVector::setToUnfiltered ( )
inline

◆ setToUnfiltered() [2/2]

void kuzu::common::SelectionVector::setToUnfiltered ( sel_t size)
inline

Member Data Documentation

◆ INCREMENTAL_SELECTED_POS

KUZU_API const std::array<sel_t, DEFAULT_VECTOR_CAPACITY> kuzu::common::SelectionVector::INCREMENTAL_SELECTED_POS
static

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