Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class MultiValuedBinaryDocValuesField.SeparateCount
java.lang.Object
org.elasticsearch.index.mapper.CustomDocValuesField
org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField.SeparateCount
- All Implemented Interfaces:
org.apache.lucene.index.IndexableField
- Enclosing class:
MultiValuedBinaryDocValuesField
public static class MultiValuedBinaryDocValuesField.SeparateCount
extends MultiValuedBinaryDocValuesField
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
MultiValuedBinaryDocValuesField.IntegratedCount, MultiValuedBinaryDocValuesField.SeparateCount -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
docValuesByteCount, sorted, valuesFields inherited from class org.elasticsearch.index.mapper.CustomDocValuesField
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToSeparateCountMultiBinaryFieldInDoc(LuceneDocument doc, String fieldName, org.apache.lucene.util.BytesRef binaryValue) static voidaddToSeparateCountMultiBinaryFieldInDoc(LuceneDocument doc, String fieldName, org.apache.lucene.util.BytesRef binaryValue, boolean keepDuplicates) org.apache.lucene.util.BytesRefEncodes the collection of BytesRef into a single BytesRef.Methods inherited from class org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
add, count, writeLenAndValuesMethods inherited from class org.elasticsearch.index.mapper.CustomDocValuesField
fieldType, invertableType, name, numericValue, readerValue, storedValue, stringValue, tokenStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.index.IndexableField
getCharSequenceValue
-
Field Details
-
COUNT_FIELD_SUFFIX
- See Also:
-
-
Constructor Details
-
SeparateCount
-
-
Method Details
-
binaryValue
public org.apache.lucene.util.BytesRef binaryValue()Encodes the collection of BytesRef into a single BytesRef. Unlike IntegratedCount, the number of values is not stored, and if there is only a single value, the length is not stored. For multiple values, the format is: [length of value 1][value 1][length of value 2][value 2]... For a single value, the format is: [value 1]- Specified by:
binaryValuein interfaceorg.apache.lucene.index.IndexableField- Specified by:
binaryValuein classMultiValuedBinaryDocValuesField
-
countFieldName
-
addToSeparateCountMultiBinaryFieldInDoc
public static void addToSeparateCountMultiBinaryFieldInDoc(LuceneDocument doc, String fieldName, org.apache.lucene.util.BytesRef binaryValue) -
addToSeparateCountMultiBinaryFieldInDoc
public static void addToSeparateCountMultiBinaryFieldInDoc(LuceneDocument doc, String fieldName, org.apache.lucene.util.BytesRef binaryValue, boolean keepDuplicates)
-