public final class IndexQueryUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Filter |
buildIdInExpression(List<String> ids,
FeatureTypeMapping mapping)
Builds a mapping->identifier IN (ids...) like function/clause
|
static Filter |
buildIdInExpressionFunction(List<String> ids,
FeatureTypeMapping mapping)
Builds a mapping->identifier IN (ids...) like function/clause
|
static Filter |
buildIdInExpressionOr(List<String> ids,
FeatureTypeMapping mapping)
Builds an OR operator comparing Identifier with ids list
|
static boolean |
checkAllPropertiesIndexed(List<String> properties,
FeatureTypeMapping mapping)
Checks if all properties are indexed in mapping
|
static boolean |
equalsProperty(AttributeMapping mapping,
String propertyName)
Checks if property name is equals to source/identifier expression in attribute mapping
|
static boolean |
equalsPropertyExpression(Expression expression,
String propertyName)
Compare if expression == propertyName
|
static boolean |
equalsXpath(FeatureTypeMapping mapping,
AttributeMapping attMapping,
String xpath)
Compare if mapping-xpath == attMapping
|
static List<String> |
getAttributesOnFilter(Filter filter)
Extracts List of attributes names from Filter
|
static List<String> |
getAttributesOnSort(Query query)
Extracts List of Sort attributes names from Query
|
static AttributeMapping |
getIndexedAttribute(FeatureTypeMapping mapping,
String xpath) |
static boolean |
isExpressionEmpty(Expression expression)
Checks if Expression is empty or Null
|
public static List<String> getAttributesOnSort(Query query)
query
- public static List<String> getAttributesOnFilter(Filter filter)
filter
- public static boolean isExpressionEmpty(Expression expression)
expression
- public static boolean equalsProperty(AttributeMapping mapping, String propertyName)
mapping
- propertyName
- public static boolean equalsXpath(FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath)
mapping
- attMapping
- xpath
- public static boolean equalsPropertyExpression(Expression expression, String propertyName)
expression
- propertyName
- public static boolean checkAllPropertiesIndexed(List<String> properties, FeatureTypeMapping mapping)
properties
- mapping
- public static Filter buildIdInExpressionOr(List<String> ids, FeatureTypeMapping mapping)
ids
- mapping
- public static Filter buildIdInExpressionFunction(List<String> ids, FeatureTypeMapping mapping)
ids
- mapping
- public static Filter buildIdInExpression(List<String> ids, FeatureTypeMapping mapping)
ids
- mapping
- public static AttributeMapping getIndexedAttribute(FeatureTypeMapping mapping, String xpath)
Copyright © 1996–2019 Geotools. All rights reserved.