public class BinarySearchOnBlockSource extends Object implements BinarySearcher
| Modifier and Type | Field and Description |
|---|---|
protected BlockSource |
blockSource |
protected AutoCloseable |
closeAction |
| Constructor and Description |
|---|
BinarySearchOnBlockSource(BlockSource blockSource,
AutoCloseable closeAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
search(byte[] prefix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchprotected BlockSource blockSource
protected AutoCloseable closeAction
public BinarySearchOnBlockSource(BlockSource blockSource, AutoCloseable closeAction)
public InputStream search(byte[] prefix) throws IOException
search in interface BinarySearcherIOExceptionpublic void close()
throws Exception
close in interface AutoCloseableclose in interface BinarySearcherExceptionCopyright © 2020. All rights reserved.