Class SelectToMongodb


public class SelectToMongodb extends RequestToMongodb
Select to MongoDb
  • Constructor Details

    • SelectToMongodb

      public SelectToMongodb(AbstractParser<?> selectParser)
      Parameters:
      selectParser - AbstractParser of unknown type
  • Method Details

    • getFinalOrderBy

      public org.bson.conversions.Bson getFinalOrderBy()
      FindIterable.sort(orderby) for MongoDb
      Returns:
      the orderBy MongoDB command
    • getSingleSelect

      public Select getSingleSelect()
      Returns:
      the Select Single
    • idWasInProjection

      public boolean idWasInProjection()
      Returns:
      True if #id was in the primary projection or empty projection
    • isScoreIncluded

      public boolean isScoreIncluded()
      Returns:
      True if the score is included, or false if explicitly excluded
    • getFinalProjection

      public org.bson.conversions.Bson getFinalProjection() throws InvalidParseOperationException
      FindIterable.projection(projection)
      Returns:
      the projection
      Throws:
      InvalidParseOperationException - when getting invalid projection request