Removes records with identical keys. More...
Public Member Functions | |
| DuplicateKeyRemover () | |
| bool | accept (BufferStringSet &) const |
| if false returned, the row should not be written | |
| int | nrRemoved () const |
Public Attributes | |
| TypeSet< int > | keycols_ |
| column numbers (mand) | |
Protected Member Functions | |
| void | setPrevKeys (const BufferStringSet &) const |
Protected Attributes | |
| BufferStringSet | prevkeys_ |
| int | nrdone_ |
| int | nrremoved_ |
Removes records with identical keys.
Will only compare with previous record, so make sure the input is sorted on the keys.
| Table::DuplicateKeyRemover::DuplicateKeyRemover | ( | ) | [inline] |
| bool Table::DuplicateKeyRemover::accept | ( | BufferStringSet & | ) | const [virtual] |
if false returned, the row should not be written
Implements Table::Converter::RowManipulator.
| int Table::DuplicateKeyRemover::nrRemoved | ( | ) | const [inline] |
| void Table::DuplicateKeyRemover::setPrevKeys | ( | const BufferStringSet & | ) | const [protected] |
column numbers (mand)
int Table::DuplicateKeyRemover::nrdone_ [mutable, protected] |
int Table::DuplicateKeyRemover::nrremoved_ [mutable, protected] |
BufferStringSet Table::DuplicateKeyRemover::prevkeys_ [mutable, protected] |
1.7.1