public class GroupCollect extends GroupOperation<ArrayValue>
GroupOperation| Constructor and Description |
|---|
GroupCollect(FieldPath sourceFieldName)
Creates a GroupCollect operation for the specified source field path.
|
GroupCollect(FieldPath sourceFieldName,
FieldPath targetFieldName)
Creates a GroupCollect operation with source and target field paths.
|
GroupCollect(FieldPath sourceFieldName,
FieldPath targetFieldName,
boolean excludeNulls)
Creates a GroupCollect operation with source and target field paths and null exclusion option.
|
GroupCollect(String sourceFieldName)
Creates a GroupCollect operation for the specified source field.
|
GroupCollect(String sourceFieldName,
String targetFieldName)
Creates a GroupCollect operation with source and target field names.
|
GroupCollect(String sourceFieldName,
String targetFieldName,
boolean excludeNulls)
Creates a GroupCollect operation with source and target field names and null exclusion option.
|
| Modifier and Type | Method and Description |
|---|---|
protected GroupOperationField<ArrayValue> |
createField() |
boolean |
isDistinctValues()
Returns whether only distinct values are collected.
|
boolean |
isFlattenArrayValues()
Returns whether array values should be flattened during collection.
|
GroupCollect |
setDistinctValues(boolean distinctValues)
Sets whether only distinct values should be collected.
|
GroupCollect |
setFlattenArrayValues(boolean flattenArrayValues)
Sets whether array values should be flattened during collection.
|
String |
toString() |
getExcludeNulls, getFilter, getSourceFieldName, getSourceFieldPath, getTargetFieldName, getTargetFieldPath, setExcludeNulls, setFilter, setTargetFieldNamepublic GroupCollect(String sourceFieldName)
sourceFieldName - the name of the source field to collect values frompublic GroupCollect(FieldPath sourceFieldName)
sourceFieldName - the path of the source field to collect values frompublic GroupCollect(String sourceFieldName, String targetFieldName)
sourceFieldName - the name of the source field to collect values fromtargetFieldName - the name of the target field where the array will be placedpublic GroupCollect(FieldPath sourceFieldName, FieldPath targetFieldName)
sourceFieldName - the path of the source field to collect values fromtargetFieldName - the path of the target field where the array will be placedpublic GroupCollect(String sourceFieldName, String targetFieldName, boolean excludeNulls)
sourceFieldName - the name of the source field to collect values fromtargetFieldName - the name of the target field where the array will be placedexcludeNulls - true to exclude null values from the collection, false to include thempublic GroupCollect(FieldPath sourceFieldName, FieldPath targetFieldName, boolean excludeNulls)
sourceFieldName - the path of the source field to collect values fromtargetFieldName - the path of the target field where the array will be placedexcludeNulls - true to exclude null values from the collection, false to include thempublic boolean isDistinctValues()
public GroupCollect setDistinctValues(boolean distinctValues)
distinctValues - true to collect only distinct values, false to allow duplicatespublic boolean isFlattenArrayValues()
public GroupCollect setFlattenArrayValues(boolean flattenArrayValues)
flattenArrayValues - true to flatten array values, false to keep them nestedprotected GroupOperationField<ArrayValue> createField()
createField in class GroupOperation<ArrayValue>public String toString()
toString in class GroupOperation<ArrayValue>Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.