OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Table::DuplicateKeyRemover Class Reference

Removes records with identical keys. More...

Inheritance diagram for Table::DuplicateKeyRemover:
[legend]

Public Member Functions

 DuplicateKeyRemover ()
 
bool accept (BufferStringSet &) const
 if false returned, the row should not be written More...
 
int nrRemoved () const
 

Public Attributes

TypeSet< int > keycols_
 column numbers (mand) More...
 

Protected Member Functions

void setPrevKeys (const BufferStringSet &) const
 

Protected Attributes

BufferStringSet prevkeys_
 
int nrdone_
 
int nrremoved_
 

Detailed Description

Removes records with identical keys.

Will only compare with previous record, so make sure the input is sorted on the keys.

Constructor & Destructor Documentation

Table::DuplicateKeyRemover::DuplicateKeyRemover ( )
inline

Member Function Documentation

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

Member Data Documentation

TypeSet<int> Table::DuplicateKeyRemover::keycols_

column numbers (mand)

int Table::DuplicateKeyRemover::nrdone_
mutableprotected
int Table::DuplicateKeyRemover::nrremoved_
mutableprotected
BufferStringSet Table::DuplicateKeyRemover::prevkeys_
mutableprotected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019