Class QueryCharacteristics.RangeQuery<T>
java.lang.Object
org.springframework.data.mongodb.core.schema.QueryCharacteristics.RangeQuery<T>
- Type Parameters:
T-
- All Implemented Interfaces:
QueryCharacteristic
- Enclosing class:
- QueryCharacteristics
public static class QueryCharacteristics.RangeQuery<T>
extends Object
implements QueryCharacteristic
QueryCharacteristic for range comparison.- Since:
- 4.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontention(long contention) precision(long precision) sparsity(long sparsity) org.bson.DocumenttrimFactor(int trimFactor)
-
Constructor Details
-
Method Details
-
min
- Parameters:
lower- the lower value range boundary for the queryable field.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
max
- Parameters:
upper- the upper value range boundary for the queryable field.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
trimFactor
- Parameters:
trimFactor- value to control the throughput of concurrent inserts and updates.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
sparsity
- Parameters:
sparsity- value to control the value density within the index.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
contention
- Parameters:
contention- concurrent counter partition factor.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
precision
- Parameters:
precision- digits considered comparing floating point numbers.- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
queryType
- Specified by:
queryTypein interfaceQueryCharacteristic- Returns:
- the query type, eg. range.
-
toDocument
public org.bson.Document toDocument()- Specified by:
toDocumentin interfaceQueryCharacteristic- Returns:
- the raw
Documentrepresentation of the instance.
-