Class BaseJsonpSerializer<TJsonp>

java.lang.Object
io.jmix.search.index.impl.BaseJsonpSerializer<TJsonp>
Type Parameters:
TJsonp - search clients' specific JSonp format
All Implemented Interfaces:
JsonpSerializer<TJsonp>
Direct Known Subclasses:
ElasticsearchJsonpSerializer, OpenSearchJsonpSerializer

public abstract class BaseJsonpSerializer<TJsonp> extends Object implements JsonpSerializer<TJsonp>
Class is responsible for the transforming search clients' specific JSonp format to Jackson's ObjectNode.
  • Field Details

    • objectMapper

      protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • BaseJsonpSerializer

      public BaseJsonpSerializer()
  • Method Details

    • toObjectNode

      public com.fasterxml.jackson.databind.node.ObjectNode toObjectNode(TJsonp object)
      Specified by:
      toObjectNode in interface JsonpSerializer<TJsonp>
    • toJsonNode

      protected abstract com.fasterxml.jackson.databind.JsonNode toJsonNode(TJsonp object)