OpendTect  6.6
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

int nrdone_
 
int nrremoved_
 
BufferStringSet prevkeys_
 

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

◆ DuplicateKeyRemover()

Table::DuplicateKeyRemover::DuplicateKeyRemover ( )
inline

Member Function Documentation

◆ accept()

bool Table::DuplicateKeyRemover::accept ( BufferStringSet ) const
virtual

if false returned, the row should not be written

Implements Table::Converter::RowManipulator.

◆ nrRemoved()

int Table::DuplicateKeyRemover::nrRemoved ( ) const
inline

◆ setPrevKeys()

void Table::DuplicateKeyRemover::setPrevKeys ( const BufferStringSet ) const
protected

Member Data Documentation

◆ keycols_

TypeSet<int> Table::DuplicateKeyRemover::keycols_

column numbers (mand)

◆ nrdone_

int Table::DuplicateKeyRemover::nrdone_
mutableprotected

◆ nrremoved_

int Table::DuplicateKeyRemover::nrremoved_
mutableprotected

◆ prevkeys_

BufferStringSet Table::DuplicateKeyRemover::prevkeys_
mutableprotected

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