Class TextFieldMapping
- java.lang.Object
-
- com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping
-
- com.atlassian.confluence.plugins.index.api.mapping.TextFieldMapping
-
- All Implemented Interfaces:
FieldMapping
public class TextFieldMapping extends AbstractFieldMapping
Field mapping for analyzed text.- Since:
- 8.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextFieldMapping.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextFieldMapping(TextFieldMapping.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(FieldMappingVisitor<T> visitor)Applies the supplied visitor to this field mapping with its respective callback.static TextFieldMapping.Builderbuilder(String name)FieldDescriptorcreateField(String value)Create a field for the current mapping with the given valuebooleanequals(Object o)AnalyzerDescriptorProvidergetAnalyzer()Analyzer to be used when indexing and searching the fieldinthashCode()StringtoString()-
Methods inherited from class com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping
getName, isIndexed, isStored
-
-
-
-
Constructor Detail
-
TextFieldMapping
protected TextFieldMapping(TextFieldMapping.Builder builder)
-
-
Method Detail
-
getAnalyzer
public AnalyzerDescriptorProvider getAnalyzer()
Analyzer to be used when indexing and searching the field- Returns:
- The analyzer to be used when indexing and searching the field
-
createField
public FieldDescriptor createField(String value)
Create a field for the current mapping with the given value- Parameters:
value-- Returns:
- the newly created field
-
accept
public <T> T accept(FieldMappingVisitor<T> visitor)
Description copied from interface:FieldMappingApplies the supplied visitor to this field mapping with its respective callback.- Parameters:
visitor- The visitor to dispatch- Returns:
- The value that is returned by the supplied visitor
-
toString
public String toString()
- Overrides:
toStringin classAbstractFieldMapping
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractFieldMapping
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractFieldMapping
-
builder
public static TextFieldMapping.Builder builder(String name)
-
-