Class CompletionsTermsReader

  • All Implemented Interfaces:
    Accountable

    public final class CompletionsTermsReader
    extends Object
    implements Accountable
    Holder for suggester and field-level info for a suggest field
    • Field Detail

      • minWeight

        public final long minWeight
        Minimum entry weight for the suggester
      • maxWeight

        public final long maxWeight
        Maximum entry weight for the suggester
      • type

        public final byte type
        type of suggester (context-enabled or not)
    • Method Detail

      • suggester

        public NRTSuggester suggester()
                               throws IOException
        Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary
        Throws:
        IOException
      • 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