com.holonplatform.datastore.mongo.core.expression

## Interface BsonQuery.Builder

- Enclosing interface:
    BsonQuery

      public static interface BsonQuery.Builder

  `BsonQuery` builder.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `BsonQuery` | `build()` Build the `BsonQuery` instance.
    `BsonQuery.Builder` | `distinct(String fieldName)` Mark the query as a distinct field value query.
    `BsonQuery.Builder` | `projection(BsonProjection<?> projection)` Set the query projection.

- - ### Method Detail

    - #### projection

          BsonQuery.Builder projection(BsonProjection<?> projection)

      Set the query projection.
      Parameters:
        `projection` - The query projection
      Returns:
        this

    - #### distinct

          BsonQuery.Builder distinct(String fieldName)

      Mark the query as a distinct field value query.
      Parameters:
        `fieldName` - Distinct field name (not null)
      Returns:
        this

    - #### build

          BsonQuery build()

      Build the `BsonQuery` instance.
      Returns:
        The `BsonQuery` instance

Copyright © 2019 The Holon Platform. All rights reserved.