Public Member Functions | Public Attributes
ibis::tafel::column Struct Reference

In-memory version of a column. More...

#include <tafel.h>

List of all members.

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.
std::string desc
 Description of the column.
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::array_t< int64_t > starts
 Starting positions of the binary objects stored in values.
ibis::TYPE_T type
 Type of the data.
void * values
 Pointer to the in-memory storage.

Detailed Description

In-memory version of a column.


Member Data Documentation

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(), ibis::tafel::SQLCreateTable(), and ibis::tafel::write().

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 the raw bytes in these objects (type array_t<unsigned char>. The starting positions of the objects are stored in starts.

Referenced by ibis::tafel::addColumn(), ibis::tafel::append(), ibis::tafel::capacity(), ibis::tafel::clearData(), ibis::tafel::doReserve(), ibis::tafel::normalize(), ibis::tafel::parseLine(), ibis::tafel::SQLCreateTable(), ibis::tafel::toTable(), and ibis::tafel::write().


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

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive