Class MappingParameters
java.lang.Object
org.springframework.data.elasticsearch.core.index.MappingParameters
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 Summary
Modifier and TypeMethodDescriptionstatic MappingParameters
from
(Annotation annotation) extracts the mapping parameters from the relevant annotations.boolean
isStore()
void
writeTypeAndParametersTo
(com.fasterxml.jackson.databind.node.ObjectNode objectNode) writes the different fields to anObjectNode
.
-
Method Details
-
from
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 anObjectNode
.- Parameters:
objectNode
- must not be null- Throws:
IOException
-