R
- Projection result typepublic static interface BsonProjection.Builder<R>
Modifier and Type | Method and Description |
---|---|
BsonProjection<R> |
build()
Build the
BsonProjection . |
BsonProjection.Builder<R> |
converter(DocumentConverter<R> converter)
Set the document results converter.
|
BsonProjection.Builder<R> |
countByField(String fieldName)
Set that this projection is a count projection on given field name.
|
BsonProjection.Builder<R> |
field(String fieldName)
Add a projection field name.
|
BsonProjection.Builder<R> |
field(String fieldName,
org.bson.conversions.Bson bson)
Add a projection field.
|
BsonProjection.Builder<R> |
hasAggregationFunctions(boolean hasAggregationFunctions)
Set whether this projection include one or more aggregation functions.
|
BsonProjection.Builder<R> field(String fieldName, org.bson.conversions.Bson bson)
fieldName
- Projection field name (not null)bson
- Field projection (not null)BsonProjection.Builder<R> field(String fieldName)
fieldName
- Projection field name (not null)BsonProjection.Builder<R> converter(DocumentConverter<R> converter)
converter
- The converter to setBsonProjection.Builder<R> hasAggregationFunctions(boolean hasAggregationFunctions)
hasAggregationFunctions
- whether this projection include one or more aggregation functionsBsonProjection.Builder<R> countByField(String fieldName)
fieldName
- Field nameBsonProjection<R> build()
BsonProjection
.BsonProjection
Copyright © 2019 The Holon Platform. All rights reserved.