public class BlockSources extends Object
| Constructor and Description |
|---|
BlockSources() |
| Modifier and Type | Method and Description |
|---|---|
static Reference<Block> |
binarySearch(BlockSource blockSource,
long min,
long max,
byte delimiter,
byte[] prefix)
Binary search over blocks
Only examines the first record in the block to decide whether to look into the next or the previous one
|
static void |
closeWithIOException(AutoCloseable obj) |
static BinarySearcher |
createBinarySearcherBz2(FileChannel fileChannel,
boolean closeChannel) |
static BinarySearcher |
createBinarySearcherBz2(Path path) |
public static BinarySearcher createBinarySearcherBz2(Path path) throws IOException
IOExceptionpublic static BinarySearcher createBinarySearcherBz2(FileChannel fileChannel, boolean closeChannel) throws IOException
IOExceptionpublic static Reference<Block> binarySearch(BlockSource blockSource, long min, long max, byte delimiter, byte[] prefix) throws IOException
blockSource - min - max - (exclusive)delimiter - prefix - ExceptionIOExceptionpublic static void closeWithIOException(AutoCloseable obj) throws IOException
IOExceptionCopyright © 2020. All rights reserved.