Class PlatformIndexQueryBuilder<REQ extends PlatformIndexQueryRequest>

    • Field Detail

      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • customQuery

        protected com.fasterxml.jackson.databind.node.ObjectNode customQuery
      • order

        protected String order
    • Constructor Detail

      • PlatformIndexQueryBuilder

        public PlatformIndexQueryBuilder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • PlatformIndexQueryBuilder

        public PlatformIndexQueryBuilder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                         com.fasterxml.jackson.databind.node.ObjectNode customQuery,
                                         Map<String,​SortParameter> customSortParameters)
    • Method Detail

      • build

        protected abstract String build​(REQ request)
      • getIndexSortName

        protected String getIndexSortName​(String sort)
        Method that custom query builder can override to provide an alternative sort name for a particular sort. For example when sorting by name the sort should be done by nameKeyword instead.
        Parameters:
        sort - the requested sort
        Returns:
        the sort that should be used
      • getOrder

        public String getOrder()
      • getSort

        public String getSort()
      • parameterTypeToIndexedProperty

        protected String parameterTypeToIndexedProperty​(SortParameter sortParameter)
      • getCustomQuery

        public com.fasterxml.jackson.databind.node.ObjectNode getCustomQuery()
      • setCustomQuery

        public void setCustomQuery​(com.fasterxml.jackson.databind.node.ObjectNode customQuery)
      • setCustomSortParameters

        public void setCustomSortParameters​(Map<String,​SortParameter> customSortParameters)