Package io.jmix.search.index.mapping
Class MappingFieldDescriptor
java.lang.Object
io.jmix.search.index.mapping.MappingFieldDescriptor
Contains details of single mapped field.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected FieldConfiguration
protected String
protected List<MetaPropertyPath>
protected MetaPropertyPath
protected int
protected PropertyValueExtractor
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets full property name in metamodel.Gets field configurationGets full name of field in index.Gets all properties that used in instance name value.Gets metamodel property.int
getOrder()
Gets descriptor order based on mapping strategy it created by.Gets meta class of metamodel property.com.fasterxml.jackson.databind.JsonNode
Extracts value from entity instanceboolean
void
setEntityPropertyFullName
(String entityPropertyFullName) void
setFieldConfiguration
(FieldConfiguration fieldConfiguration) void
setIndexPropertyFullName
(String indexPropertyFullName) void
setInstanceNameRelatedProperties
(List<MetaPropertyPath> instanceNameRelatedProperties) void
setMetaPropertyPath
(MetaPropertyPath metaPropertyPath) void
setOrder
(int order) void
setParameters
(Map<String, Object> parameters) void
setPropertyValueExtractor
(PropertyValueExtractor propertyValueExtractor) void
setStandalone
(boolean standalone) toString()
-
Field Details
-
entityPropertyFullName
-
indexPropertyFullName
-
metaPropertyPath
-
standalone
protected boolean standalone -
fieldConfiguration
-
propertyValueExtractor
-
order
protected int order -
instanceNameRelatedProperties
-
parameters
-
-
Constructor Details
-
MappingFieldDescriptor
public MappingFieldDescriptor()
-
-
Method Details
-
getEntityPropertyFullName
Gets full property name in metamodel.- Returns:
- property name
-
getIndexPropertyFullName
Gets full name of field in index.- Returns:
- index field name
-
getMetaPropertyPath
Gets metamodel property.- Returns:
MetaPropertyPath
-
getPropertyMetaClass
Gets meta class of metamodel property.- Returns:
MetaClass
-
isStandalone
public boolean isStandalone()- Returns:
- true if this field doesn't have metamodel property and exists within index only, false otherwise
-
setEntityPropertyFullName
-
setIndexPropertyFullName
-
setMetaPropertyPath
-
setStandalone
public void setStandalone(boolean standalone) -
getFieldConfiguration
Gets field configuration- Returns:
FieldConfiguration
-
setFieldConfiguration
-
getOrder
public int getOrder()Gets descriptor order based on mapping strategy it created by. If several descriptors are related to the same field the one with the latest order will be used.- Returns:
- order
-
setOrder
public void setOrder(int order) -
getValue
Extracts value from entity instance- Parameters:
entity
- instance- Returns:
- value as json
-
setPropertyValueExtractor
-
getParameters
-
setParameters
-
getInstanceNameRelatedProperties
Gets all properties that used in instance name value. Makes sense only if currentMappingFieldDescriptor
relates to reference property- Returns:
- list of
MetaPropertyPath
-
setInstanceNameRelatedProperties
-
toString
-