ZeroFieldOperator

ZeroFieldOperator is a base class for operators that take no input. The main use case is the CountOperator, which counts the occurrences of each unique key. Other uses are possible, for example, weighted random number assignment.

The primary rationale for ZeroFieldOperator and ZeroFieldCalculator is to clarify the information available to such a routine. In particular, the split fields passed to processHeaderLine and processNextLine don't include all fields in the input, something that might not be obvious when implementing an operator. (Only fields required by operators acting on specific fields are included.)

Constructors

this
this(string operatorName)
Undocumented in source.

Members

Functions

allowCustomHeader
bool allowCustomHeader()
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.
makeCalculator
ZeroFieldCalculator makeCalculator()
Undocumented in source.
name
string name()
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.
processHeaderLine
void processHeaderLine(char[][] fields)
Undocumented in source. Be warned that the author may not have intended to support it.
setCustomHeader
void setCustomHeader(string customHeader)
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.

Inherited Members

From Operator

header
string header [@property getter]
Undocumented in source.
name
string name [@property getter]
Undocumented in source.
processHeaderLine
void processHeaderLine(char[][] fields)
Undocumented in source.
numericFieldsToSave
size_t[] numericFieldsToSave()
Undocumented in source.
textFieldsToSave
size_t[] textFieldsToSave()
Undocumented in source.
makeCalculator
Calculator makeCalculator()
Undocumented in source.

Meta