Class AbstractTypeMapping
java.lang.Object
org.hibernate.search.backend.elasticsearch.lowlevel.index.mapping.impl.AbstractTypeMapping
- Direct Known Subclasses:
PropertyMapping,RootTypeMapping
An object representing Elasticsearch type mappings.
See Mapping.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,PropertyMapping> Must be null when we don't want to include it in JSON serialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, PropertyMapping mapping) voidmerge(AbstractTypeMapping other) Merge this mapping with another mapping generated by Hibernate Search: The value for thedynamicmapping parameter will be taken from theotherunlessthisprovides a non-null value. The mapping parameterpropertieswill be merged, using properties defined in boththisandother. Mapping parameters other thandynamicandpropertieswill be those fromthis; those fromotherwill be ignored. If a property is defined on both sides, it will be merged recursively as described above.voidremoveProperty(String name) voidsetDynamic(DynamicType dynamic) voidsetExtraAttributes(Map<String, com.google.gson.JsonElement> extraAttributes) toString()
-
Field Details
-
properties
Must be null when we don't want to include it in JSON serialization.
-
-
Constructor Details
-
AbstractTypeMapping
public AbstractTypeMapping()
-
-
Method Details
-
getDynamic
-
setDynamic
-
getProperties
-
addProperty
-
removeProperty
-
getExtraAttributes
-
setExtraAttributes
-
toString
-
merge
Merge this mapping with another mapping generated by Hibernate Search:- The value for the
dynamicmapping parameter will be taken from theotherunlessthisprovides a non-null value. - The mapping parameter
propertieswill be merged, using properties defined in boththisandother. - Mapping parameters other than
dynamicandpropertieswill be those fromthis; those fromotherwill be ignored. - If a property is defined on both sides, it will be merged recursively as described above.
- Parameters:
other- The other mapping.
- The value for the
-