Class PrefixCodedTerms

java.lang.Object
org.apache.lucene.index.PrefixCodedTerms
All Implemented Interfaces:
Accountable

public class PrefixCodedTerms extends Object implements Accountable
Prefix codes term instances (prefixes are shared). This is expected to be faster to build than a FST and might also be more compact if there are no common suffixes.
  • Field Details

    • content

      private final List<ByteBuffer> content
    • size

      private final long size
    • delGen

      private long delGen
    • lazyHash

      private int lazyHash
  • Constructor Details

    • PrefixCodedTerms

      private PrefixCodedTerms(List<ByteBuffer> content, long size)
  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Return the memory usage of this object in bytes. Negative values are illegal.
      Specified by:
      ramBytesUsed in interface Accountable
    • setDelGen

      public void setDelGen(long delGen)
      Records del gen for this packet.
    • iterator

      public PrefixCodedTerms.TermIterator iterator()
      Return an iterator over the terms stored in this PrefixCodedTerms.
    • size

      public long size()
      Return the number of terms stored in this PrefixCodedTerms.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object