#include "SSTable.h"
int SSTable::DeleteRow(int rowIndex);
#include "SSTable.h"
...
SSTable * pTable = new SSTable();
... // do table maniputation
// delete the first 1/2 rows
for (int i = 0; i < (pTable->GetNumRows() / 2); i++) {
pTable->DeleteRow(i);
}
DeleteRow will remove the data from a row, and then the row itself. This is safest method to get rid of a whole row of data. The row can always be reinserted later.
| rowIndex | The index of the row to be deleted. |
A negative value indicates an error or warning.
| See also: | ClearRow |
|---|