Interface ThrowingLeafReaderWrapper.Thrower

Enclosing class:
ThrowingLeafReaderWrapper

public static interface ThrowingLeafReaderWrapper.Thrower
A callback interface that allows to throw certain exceptions for methods called on the IndexReader that is wrapped by ThrowingLeafReaderWrapper
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Maybe throws an exception ;)
    boolean
    If this method returns true the Terms instance for the given field is wrapped with Thrower support otherwise no exception will be thrown for the current Terms instance or any other instance obtained from it.
  • Method Details

    • maybeThrow

      void maybeThrow(ThrowingLeafReaderWrapper.Flags flag) throws IOException
      Maybe throws an exception ;)
      Throws:
      IOException
    • wrapTerms

      boolean wrapTerms(String field)
      If this method returns true the Terms instance for the given field is wrapped with Thrower support otherwise no exception will be thrown for the current Terms instance or any other instance obtained from it.