#include "SSTable.h"
int SSTable::GetDataType(int colIndex);
#include "SSTable.h"
SSTable * pTable = new SSTable();
... // do table maniputation
for (int i = 0; i < pTable->GetNumColumns(); i++) {
int dt = pTable->GetDataType(i);
switch (dt) {
case SSTable::DT_STRING: ...; break;
case SSTable::DT_INTEGER: ...; break;
case SSTable::DT_DOUBLE: ...; break;
default: ...; break;
}
}
GetDataType returns the datatype code for a column.
| colIndex | The index of the column in question |
A negative value indicates an error or warning.
| See also: | Column Option Constants |
|---|