Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::FtsTokenList Class Reference

#include <lance/detail/declarations.hpp>

Public Member Functions

 FtsTokenList (FtsTokenList &&) noexcept=default
 
FtsTokenList & operator= (FtsTokenList &&) noexcept=default
 
 FtsTokenList (const FtsTokenList &)=delete
 
FtsTokenList & operator= (const FtsTokenList &)=delete
 
size_t size () const
 Number of tokens. Throws on a NULL handle.
 
bool empty () const
 
FtsToken at (size_t index) const
 Copy token index. Throws on an out-of-range index.
 
std::vector< FtsToken > tokens () const
 Copy all tokens in native order.
 
const LanceFtsTokenList * c_handle () const
 

Static Public Member Functions

static FtsTokenList tokenize (std::string_view text, std::optional< std::string > params_json=std::nullopt)
 

Detailed Description

Owned token list produced by FtsTokenList::tokenize.

The list owns every token string. at() copies one token into a value, so the value remains usable after the list is destroyed.

Definition at line 2258 of file declarations.hpp.

Constructor & Destructor Documentation

◆ FtsTokenList() [1/2]

lance::FtsTokenList::FtsTokenList ( FtsTokenList && )
defaultnoexcept

◆ FtsTokenList() [2/2]

lance::FtsTokenList::FtsTokenList ( const FtsTokenList & )
delete

Member Function Documentation

◆ at()

FtsToken lance::FtsTokenList::at ( size_t index) const

Copy token index. Throws on an out-of-range index.

◆ c_handle()

const LanceFtsTokenList * lance::FtsTokenList::c_handle ( ) const

◆ empty()

bool lance::FtsTokenList::empty ( ) const

◆ operator=() [1/2]

FtsTokenList & lance::FtsTokenList::operator= ( const FtsTokenList & )
delete

◆ operator=() [2/2]

FtsTokenList & lance::FtsTokenList::operator= ( FtsTokenList && )
defaultnoexcept

◆ size()

size_t lance::FtsTokenList::size ( ) const

Number of tokens. Throws on a NULL handle.

◆ tokenize()

static FtsTokenList lance::FtsTokenList::tokenize ( std::string_view text,
std::optional< std::string > params_json = std::nullopt )
static

Tokenize an explicit UTF-8 byte range with native defaults or native InvertedIndexParams JSON. Embedded NUL bytes are preserved. A null params_json selects native defaults.

◆ tokens()

std::vector< FtsToken > lance::FtsTokenList::tokens ( ) const

Copy all tokens in native order.


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