#include "SSTable.h" const char SSTable::CASE_SENSE; const char SSTable::CASE_INSENSE; const char SSTable::W_SPACE_SENSE; const char SSTable::W_SPACE_SENSE; const char SSTable::DT_STRING; const char SSTable::DT_INTEGER; const char SSTable::DT_DOUBLE;
CASE_SENSE is the bit field for setting comparisons to be case sensitive.
CASE_INSENSE is the bit field for setting comparisons to be case insensitive.
W_SPACE_SENSE is the bit field for setting comparisons to be white space sensitive.
W_SPACE_INSENSE is the bit field for setting comparisons to be white space insensitive.
DT_STRING is the value for a string datatype.
DT_INTEGER is the value for an integer datatype.
DT_DOUBLE is the value for a double datatype.
The first four constants are bitwise ORed together and passed as the ``options'' parameter to the table. They determine how string comparisions are done on a particular column.
The other three values are the values for the three supported primitive datatypes. You can bitwise OR these with the ``options''. They determine how values in a column get compared. The reason for this is illustrated by a simple example. Suppose the numbers 9.9 and 10.1 are in a column. If the datatype of the column is DT_STRING, 9.9 comes after 10.1. This is because 1 comes before 9. If the datatype was correctly assigned to DT_DOUBLE, 9.9 would come before 10.1.