Class AggregateReader.AggregateOperation
java.lang.Object
com.northconcepts.datapipeline.group.AggregateReader.AggregateOperation
- Enclosing class:
AggregateReader
Base class for the set functions an
AggregateReader applies to each record passing through it.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateOperation(String name, String fieldName) Creates an operation; itsname(such assum) andfieldNametogether identify it in the reader. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidUpdates this operation's result with a record passing through the reader.abstract Objectevaluate()Returns this operation's result so far.abstract voidreset()Clears this operation's result; called when the reader is opened or reset.toString()static StringReturns the key identifying an operation, such assum of AMOUNTfor namesumand fieldamount.
-
Field Details
-
fieldName
-
-
Constructor Details
-
AggregateOperation
Creates an operation; itsname(such assum) andfieldNametogether identify it in the reader.
-
-
Method Details
-
toString
-
toString
Returns the key identifying an operation, such assum of AMOUNTfor namesumand fieldamount. -
accept
Updates this operation's result with a record passing through the reader. -
evaluate
Returns this operation's result so far. -
reset
public abstract void reset()Clears this operation's result; called when the reader is opened or reset.
-