RangeClauseInQuery

RangeClauseInQuery

Represents the clause of range clause when query history states.

Constructor

new RangeClauseInQuery(field, upperLimit, upperIncluded, lowerLimit, lowerIncluded)

Create a range clause.
Properties:
Name Type Description
field string Field name of comparison.
upperLimit number The upper limit of the range.
upperIncluded boolean Boolean field that indicates if the upper limit is contained in the range, if omitted is considered as "true".
lowerLimit number The lower limit of the range.
lowerIncluded boolean Boolean field that indicates if the lower limit is contained in the range, if omitted is considered as "true".
Parameters:
Name Type Description
field string Field name of comparison.
upperLimit number The upper limit of the range.
upperIncluded boolean Boolean field that indicates if the upper limit is contained in the range, if omitted is considered as "true".
lowerLimit number The upper lower of the range.
lowerIncluded boolean Boolean field that indicates if the lower limit is contained in the range, if omitted is considered as "true".

Methods

(static) greaterThan(field, lowerLimit) → {RangeClauseInQuery}

Create a Range instance of the less than.
Parameters:
Name Type Description
field string Field name of comparison.
lowerLimit number The upper lower of the range.
Returns:
Type:
RangeClauseInQuery
RangeClauseInQuery instance.

(static) greaterThanEquals(field, lowerLimit) → {RangeClauseInQuery}

Create a Range instance of the less than or equals.
Parameters:
Name Type Description
field string Field name of comparison.
lowerLimit number The upper lower of the range.
Returns:
Type:
RangeClauseInQuery
RangeClauseInQuery instance.

(static) lessThan(field, upperLimit) → {RangeClauseInQuery}

Create a Range instance of the greater than.
Parameters:
Name Type Description
field string Field name of comparison.
upperLimit number The upper limit of the range.
Returns:
Type:
RangeClauseInQuery
RangeClauseInQuery instance.

(static) lessThanEquals(field, upperLimit) → {RangeClauseInQuery}

Create a Range instance of the greater than or equals.
Parameters:
Name Type Description
field string Field name of comparison.
upperLimit number The upper limit of the range.
Returns:
Type:
RangeClauseInQuery
RangeClauseInQuery instance.