In-memory version of a column. More...
#include <tafel.h>
Public Member Functions | |
column () | |
Default constructor. The name and type are assigned later. | |
~column () | |
Destructor. | |
Public Attributes | |
void * | defval |
The default value for the column. More... | |
std::string | desc |
Description of the column. | |
std::string | dictfile |
Dictionary file name. More... | |
std::string | indexSpec |
Index specification for the column. | |
ibis::bitvector | mask |
Valid values are marked 1, null values are marked 0. | |
std::string | name |
Name of the column. | |
ibis::TYPE_T | type |
Type of the data. | |
void * | values |
Pointer to the in-memory storage. More... | |
In-memory version of a column.
void* ibis::tafel::column::defval |
The default value for the column.
SQL standard allows a column to take on a default value if it is not explicitly specified. For fix-sized elements, this variable points to the default of the given type. For string values, this is a pointer to a std::string. If this variable is nil, the unspecified values will be marked as null values through the variable mask.
Referenced by ibis::tafel::assignDefaultValue(), ibis::tafel::normalize(), and ibis::tafel::SQLCreateTable().
std::string ibis::tafel::column::dictfile |
Dictionary file name.
The name of an ASCII dictionary in a format similar to the one produced by ibis::dictionary::toASCII.
Referenced by ibis::tafel::getASCIIDictionary(), ibis::tafel::setASCIIDictionary(), and ibis::tafel::writeMetaData().
void* ibis::tafel::column::values |
Pointer to the in-memory storage.
For fix-sized elements, this is a pointer to an array_t object. For null-terminated strings, this is a pointer to std::vector<std::string>. For binary objects, it is std::vector<ibis::opaque>.
Referenced by ibis::tafel::addColumn(), ibis::tafel::append(), ibis::tafel::bufferCapacity(), ibis::tafel::clearData(), ibis::tafel::doReserve(), ibis::tafel::normalize(), ibis::tafel::parseLine(), ibis::tafel::SQLCreateTable(), and ibis::tafel::toTable().