Class MappingParameters

java.lang.Object
org.springframework.data.elasticsearch.core.index.MappingParameters

public final class MappingParameters extends Object
A class to hold the mapping parameters that might be set on Field or InnerField annotation.
Since:
4.0
Author:
Peter-Josef Meisch, Aleksei Arsenev, Brian Kimmig, Morgan Lutz, Sascha Woo
  • Method Details

    • from

      public static MappingParameters from(Annotation annotation)
      extracts the mapping parameters from the relevant annotations.
      Parameters:
      annotation - must not be null.
      Returns:
      empty Optional if the annotation does not have a conformant type.
    • isStore

      public boolean isStore()
    • writeTypeAndParametersTo

      public void writeTypeAndParametersTo(com.fasterxml.jackson.databind.node.ObjectNode objectNode) throws IOException
      writes the different fields to an ObjectNode.
      Parameters:
      objectNode - must not be null
      Throws:
      IOException