org.apache.lucene.codecs.uniformsplit

## Class FSTDictionary.BrowserSupplier

- java.lang.Object
- - org.apache.lucene.codecs.uniformsplit.FSTDictionary.BrowserSupplier

- All Implemented Interfaces:
    IndexDictionary.BrowserSupplier, Accountable, IOSupplier<IndexDictionary.Browser>
  Enclosing class:
    FSTDictionary

      public static class FSTDictionary.BrowserSupplier
      extends Object
      implements IndexDictionary.BrowserSupplier

  Provides stateful `FSTDictionary.Browser` to seek in the `FSTDictionary`.
  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected BlockDecoder` | `blockDecoder`
    `protected IndexDictionary` | `dictionary` Lazy loaded immutable index dictionary (trie hold in RAM).
    `protected IndexInput` | `dictionaryInput`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BrowserSupplier(IndexInput dictionaryInput, long startFilePointer, BlockDecoder blockDecoder)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `IndexDictionary.Browser` | `get()`
    `long` | `ramBytesUsed()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.lucene.util.Accountable

      `getChildResources`

- - ### Field Detail

    - #### dictionaryInput

          protected final IndexInput dictionaryInput

    - #### blockDecoder

          protected final BlockDecoder blockDecoder

    - #### dictionary

          protected IndexDictionary dictionary

      Lazy loaded immutable index dictionary (trie hold in RAM).

  - ### Constructor Detail

    - #### BrowserSupplier

          public BrowserSupplier(IndexInput dictionaryInput,
                                 long startFilePointer,
                                 BlockDecoder blockDecoder)
                          throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### get

          public IndexDictionary.Browser get()
                                      throws IOException

      Specified by:
        `get` in interface `IOSupplier<IndexDictionary.Browser>`
      Throws:
        `IOException`

    - #### ramBytesUsed

          public long ramBytesUsed()

      Specified by:
        `ramBytesUsed` in interface `Accountable`

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.