Class GroupOperation<T>
java.lang.Object
com.northconcepts.datapipeline.group.GroupOperation<T>
- Direct Known Subclasses:
GroupAverage,GroupCollect,GroupCount,GroupFirst,GroupLast,GroupMaximum,GroupMinimum,GroupSum
See
FieldPath for supported field name expressions.-
Constructor Summary
ConstructorsConstructorDescriptionGroupOperation(FieldPath sourceFieldName) GroupOperation(FieldPath sourceFieldPath, FieldPath targetFieldPath) GroupOperation(FieldPath sourceFieldPath, FieldPath targetFieldPath, boolean excludeNulls) GroupOperation(String sourceFieldName) GroupOperation(String sourceFieldName, String targetFieldName) GroupOperation(String sourceFieldName, String targetFieldName, boolean excludeNulls) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract GroupOperationField<T> Creates the accumulator that computes this operation's result for one group; called once per group in each window.booleanIndicates if this operation skips records whose source field is null (defaults to false; ignored when there is no source field).Returns the filter limiting which records this operation applies to or null if it applies to all of them.Returns the field this operation reads as a string or null if it reads none (as when counting records).Returns the field this operation reads or null if it reads none (as when counting records).Returns the summary record field this operation writes to as a string; defaults to the source field.Returns the summary record field this operation writes to; defaults to the source field.setExcludeNulls(boolean excludeNulls) Indicates if this operation skips records whose source field is null (defaults to false; ignored when there is no source field).Sets the filter limiting which records this operation applies to; null applies it to all of them.setTargetFieldName(String targetFieldName) Sets the summary record field this operation writes to; null or blank reverts to the source field.toString()
-
Constructor Details
-
GroupOperation
-
GroupOperation
-
GroupOperation
-
GroupOperation
-
GroupOperation
-
GroupOperation
-
-
Method Details
-
getFilter
Returns the filter limiting which records this operation applies to or null if it applies to all of them. -
setFilter
Sets the filter limiting which records this operation applies to; null applies it to all of them. -
getSourceFieldPath
Returns the field this operation reads or null if it reads none (as when counting records). -
getSourceFieldName
Returns the field this operation reads as a string or null if it reads none (as when counting records). -
getTargetFieldPath
Returns the summary record field this operation writes to; defaults to the source field. -
getTargetFieldName
Returns the summary record field this operation writes to as a string; defaults to the source field. -
setTargetFieldName
Sets the summary record field this operation writes to; null or blank reverts to the source field. -
getExcludeNulls
public boolean getExcludeNulls()Indicates if this operation skips records whose source field is null (defaults to false; ignored when there is no source field). -
setExcludeNulls
Indicates if this operation skips records whose source field is null (defaults to false; ignored when there is no source field). -
createField
Creates the accumulator that computes this operation's result for one group; called once per group in each window. -
toString
-