Package org.geotools.appschema.util
Class IndexQueryUtils
Object
IndexQueryUtils
- Author:
- Fernando MiƱo - Geosolutions
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilterbuildIdInExpression(List<String> ids, FeatureTypeMapping mapping) Builds a mapping->identifier IN (ids...) like function/clausestatic FilterbuildIdInExpressionFunction(List<String> ids, FeatureTypeMapping mapping) Builds a mapping->identifier IN (ids...) like function/clausestatic FilterbuildIdInExpressionOr(List<String> ids, FeatureTypeMapping mapping) Builds an OR operator comparing Identifier with ids liststatic booleancheckAllPropertiesIndexed(List<String> properties, FeatureTypeMapping mapping) Checks if all properties are indexed in mappingstatic booleanequalsProperty(AttributeMapping mapping, String propertyName) Checks if property name is equals to source/identifier expression in attribute mappingstatic booleanequalsPropertyExpression(Expression expression, String propertyName) Compare if expression == propertyNamestatic booleanequalsXpath(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 AttributeMappinggetIndexedAttribute(FeatureTypeMapping mapping, String xpath) static booleanisExpressionEmpty(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
-