public static class AggregationGroupId.Builder extends DocumentBuilderImpl
AggregationGroupId
.
This AggregationGroupId.Builder
also implements the
DocumentBuilder
interface to
allow the construction of arbitrarily complex id documents.
AbstractBuilder.BuilderElement
ASSERTIONS_ENABLED, BUILDER_ELEMENT_CLASS, myElements
Constructor and Description |
---|
AggregationGroupId.Builder()
Creates a new Builder.
|
Modifier and Type | Method and Description |
---|---|
AggregationGroupId.Builder |
addField(String fieldRef)
Adds a field reference to the id document.
|
AggregationGroupId.Builder |
addField(String name,
String fieldRef)
Adds a field reference to the id document.
|
AggregationGroupId |
buildId()
Constructs a new
AggregationGroupId object from the state of
the builder. |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addBinary, addBinary, addBoolean, addDBPointer, addDocument, addDouble, addInteger, addJavaScript, addJavaScript, addLegacyUuid, addLong, addMaxKey, addMinKey, addMongoTimestamp, addNull, addObjectId, addRegularExpression, addRegularExpression, addString, addSymbol, addTimestamp, addUuid, asDocument, build, build, push, pushArray, remove, reset
coerse, doPush, doPushArray, pop, subElements
public AggregationGroupId.Builder()
public AggregationGroupId.Builder addField(String fieldRef)
This method is equivalent to addField(<fieldRef>, <fieldRef>)
with appropriate
handling for the '$' prefix.
fieldRef
- The dotted field path for the field to use. If the
fieldRef does not start with a '$' then one will
be added.public AggregationGroupId.Builder addField(String name, String fieldRef)
name
- The name of the field in the id document.fieldRef
- The dotted field path for the field to use. If the
fieldRef does not start with a '$' then one will
be added.public AggregationGroupId buildId()
AggregationGroupId
object from the state of
the builder.AggregationGroupId
object.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.