public enum FilterOperator extends Enum<FilterOperator>
Enum Constant and Description |
---|
ALL |
ELEMENT_MATCH |
EQUAL |
EXISTS |
GEO_NEAR |
GEO_WITHIN |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
IN |
INTERSECTS |
LESS_THAN |
LESS_THAN_OR_EQUAL |
MOD |
NEAR |
NEAR_SPHERE |
NOT |
NOT_EQUAL |
NOT_IN |
SIZE |
TYPE |
WHERE |
WITHIN
Deprecated.
New in server version 2.4: $geoWithin replaces $within which is deprecated.
|
WITHIN_BOX |
WITHIN_CIRCLE |
WITHIN_CIRCLE_SPHERE |
Modifier and Type | Method and Description |
---|---|
static FilterOperator |
fromString(String operator) |
boolean |
matches(String filter) |
String |
val() |
static FilterOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FilterOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FilterOperator WITHIN_CIRCLE
public static final FilterOperator WITHIN_CIRCLE_SPHERE
public static final FilterOperator WITHIN_BOX
public static final FilterOperator EQUAL
public static final FilterOperator NOT_EQUAL
public static final FilterOperator GREATER_THAN
public static final FilterOperator GREATER_THAN_OR_EQUAL
public static final FilterOperator LESS_THAN
public static final FilterOperator LESS_THAN_OR_EQUAL
public static final FilterOperator EXISTS
public static final FilterOperator TYPE
public static final FilterOperator NOT
public static final FilterOperator MOD
public static final FilterOperator SIZE
public static final FilterOperator IN
public static final FilterOperator NOT_IN
public static final FilterOperator ALL
public static final FilterOperator ELEMENT_MATCH
public static final FilterOperator WHERE
public static final FilterOperator NEAR
public static final FilterOperator NEAR_SPHERE
@Deprecated public static final FilterOperator WITHIN
public static final FilterOperator GEO_NEAR
public static final FilterOperator GEO_WITHIN
public static final FilterOperator INTERSECTS
public static FilterOperator[] values()
for (FilterOperator c : FilterOperator.values()) System.out.println(c);
public static FilterOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String val()
public boolean matches(String filter)
public static FilterOperator fromString(String operator)
Copyright © 2016. All rights reserved.