xapian-core  2.0.0
Public Member Functions | List of all members
HoneyLazyTable Class Reference

#include <honey_lazytable.h>

+ Inheritance diagram for HoneyLazyTable:
+ Collaboration diagram for HoneyLazyTable:

Public Member Functions

 HoneyLazyTable (const char *name_, const std::string &path_, bool readonly)
 Create a new lazy table. More...
 
 HoneyLazyTable (const char *name_, int fd, off_t offset_, bool readonly)
 
- Public Member Functions inherited from HoneyTable
 HoneyTable (const char *, const std::string &path_, bool read_only_, bool lazy_=false)
 
 HoneyTable (const char *, int fd, off_t offset_, bool read_only_, bool lazy_=false)
 
 ~HoneyTable ()
 
bool is_writable () const
 
int get_flags () const
 
void create_and_open (int flags_, const Honey::RootInfo &root_info)
 
void open (int flags_, const Honey::RootInfo &root_info, honey_revision_number_t)
 
void close (bool permanent)
 
const std::string & get_path () const
 
void add (std::string_view key, const char *val, size_t val_size, bool compressed=false)
 
void add (std::string_view key, std::string_view val, bool compressed=false)
 
void flush_db ()
 
void cancel (const Honey::RootInfo &, honey_revision_number_t)
 
void commit (honey_revision_number_t, Honey::RootInfo *root_info)
 
bool sync ()
 
bool empty () const
 
bool get_exact_entry (std::string_view key, std::string &tag) const
 
bool key_exists (const std::string &key) const
 
bool del (const std::string &)
 
bool readahead_key (const std::string &) const
 
bool is_modified () const
 
HoneyCursorcursor_get () const
 
bool exists () const
 
bool is_open () const
 
honey_tablesize_t get_entry_count () const
 
honey_tablesize_t get_approx_entry_count () const
 Return an approximation of the number of entries in the table. More...
 
off_t get_root () const
 
off_t get_offset () const
 

Additional Inherited Members

- Static Public Member Functions inherited from HoneyTable
static void throw_database_closed ()
 

Detailed Description

Definition at line 26 of file honey_lazytable.h.

Constructor & Destructor Documentation

◆ HoneyLazyTable() [1/2]

HoneyLazyTable::HoneyLazyTable ( const char *  name_,
const std::string &  path_,
bool  readonly 
)
inline

Create a new lazy table.

Parameters
name_The table's name.
path_The path for the table.
readonlytrue if the table is read-only, else false.

Definition at line 34 of file honey_lazytable.h.

◆ HoneyLazyTable() [2/2]

HoneyLazyTable::HoneyLazyTable ( const char *  name_,
int  fd,
off_t  offset_,
bool  readonly 
)
inline

Definition at line 37 of file honey_lazytable.h.


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