Class NumericContentPropertyAliasFieldHandler
- java.lang.Object
-
- com.atlassian.querylang.fields.BaseFieldHandler
-
- com.atlassian.confluence.plugins.cql.spi.fields.AbstractNumericFieldHandler<Double>
-
- com.atlassian.confluence.plugins.cql.spi.fields.AbstractDoubleFieldHandler
-
- com.atlassian.confluence.plugins.contentproperty.search.fields.NumericContentPropertyAliasFieldHandler
-
- All Implemented Interfaces:
com.atlassian.querylang.fields.FieldHandler
,com.atlassian.querylang.fields.NumericFieldHandler<com.atlassian.querylang.query.SearchQuery>
,com.atlassian.querylang.fields.SubfieldHandlerProvider
public class NumericContentPropertyAliasFieldHandler extends com.atlassian.confluence.plugins.cql.spi.fields.AbstractDoubleFieldHandler implements com.atlassian.querylang.fields.NumericFieldHandler<com.atlassian.querylang.query.SearchQuery>
A Field handler for a numeric content property field alias. This field handler will provide order and range operations that will work as expected for numeric mapped fields. Fields created using this handler are mapped to the Double numeric type.- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description NumericContentPropertyAliasFieldHandler(String aliasName, ContentPropertySchemaField schemaField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SearchQuery
createQuery(Double from, Double to, boolean includesFrom, boolean includesTo)
protected SearchSort
getSearchSort(SearchSort.Order order)
-
Methods inherited from class com.atlassian.confluence.plugins.cql.spi.fields.AbstractDoubleFieldHandler
max, min, parseNumber
-
Methods inherited from class com.atlassian.confluence.plugins.cql.spi.fields.AbstractNumericFieldHandler
build, buildOrder, getQuery
-
Methods inherited from class com.atlassian.querylang.fields.BaseFieldHandler
fieldName, getFieldMetaData, getSubfieldHandlers, isOrderSupported, toString, validateSupportedOp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
NumericContentPropertyAliasFieldHandler
public NumericContentPropertyAliasFieldHandler(String aliasName, ContentPropertySchemaField schemaField)
-
-
Method Detail
-
getSearchSort
protected SearchSort getSearchSort(SearchSort.Order order)
- Specified by:
getSearchSort
in classcom.atlassian.confluence.plugins.cql.spi.fields.AbstractNumericFieldHandler<Double>
-
createQuery
protected SearchQuery createQuery(Double from, Double to, boolean includesFrom, boolean includesTo)
- Specified by:
createQuery
in classcom.atlassian.confluence.plugins.cql.spi.fields.AbstractNumericFieldHandler<Double>
-
-