public class BlockCache extends Object implements Closeable
Constructor and Description |
---|
BlockCache(RandomAccessFile file,
CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
MemorySegment |
getBlock(long position,
int length,
java.util.function.Function<byte[],byte[]> decompressFunc,
boolean isIndex) |
public BlockCache(RandomAccessFile file, CacheManager cacheManager)
public MemorySegment getBlock(long position, int length, java.util.function.Function<byte[],byte[]> decompressFunc, boolean isIndex)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.