Class DocValuesFieldValueSource
- java.lang.Object
-
- com.atlassian.confluence.search.v2.score.DocValuesFieldValueSource
-
- All Implemented Interfaces:
FieldValueSource
public class DocValuesFieldValueSource extends Object implements FieldValueSource
Represents binary doc values field its value is of typebyte[]
.NOTE: Format of bytes is in UTF-8 format.
- Since:
- 7.12
-
-
Constructor Summary
Constructors Constructor Description DocValuesFieldValueSource(String fieldName, Function<byte[],Double> extractor)
Creates a value source for a doc values field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Function<byte[],Double>
getExtractor()
String
getFieldName()
Returns field name where the numerical value comes from.int
hashCode()
-
-
-
Constructor Detail
-
DocValuesFieldValueSource
public DocValuesFieldValueSource(String fieldName, Function<byte[],Double> extractor)
Creates a value source for a doc values field.- Parameters:
fieldName
- field name for doc values.extractor
- for converting relevant UTF-8 bytes from doc values field to a Double value.
-
-
Method Detail
-
getFieldName
public String getFieldName()
Description copied from interface:FieldValueSource
Returns field name where the numerical value comes from.- Specified by:
getFieldName
in interfaceFieldValueSource
-
-