| Package | Description | 
|---|---|
| com.allanbank.mongodb.builder | Provides domain classes and builders for queries and the common MongoDB commands. | 
| com.allanbank.mongodb.builder.expression | 
| Modifier and Type | Method and Description | 
|---|---|
| Aggregate.Builder | Aggregate.Builder. redact(Expression ifExpression,
      RedactOption thenOption,
      RedactOption elseOption)Adds a $redact operation to potentially prune sub-documents
 from the results. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ConstantRepresents constant value in an expression. | 
| class  | NaryExpressionNaryExpression provides an implementation of an  Expressionwith 2-N
 operands. | 
| class  | UnaryExpressionUnaryExpression provides an implementation of an  Expressionwith 1
 operand. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Expression | UnaryExpression. myExpressionThe sub expression. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Expression | Expressions. constant(Element element)Returns a  Constantexpression wrapping the provided
 element. | 
| Expression | MapStage2. in(Expression mapOperation)Creates the final  $mapexpression to evaluate. | 
| Modifier and Type | Method and Description | 
|---|---|
| static NaryExpression | Expressions. add(Expression... expressions)Returns an  NaryExpression"$add" expression. | 
| static UnaryExpression | Expressions. allElementsTrue(Expression expression)Returns a  UnaryExpression"$allElementsTrue" expression. | 
| static NaryExpression | Expressions. and(Expression... expressions)Returns an  NaryExpression"$and" expression. | 
| static UnaryExpression | Expressions. anyElementTrue(Expression expression)Returns a  UnaryExpression"$anyElementTrue" expression. | 
| static NaryExpression | Expressions. cmp(Expression lhs,
   Expression rhs)Returns a  NaryExpression"$cmp" expression. | 
| static NaryExpression | Expressions. concatenate(Expression... expression)Returns a  NaryExpression"$concat" expression. | 
| static NaryExpression | Expressions. cond(Expression test,
    Expression trueResult,
    Expression falseResult)Returns a  NaryExpression"$cond" expression. | 
| static UnaryExpression | Expressions. dayOfMonth(Expression expression)Returns a  UnaryExpression"$dayOfMonth" expression. | 
| static UnaryExpression | Expressions. dayOfWeek(Expression expression)Returns a  UnaryExpression"$dayOfWeek" expression. | 
| static UnaryExpression | Expressions. dayOfYear(Expression expression)Returns a  UnaryExpression"$dayOfYear" expression. | 
| static NaryExpression | Expressions. divide(Expression numerator,
      Expression denominator)Returns a  NaryExpression"$divide" expression. | 
| static NaryExpression | Expressions. eq(Expression lhs,
  Expression rhs)Returns a  NaryExpression"$eq" expression. | 
| static NaryExpression | Expressions. gt(Expression lhs,
  Expression rhs)Returns a  NaryExpression"$gt" expression. | 
| static NaryExpression | Expressions. gte(Expression lhs,
   Expression rhs)Returns a  NaryExpression"$gte"
 expression. | 
| static UnaryExpression | Expressions. hour(Expression expression)Returns a  UnaryExpression"$hour" expression. | 
| static NaryExpression | Expressions. ifNull(Expression first,
      Expression second)Returns a  NaryExpression"$ifNull" expression. | 
| UnaryExpression | LetBuilder. in(Expression letExpression)Creates the final  $letexpression to evaluate. | 
| Expression | MapStage2. in(Expression mapOperation)Creates the final  $mapexpression to evaluate. | 
| static UnaryExpression | Expressions. let(Expression inExpression,
   Element... variables)Creates a  $letexpression with the provided variables andinexpression. | 
| static UnaryExpression | Expressions. let(List<Element> variables,
   Expression inExpression)Creates a  $letexpression with the provided variables andinexpression. | 
| LetBuilder | LetBuilder. let(String name,
   Expression expression)Adds a variable to the  $letexpression. | 
| static LetBuilder | Expressions. let(String name,
   Expression expression)Starts the creation of a  $letexpression. | 
| static NaryExpression | Expressions. lt(Expression lhs,
  Expression rhs)Returns a  NaryExpression"$lt" expression. | 
| static NaryExpression | Expressions. lte(Expression lhs,
   Expression rhs)Returns a  NaryExpression"$lte" expression. | 
| static UnaryExpression | Expressions. map(String inputField,
   String variableName,
   Expression mapOperation)Returns a  UnaryExpressionexpression for the$mapoperation. | 
| static UnaryExpression | Expressions. millisecond(Expression expression)Returns a  UnaryExpression"$millisecond" expression. | 
| static UnaryExpression | Expressions. minute(Expression expression)Returns a  UnaryExpression"$minute" expression. | 
| static NaryExpression | Expressions. mod(Expression numerator,
   Expression denominator)Returns a  NaryExpression"$mod" expression. | 
| static UnaryExpression | Expressions. month(Expression expression)Returns a  UnaryExpression"$month" expression. | 
| static NaryExpression | Expressions. multiply(Expression lhs,
        Expression rhs)Returns a  NaryExpression"$multiply" expression. | 
| static NaryExpression | Expressions. ne(Expression lhs,
  Expression rhs)Returns a  NaryExpression"$ne" expression. | 
| static UnaryExpression | Expressions. not(Expression expression)Returns a  UnaryExpression"$not" expression. | 
| static NaryExpression | Expressions. or(Expression... expressions)Returns an  NaryExpression"$or" expression. | 
| static UnaryExpression | Expressions. second(Expression expression)Returns a  UnaryExpression"$second" expression. | 
| static Element | Expressions. set(String name,
   Expression expression)Returns an element to set the value to. | 
| static NaryExpression | Expressions. setDifference(Expression lhs,
             Expression rhs)Returns a  NaryExpression"$setDifference" expression. | 
| static NaryExpression | Expressions. setEquals(Expression lhs,
         Expression rhs)Returns a  NaryExpression"$setEquals" expression. | 
| static NaryExpression | Expressions. setIntersection(Expression lhs,
               Expression rhs)Returns a  NaryExpression"$setIntersection" expression. | 
| static NaryExpression | Expressions. setIsSubset(Expression subSet,
           Expression completeSet)Returns a  NaryExpression"$setIsSubset" expression. | 
| static NaryExpression | Expressions. setUnion(Expression lhs,
        Expression rhs)Returns a  NaryExpression"$setUnion" expression. | 
| static UnaryExpression | Expressions. size(Expression expression)Returns a  UnaryExpression"$size" expression. | 
| static NaryExpression | Expressions. strcasecmp(Expression lhs,
          Expression rhs)Returns a  NaryExpression"$strcasecmp" expression. | 
| static NaryExpression | Expressions. substr(Expression string,
      Expression skip,
      Expression length)Returns a  NaryExpression"$substr" expression. | 
| static NaryExpression | Expressions. subtract(Expression lhs,
        Expression rhs)Returns a  NaryExpression"$subtract" expression. | 
| static UnaryExpression | Expressions. toLower(Expression string)Returns a  UnaryExpression"$toLower" expression. | 
| static UnaryExpression | Expressions. toUpper(Expression string)Returns a  UnaryExpression"$toUpper" expression. | 
| static UnaryExpression | Expressions. week(Expression expression)Returns a  UnaryExpression"$week" expression. | 
| static UnaryExpression | Expressions. year(Expression expression)Returns a  UnaryExpression"$year" expression. | 
| Constructor and Description | 
|---|
| NaryExpression(String operator,
              Expression... expressions)Creates a new NaryExpression. | 
| UnaryExpression(String operator,
               Expression expression)Creates a new NaryExpression. | 
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.