Class MultiValuedBinaryDocValuesField.SeparateCount

All Implemented Interfaces:
org.apache.lucene.index.IndexableField
Enclosing class:
MultiValuedBinaryDocValuesField

public static class MultiValuedBinaryDocValuesField.SeparateCount extends MultiValuedBinaryDocValuesField
  • Field Details

  • Constructor Details

    • SeparateCount

      public SeparateCount(String name, boolean keepDuplicates)
  • 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:
      binaryValue in interface org.apache.lucene.index.IndexableField
      Specified by:
      binaryValue in class MultiValuedBinaryDocValuesField
    • countFieldName

      public String 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)