Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class MultiValuedBinaryDocValuesField.IntegratedCount
java.lang.Object
org.elasticsearch.index.mapper.CustomDocValuesField
org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField.IntegratedCount
- All Implemented Interfaces:
org.apache.lucene.index.IndexableField
- Enclosing class:
MultiValuedBinaryDocValuesField
public static class MultiValuedBinaryDocValuesField.IntegratedCount
extends MultiValuedBinaryDocValuesField
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
MultiValuedBinaryDocValuesField.IntegratedCount, MultiValuedBinaryDocValuesField.SeparateCount -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
docValuesByteCount, sorted, valuesFields inherited from class org.elasticsearch.index.mapper.CustomDocValuesField
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionIntegratedCount(String name, boolean keepDuplicates) IntegratedCount(String name, boolean keepDuplicates, boolean sorted) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.util.BytesRefEncodes the collection of binary doc values as a single contiguous binary array, wrapped inBytesRef.static org.apache.lucene.util.BytesRefEncodes a list ofBytesRefvalues into the integrated-count format:[count][len1][val1][len2][val2]....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
-
Constructor Details
-
IntegratedCount
-
IntegratedCount
-
-
Method Details
-
binaryValue
public org.apache.lucene.util.BytesRef binaryValue()Encodes the collection of binary doc values as a single contiguous binary array, wrapped inBytesRef. This array takes the form of [doc value count][length of value 1][value 1][length of value 2][value 2]...- Specified by:
binaryValuein interfaceorg.apache.lucene.index.IndexableField- Specified by:
binaryValuein classMultiValuedBinaryDocValuesField
-
encode
Encodes a list ofBytesRefvalues into the integrated-count format:[count][len1][val1][len2][val2]....Note, this is basically the static version of binaryValue(). The benefit of having this static code is that we can skip the overhead of creating a whole new Lucene field and adding values to it.
-