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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected FieldConfigurationprotected Stringprotected List<MetaPropertyPath>protected MetaPropertyPathprotected intprotected PropertyValueExtractorprotected boolean -
Constructor Summary
Constructors -
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.intgetOrder()Gets descriptor order based on mapping strategy it created by.Gets meta class of metamodel property.com.fasterxml.jackson.databind.JsonNodeExtracts value from entity instancebooleanvoidsetEntityPropertyFullName(String entityPropertyFullName) voidsetFieldConfiguration(FieldConfiguration fieldConfiguration) voidsetIndexPropertyFullName(String indexPropertyFullName) voidsetInstanceNameRelatedProperties(List<MetaPropertyPath> instanceNameRelatedProperties) voidsetMetaPropertyPath(MetaPropertyPath metaPropertyPath) voidsetOrder(int order) voidsetParameters(Map<String, Object> parameters) voidsetPropertyValueExtractor(PropertyValueExtractor propertyValueExtractor) voidsetStandalone(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 currentMappingFieldDescriptorrelates to reference property- Returns:
- list of
MetaPropertyPath
-
setInstanceNameRelatedProperties
-
toString
-