R - Projection result typepublic interface BsonProjection<R>
extends com.holonplatform.core.TypedExpression<R>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BsonProjection.Builder<R>
Builder.
|
| Modifier and Type | Method and Description |
|---|---|
static <R> BsonProjection.Builder<R> |
builder(Class<R> projectionType)
Get a new
BsonProjection builder. |
static <R> BsonProjection.Builder<R> |
builder(Class<R> projectionType,
boolean countAllProjection)
Get a new
BsonProjection builder. |
static BsonProjection<Long> |
countAll()
Create a new count all
BsonProjection. |
Optional<DocumentConverter<R>> |
getConverter()
Get the projection
DocumentConverter. |
List<String> |
getFieldNames()
Get the field names.
|
List<org.bson.conversions.Bson> |
getFieldProjections()
Get the field projection values.
|
Map<String,org.bson.conversions.Bson> |
getFields()
Get the projection fields as field name - Bson expression map.
|
boolean |
hasAggregationFunctions()
Get whether this projection include one or more aggregation functions (for example min, man, sum, avg,
count).
|
boolean |
isCountAllProjection()
Get whether this projection is a count all projection.
|
Optional<String> |
isCountFieldProjection()
Get whether this projection is a count projection on a specific field name.
|
default boolean |
isEmpty()
Get whether the projection is empty.
|
default boolean isEmpty()
Map<String,org.bson.conversions.Bson> getFields()
List<org.bson.conversions.Bson> getFieldProjections()
Optional<DocumentConverter<R>> getConverter()
DocumentConverter.boolean isCountAllProjection()
Optional<String> isCountFieldProjection()
boolean hasAggregationFunctions()
static BsonProjection<Long> countAll()
BsonProjection.BsonProjectionstatic <R> BsonProjection.Builder<R> builder(Class<R> projectionType)
BsonProjection builder.R - Projection result typeprojectionType - Projection result typeBsonProjection builderstatic <R> BsonProjection.Builder<R> builder(Class<R> projectionType, boolean countAllProjection)
BsonProjection builder.R - Projection result typeprojectionType - Projection result typecountAllProjection - Whether the projection is a count all projectionBsonProjection builderCopyright © 2019 The Holon Platform. All rights reserved.