taco-db  0.1.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
taco::InitDataFileReader Class Reference

#include <catalog/InitDataFileReader.h>

Public Member Functions

 InitDataFileReader (const std::string &init_datafile, BootstrapCatCache *catcache)
 
InitLineType next (char **rec, FieldOffset *rec_size)
 Upon a successful return, rec points to some internal buffer that is valid until the next next() call if this is a data line. More...
 
size_t LastLineNo () const
 
Oid LastTabid () const
 
SchemaLastSchema () const
 

Private Member Functions

absl::string_view FindNextToken (const std::string &str, std::string::size_type &start_pos) const
 

Private Attributes

std::string m_init_datafile
 
std::ifstream m_input
 
BootstrapCatCachem_catcache
 
size_t m_lineno
 
InitLineType m_last_state
 
Oid m_tabid
 
maxaligned_char_buf m_buf
 
std::unique_ptr< Schemam_schema
 
absl::flat_hash_map< Oid, FunctionInfom_typ_infuncs
 

Constructor & Destructor Documentation

◆ InitDataFileReader()

taco::InitDataFileReader::InitDataFileReader ( const std::string &  init_datafile,
BootstrapCatCache catcache 
)

Member Function Documentation

◆ FindNextToken()

absl::string_view taco::InitDataFileReader::FindNextToken ( const std::string &  str,
std::string::size_type &  start_pos 
) const
private

◆ LastLineNo()

size_t taco::InitDataFileReader::LastLineNo ( ) const
inline

◆ LastSchema()

Schema* taco::InitDataFileReader::LastSchema ( ) const
inline

◆ LastTabid()

Oid taco::InitDataFileReader::LastTabid ( ) const
inline

◆ next()

InitLineType taco::InitDataFileReader::next ( char **  rec,
FieldOffset rec_size 
)

Upon a successful return, rec points to some internal buffer that is valid until the next next() call if this is a data line.

Member Data Documentation

◆ m_buf

maxaligned_char_buf taco::InitDataFileReader::m_buf
private

◆ m_catcache

BootstrapCatCache* taco::InitDataFileReader::m_catcache
private

◆ m_init_datafile

std::string taco::InitDataFileReader::m_init_datafile
private

◆ m_input

std::ifstream taco::InitDataFileReader::m_input
private

◆ m_last_state

InitLineType taco::InitDataFileReader::m_last_state
private

◆ m_lineno

size_t taco::InitDataFileReader::m_lineno
private

◆ m_schema

std::unique_ptr<Schema> taco::InitDataFileReader::m_schema
private

◆ m_tabid

Oid taco::InitDataFileReader::m_tabid
private

◆ m_typ_infuncs

absl::flat_hash_map<Oid, FunctionInfo> taco::InitDataFileReader::m_typ_infuncs
private

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