private static final class Aggregates.BucketStage<TExpression,TBoundary> extends java.lang.Object implements Bson
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<TBoundary> |
boundaries |
private TExpression |
groupBy |
private BucketOptions |
options |
| Constructor and Description |
|---|
BucketStage(TExpression groupBy,
java.util.List<TBoundary> boundaries,
BucketOptions options) |
| Modifier and Type | Method and Description |
|---|---|
<TDocument> |
toBsonDocument(java.lang.Class<TDocument> tDocumentClass,
CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
|
java.lang.String |
toString() |
private final TExpression groupBy
private final java.util.List<TBoundary> boundaries
private final BucketOptions options
BucketStage(TExpression groupBy, java.util.List<TBoundary> boundaries, BucketOptions options)
public <TDocument> BsonDocument toBsonDocument(java.lang.Class<TDocument> tDocumentClass, CodecRegistry codecRegistry)
BsontoBsonDocument in interface BsonTDocument - the type of the document classtDocumentClass - the document class in scope for the collection. This parameter may be ignored, but it may be used to alter
the structure of the returned BsonDocument based on some knowledge of the document class.codecRegistry - the codec registry. This parameter may be ignored, but it may be used to look up Codec instances for
the document class or any other related class.public java.lang.String toString()
toString in class java.lang.Object