Package org.geotools.appschema.util
Class IndexQueryUtils
Object
IndexQueryUtils
- Author:
- Fernando MiƱo - Geosolutions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Filter
buildIdInExpression
(List<String> ids, FeatureTypeMapping mapping) Builds a mapping->identifier IN (ids...) like function/clausestatic Filter
buildIdInExpressionFunction
(List<String> ids, FeatureTypeMapping mapping) Builds a mapping->identifier IN (ids...) like function/clausestatic Filter
buildIdInExpressionOr
(List<String> ids, FeatureTypeMapping mapping) Builds an OR operator comparing Identifier with ids liststatic boolean
checkAllPropertiesIndexed
(List<String> properties, FeatureTypeMapping mapping) Checks if all properties are indexed in mappingstatic boolean
equalsProperty
(AttributeMapping mapping, String propertyName) Checks if property name is equals to source/identifier expression in attribute mappingstatic boolean
equalsPropertyExpression
(Expression expression, String propertyName) Compare if expression == propertyNamestatic boolean
equalsXpath
(FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) Compare if mapping-xpath == attMappinggetAttributesOnFilter
(Filter filter) Extracts List of attributes names from FiltergetAttributesOnSort
(Query query) Extracts List of Sort attributes names from Querystatic AttributeMapping
getIndexedAttribute
(FeatureTypeMapping mapping, String xpath) static boolean
isExpressionEmpty
(Expression expression) Checks if Expression is empty or Null
-
Method Details
-
getAttributesOnSort
Extracts List of Sort attributes names from Query- Returns:
- List of Sort attributes names
-
getAttributesOnFilter
Extracts List of attributes names from Filter- Returns:
- List of attributes names
-
isExpressionEmpty
Checks if Expression is empty or Null -
equalsProperty
Checks if property name is equals to source/identifier expression in attribute mapping -
equalsXpath
public static boolean equalsXpath(FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) Compare if mapping-xpath == attMapping -
equalsPropertyExpression
Compare if expression == propertyName -
checkAllPropertiesIndexed
public static boolean checkAllPropertiesIndexed(List<String> properties, FeatureTypeMapping mapping) Checks if all properties are indexed in mapping -
buildIdInExpressionOr
Builds an OR operator comparing Identifier with ids list- Returns:
- Or Filter
-
buildIdInExpressionFunction
Builds a mapping->identifier IN (ids...) like function/clause- Returns:
- Filter IN function
-
buildIdInExpression
Builds a mapping->identifier IN (ids...) like function/clause- Returns:
- Filter IN function
-
getIndexedAttribute
-