#include "SSTable.h"
int SSTable::ClearRow(int rowIndex);
#include "SSTable.h"
...
SSTable * pTable = new SSTable();
... // do table maniputation
// clear the first 1/2 rows, but keep them as placeholders
for (int i = 0; i < (pTable->GetNumRows() / 2); i++) {
pTable->ClearRow(i);
}
ClearRow erases all of the data in a particular row. It does not remove the row from the table; rather, it keeps placeholders. Thus, the number of columns and rows will not change as a result of this operation.
| rowIndex | The index of the row to be cleared. |
A negative value indicates an error or warning.
| See also: | DeleteRow |
|---|