Class MultiValuedBinaryDocValuesField

java.lang.Object
org.elasticsearch.index.mapper.CustomDocValuesField
org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField
All Implemented Interfaces:
org.apache.lucene.index.IndexableField
Direct Known Subclasses:
MultiValuedBinaryDocValuesField.IntegratedCount, MultiValuedBinaryDocValuesField.SeparateCount

public abstract class MultiValuedBinaryDocValuesField extends CustomDocValuesField
A custom implementation of BinaryDocValues that uses a Set to maintain a collection of unique binary doc values for fields with multiple values per document.
  • Field Details

    • values

      protected final Collection<org.apache.lucene.util.BytesRef> values
    • sorted

      protected final boolean sorted
    • docValuesByteCount

      protected int docValuesByteCount
  • Method Details

    • add

      public void add(org.apache.lucene.util.BytesRef value)
    • count

      public int count()
    • writeLenAndValues

      protected void writeLenAndValues(BytesStreamOutput out) throws IOException
      Throws:
      IOException
    • binaryValue

      public abstract org.apache.lucene.util.BytesRef binaryValue()