public class NearSphereSelector extends QuerySelector
| Modifier and Type | Field and Description |
|---|---|
static int |
EARTH_RADIUS_IN_METERS |
| Constructor and Description |
|---|
NearSphereSelector() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
extractOperator(Object query)
Extracts the operator (for example $eq) from the query.
|
QueryOperation |
getOperation(Object query)
Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.
|
protected String |
operator()
The operator a query must have to be considered as an instance of the corresponding operation.
|
QueryOperation |
parseValue(String fieldName,
Object innerDoc,
boolean legacyCoordinates) |
hasTheExpectedOperator, isUniqueEntrypublic static final int EARTH_RADIUS_IN_METERS
public QueryOperation getOperation(Object query)
QuerySelectorgetOperation in class QuerySelectorprotected String extractOperator(Object query)
QuerySelectorextractOperator in class QuerySelectorprotected String operator()
QuerySelectoroperator in class QuerySelectorpublic QueryOperation parseValue(String fieldName, Object innerDoc, boolean legacyCoordinates)
Copyright © 2016–2025. All rights reserved.