Class AbstractFieldMapper

java.lang.Object
io.jmix.search.index.mapping.fieldmapper.impl.AbstractFieldMapper
All Implemented Interfaces:
FieldMapper
Direct Known Subclasses:
FileFieldMapper, ReferenceFieldMapper, SimpleFieldMapper

public abstract class AbstractFieldMapper extends Object implements FieldMapper
Base class for FieldMapper implementations.
  • Field Details

    • objectMapper

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

    • AbstractFieldMapper

      public AbstractFieldMapper()
  • Method Details

    • createJsonConfiguration

      public com.fasterxml.jackson.databind.node.ObjectNode createJsonConfiguration(Map<String,Object> parameters)
      Description copied from interface: FieldMapper
      Creates field configuration as native json.
      Specified by:
      createJsonConfiguration in interface FieldMapper
      Parameters:
      parameters - input parameters
      Returns:
      json object
    • createEffectiveNativeParameters

      protected Map<String,Object> createEffectiveNativeParameters(Map<String,Object> rawParameters)
      Creates map of input parameters supported by this mapper.
      Parameters:
      rawParameters - input parameters
      Returns:
      supported parameters only