crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Struct::TableProperties Struct Reference

Table properties containing its name, columns, data directory, and compression. More...

#include <TableProperties.hpp>

Properties

std::string name
 The name of the table. More...
 
std::vector< TableColumncolumns
 Vector containing the columns of the table. More...
 
std::string dataDirectory
 The data directory of the table. More...
 
bool compressed {false}
 Indicates whether compression is active for this table. More...
 

Construction

 TableProperties ()=default
 Default constructor. More...
 
 TableProperties (const std::string &setName, const std::vector< TableColumn > &setColumns, const std::string &setDataDirectory, bool setCompressed)
 Constructor setting table properties. More...
 

Detailed Description

Table properties containing its name, columns, data directory, and compression.

Constructor & Destructor Documentation

◆ TableProperties() [1/2]

crawlservpp::Struct::TableProperties::TableProperties ( )
default

Default constructor.

◆ TableProperties() [2/2]

crawlservpp::Struct::TableProperties::TableProperties ( const std::string &  setName,
const std::vector< TableColumn > &  setColumns,
const std::string &  setDataDirectory,
bool  setCompressed 
)
inline

Constructor setting table properties.

Parameters
setNameConstant reference to a string containing the name of the table.
setColumnsConstant reference to a vector containing the columns of the table.
setDataDirectoryConstant reference to a string containing the data directory of the table. Set to an empty string if the default data directory should be used.
setCompressedSet whether compression should be used for storing the table in the database.

Member Data Documentation

◆ columns

std::vector<TableColumn> crawlservpp::Struct::TableProperties::columns

Vector containing the columns of the table.

Referenced by crawlservpp::Main::Database::createTable().

◆ compressed

bool crawlservpp::Struct::TableProperties::compressed {false}

Indicates whether compression is active for this table.

Referenced by crawlservpp::Main::Database::createTable().

◆ dataDirectory

std::string crawlservpp::Struct::TableProperties::dataDirectory

The data directory of the table.

Contains an empty string if the default data directory is used.

Referenced by crawlservpp::Main::Database::createTable().

◆ name

std::string crawlservpp::Struct::TableProperties::name

The name of the table.

Referenced by crawlservpp::Main::Database::createTable().


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