RetainOperator

RetainOperator retains the first occurrence of a field, without changing the header.

RetainOperator is intended for fields where the value is expected to be the same for all occurrences of the unique key, and the goal is to pass the value through unchanged. It is like FirstOperator, except that the original header is preserved. The original header preservation is setup in the call to the SingleFieldOperation constructor.

Notes: - An option to signal an error if multiple values are encountered might be useful.

Constructors

this
this(size_t fieldIndex, MissingFieldPolicy missingPolicy)

Undocumented in source.

Members

Classes

RetainCalculator
class RetainCalculator

Undocumented in source.

Functions

makeCalculator
SingleFieldCalculator makeCalculator()

Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From SingleFieldOperator

setCustomHeader
void setCustomHeader(string customHeader)

Undocumented in source. Be warned that the author may not have intended to support it.

name
string name()

Undocumented in source. Be warned that the author may not have intended to support it.

allowCustomHeader
bool allowCustomHeader()

Undocumented in source. Be warned that the author may not have intended to support it.

setSaveFieldValuesNumeric
void setSaveFieldValuesNumeric()

Undocumented in source. Be warned that the author may not have intended to support it.

setSaveFieldValuesText
void setSaveFieldValuesText()

Undocumented in source. Be warned that the author may not have intended to support it.

missingPolicy
MissingFieldPolicy missingPolicy()

Undocumented in source. Be warned that the author may not have intended to support it.

fieldIndex
size_t fieldIndex()

Undocumented in source. Be warned that the author may not have intended to support it.

header
string header()

Undocumented in source. Be warned that the author may not have intended to support it.

useHeaderSuffix
bool useHeaderSuffix()

Undocumented in source. Be warned that the author may not have intended to support it.

processHeaderLine
void processHeaderLine(char[][] fields)

Undocumented in source. Be warned that the author may not have intended to support it.

numericFieldsToSave
size_t[] numericFieldsToSave()

Undocumented in source. Be warned that the author may not have intended to support it.

textFieldsToSave
size_t[] textFieldsToSave()

Undocumented in source. Be warned that the author may not have intended to support it.

makeCalculator
SingleFieldCalculator makeCalculator()

Undocumented in source.

Meta