FilterCapabilities
.public class FilterCapabilities extends Object
Each SQLEncoder class should have one static FilterCapabilities, representing the filter encoding operations that it can successfully perform.
This class is used as one big mask to detect filters that cannot be performed
Modifier and Type | Field and Description |
---|---|
static long |
ALL
Deprecated.
Mask for Filter.EXCLUDE
|
static long |
BETWEEN
Deprecated.
Scalar Mask for between opelongion
|
static long |
COMPARE_EQUALS
Deprecated.
|
static long |
COMPARE_GREATER_THAN
Deprecated.
|
static long |
COMPARE_GREATER_THAN_EQUAL
Deprecated.
|
static long |
COMPARE_LESS_THAN
Deprecated.
|
static long |
COMPARE_LESS_THAN_EQUAL
Deprecated.
|
static long |
COMPARE_NOT_EQUALS
Deprecated.
|
static long |
FID
Deprecated.
|
static long |
FUNCTIONS
Deprecated.
Scalar Mask for function operations
|
static long |
LIKE
Deprecated.
Scalar Mask for like operation
|
static long |
LOGIC_AND
Deprecated.
|
static long |
LOGIC_NOT
Deprecated.
|
static long |
LOGIC_OR
Deprecated.
|
static long |
LOGICAL
Deprecated.
Scalar Mask for logical operation
|
static FilterCapabilities |
LOGICAL_OPENGIS
Deprecated.
|
static long |
NO_OP
Deprecated.
Mask for no operation
|
static long |
NONE
Deprecated.
Mask for Filter.INCLUDE
|
static long |
NULL_CHECK
Deprecated.
Scalar Mask for null check operation
|
static long |
SIMPLE_ARITHMETIC
Deprecated.
Scalar Mask for simple arithmetic operations
|
static long |
SIMPLE_COMPARISONS
Deprecated.
Scalar Mask for simple comparison operations
|
static FilterCapabilities |
SIMPLE_COMPARISONS_OPENGIS
Deprecated.
|
static long |
SPATIAL_BBOX
Deprecated.
Spatial Mask for bbox operation
|
static long |
SPATIAL_BEYOND
Deprecated.
Spatial Mask for beyond operation
|
static long |
SPATIAL_CONTAINS
Deprecated.
Spatial Mask for contains operation
|
static long |
SPATIAL_CROSSES
Deprecated.
Spatial Mask for crosses operation
|
static long |
SPATIAL_DISJOINT
Deprecated.
Spatial Mask for disjoint operation
|
static long |
SPATIAL_DWITHIN
Deprecated.
Spatial Mask for dwithin operation
|
static long |
SPATIAL_EQUALS
Deprecated.
Spatial Mask for equals operation
|
static long |
SPATIAL_INTERSECT
Deprecated.
Spatial Mask for intersect operation
|
static long |
SPATIAL_OVERLAPS
Deprecated.
Spatial Mask for overlaps operation
|
static long |
SPATIAL_TOUCHES
Deprecated.
Spatial Mask for touches operation
|
static long |
SPATIAL_WITHIN
Deprecated.
Spatial Mask for within operation
|
Constructor and Description |
---|
FilterCapabilities()
Deprecated.
|
FilterCapabilities(Class type)
Deprecated.
|
FilterCapabilities(long filterCapabilitiesType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(FilterCapabilities capabilities)
Deprecated.
Add all the capabilities in the provided FilterCapabilities to this capabilities.
|
void |
addType(Class type)
Deprecated.
Adds a new support type to capabilities.
|
void |
addType(Class type,
boolean addFunctionType)
Deprecated.
Adds a new support type to capabilities.
|
void |
addType(long type)
Deprecated.
Adds a new support type to capabilities.
|
void |
addType(short type)
Deprecated.
|
FilterCapabilities |
convertFilterTypeToMask(short type)
Deprecated.
Returns the mask that is equivalent to the FilterType constant.
|
static FilterCapabilities |
findFunction(String name)
Deprecated.
Translates a String into an object that represents function expression
|
static FilterCapabilities |
findOperation(String name)
Deprecated.
Translates a String into an object that represents the operation
|
boolean |
fullySupports(Filter filter)
Deprecated.
Determines if the filter and all its sub filters are supported.
|
long |
getScalarOps()
Deprecated.
|
long |
getSpatialOps()
Deprecated.
|
boolean |
supports(Class type)
Deprecated.
|
boolean |
supports(Filter filter)
Deprecated.
Determines if the filter passed in is supported.
|
boolean |
supports(FilterCapabilities type)
Deprecated.
|
boolean |
supports(long type)
Deprecated.
|
boolean |
supports(short type)
Deprecated.
|
public static final long NO_OP
public static final long NONE
public static final long ALL
public static final long SPATIAL_BBOX
public static final long SPATIAL_EQUALS
public static final long SPATIAL_DISJOINT
public static final long SPATIAL_INTERSECT
public static final long SPATIAL_TOUCHES
public static final long SPATIAL_CROSSES
public static final long SPATIAL_WITHIN
public static final long SPATIAL_CONTAINS
public static final long SPATIAL_OVERLAPS
public static final long SPATIAL_BEYOND
public static final long SPATIAL_DWITHIN
public static final long LIKE
public static final long BETWEEN
public static final long NULL_CHECK
public static final long SIMPLE_ARITHMETIC
public static final long FUNCTIONS
public static final long COMPARE_EQUALS
public static final long COMPARE_GREATER_THAN
public static final long COMPARE_GREATER_THAN_EQUAL
public static final long COMPARE_LESS_THAN
public static final long COMPARE_LESS_THAN_EQUAL
public static final long COMPARE_NOT_EQUALS
public static final long FID
public static final long LOGIC_AND
public static final long LOGIC_NOT
public static final long LOGIC_OR
public static final long LOGICAL
public static final long SIMPLE_COMPARISONS
public static final FilterCapabilities SIMPLE_COMPARISONS_OPENGIS
public static final FilterCapabilities LOGICAL_OPENGIS
public FilterCapabilities(long filterCapabilitiesType)
public FilterCapabilities()
public FilterCapabilities(Class type)
public void addType(long type)
type
- The one of the masks enumerated in this classpublic void addType(Class type)
type
- the Class that indicates the new support.public void addType(Class type, boolean addFunctionType)
type
- the Class that indicates the new support.public void addAll(FilterCapabilities capabilities)
capabilities
- capabilities to add.public void addType(short type)
type
- The FilterType
type that is supportedconvertFilterTypeToMask(short)
,
addType(long)
public FilterCapabilities convertFilterTypeToMask(short type)
type
- a constant from FilterType
public boolean supports(Filter filter)
filter
- The Filter to be tested.public boolean fullySupports(Filter filter)
filter
- the filter to be tested.IllegalArgumentException
- If a null filter is passed in. As this function is recursive
a null in a logic filter will also cause an error.public boolean supports(short type)
type
- The AbstractFilter type to be testedpublic boolean supports(long type)
public boolean supports(FilterCapabilities type)
public boolean supports(Class type)
public long getScalarOps()
public long getSpatialOps()
public static FilterCapabilities findOperation(String name)
name
- String, operation nameFilterCapabilities
constantspublic static FilterCapabilities findFunction(String name)
name
- String, expression nameFilterCapabilities
constantsCopyright © 1996–2019 Geotools. All rights reserved.