Class BinarySearchOnBlockSource

  • All Implemented Interfaces:
    AutoCloseable, org.aksw.commons.io.binseach.BinarySearcher

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

      • blockSource

        protected org.aksw.commons.io.block.api.BlockSource blockSource
    • Constructor Detail

      • BinarySearchOnBlockSource

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

      • 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