Class BinarySearchOnBlockSource

java.lang.Object
org.aksw.commons.io.hadoop.binseach.bz2.BinarySearchOnBlockSource
All Implemented Interfaces:
AutoCloseable, org.aksw.commons.io.binseach.BinarySearcher

public class BinarySearchOnBlockSource extends Object implements org.aksw.commons.io.binseach.BinarySearcher
  • Field Details

    • blockSource

      protected org.aksw.commons.io.block.api.BlockSource blockSource
    • closeAction

      protected AutoCloseable closeAction
  • Constructor Details

    • BinarySearchOnBlockSource

      public BinarySearchOnBlockSource(org.aksw.commons.io.block.api.BlockSource blockSource, AutoCloseable closeAction)
  • Method Details

    • search

      public InputStream search(byte[] prefix) throws IOException
      Specified by:
      search in interface org.aksw.commons.io.binseach.BinarySearcher
      Throws:
      IOException
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.aksw.commons.io.binseach.BinarySearcher
      Throws:
      Exception