public class AggregationGroupId extends Object
$group
pipeline operator.Modifier and Type | Class and Description |
---|---|
static class |
AggregationGroupId.Builder
Builder provides the ability to construct a complex
AggregationGroupId . |
Constructor and Description |
---|
AggregationGroupId(DocumentAssignable builder)
Creates a new AggregationGroupId.
|
AggregationGroupId(String value)
Creates a new AggregationGroupId.
|
Modifier and Type | Method and Description |
---|---|
static AggregationGroupId |
constantId(String value)
Constructs a
AggregationGroupId with a constant value. |
static AggregationGroupId.Builder |
id()
Creates a builder to construct a complex _id value for the group.
|
static AggregationGroupId |
id(String fieldRef)
Constructs a
AggregationGroupId with a value from a single field
in the source documents. |
Element |
toElement()
Returns the element for the group operator's id.
|
public AggregationGroupId(DocumentAssignable builder)
builder
- The builder containing the details of the id.public AggregationGroupId(String value)
value
- The value for the simple group id.public static AggregationGroupId constantId(String value)
AggregationGroupId
with a constant value.value
- The value of the _id.public static AggregationGroupId.Builder id()
public static AggregationGroupId id(String fieldRef)
AggregationGroupId
with a value from a single field
in the source documents.fieldRef
- The field name in the source documents to use in constructing
the _id of the group'd documents. If the fieldRef
does not start with a '$' then one will be added.public Element toElement()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.