public class AggregationGroupField extends Object
$group
pipeline operator.Modifier and Type | Class and Description |
---|---|
static class |
AggregationGroupField.Builder
Builder provides the ability to construct a
AggregationGroupField
. |
Modifier | Constructor and Description |
---|---|
protected |
AggregationGroupField(String name,
String operator,
int value)
Creates a new AggregationGroupField.
|
protected |
AggregationGroupField(String name,
String operator,
String fieldRef)
Creates a new AggregationGroupField.
|
Modifier and Type | Method and Description |
---|---|
static AggregationGroupField.Builder |
set(String fieldName)
Helper method for creating
AggregationGroupField.Builder s using
with a specific fieldName. |
Element |
toElement()
Returns the element for the group operator's field.
|
protected AggregationGroupField(String name, String operator, int value)
name
- The name of the output document field to be set.operator
- The operator to use to perform the aggregation.value
- The value to supply the operator.protected AggregationGroupField(String name, String operator, String fieldRef)
name
- The name of the output document field to be set.operator
- The operator to use to perform the aggregation.fieldRef
- The field reference to use. If the fieldRef does not
start with a '$' then one will be added.public static AggregationGroupField.Builder set(String fieldName)
AggregationGroupField.Builder
s using
with a specific fieldName.fieldName
- The name of the output document field to be set.AggregationGroupField
.public Element toElement()
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.