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 Summary
Fields Modifier and Type Field Description protected org.aksw.commons.io.block.api.BlockSourceblockSourceprotected AutoCloseablecloseAction
-
Constructor Summary
Constructors Constructor Description BinarySearchOnBlockSource(org.aksw.commons.io.block.api.BlockSource blockSource, AutoCloseable closeAction)
-
-
-
Field Detail
-
blockSource
protected org.aksw.commons.io.block.api.BlockSource blockSource
-
closeAction
protected AutoCloseable closeAction
-
-
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:
searchin interfaceorg.aksw.commons.io.binseach.BinarySearcher- Throws:
IOException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.aksw.commons.io.binseach.BinarySearcher- Throws:
Exception
-
-