Class PrefixCodedTerms.Builder

java.lang.Object
org.apache.lucene.index.PrefixCodedTerms.Builder
Enclosing class:
PrefixCodedTerms

public static class PrefixCodedTerms.Builder extends Object
Builds a PrefixCodedTerms: call add repeatedly, then finish.
  • Constructor Details

    • Builder

      public Builder()
      Sole constructor.
  • Method Details

    • add

      public void add(Term term)
      add a term
    • add

      public void add(String field, BytesRef bytes)
      add a term. This fully consumes in the incoming BytesRef.
    • finish

      public PrefixCodedTerms finish()
      return finalized form