public interface IndexCache
| Modifier and Type | Interface and Description |
|---|---|
static class |
IndexCache.CacheStrategy |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean the cache
|
static IndexCache |
create(ParquetFileReader fileReader,
Set<ColumnPath> columns,
IndexCache.CacheStrategy cacheStrategy,
boolean freeCacheAfterGet)
Create an index cache for the given file reader
|
BloomFilter |
getBloomFilter(ColumnChunkMetaData chunk)
Get the BloomFilter for the given column in the set row group.
|
ColumnIndex |
getColumnIndex(ColumnChunkMetaData chunk)
Get the ColumnIndex for the given column in the set row group.
|
OffsetIndex |
getOffsetIndex(ColumnChunkMetaData chunk)
Get the OffsetIndex for the given column in the set row group.
|
void |
setBlockMetadata(BlockMetaData currentBlockMetadata)
Set the current BlockMetadata
|
static IndexCache create(ParquetFileReader fileReader, Set<ColumnPath> columns, IndexCache.CacheStrategy cacheStrategy, boolean freeCacheAfterGet)
fileReader - the file readercolumns - the columns that need to do cachecacheStrategy - the cache strategy, supports NONE and PREFETCH_BLOCKfreeCacheAfterGet - whether free the given index cache after calling the given get methodvoid setBlockMetadata(BlockMetaData currentBlockMetadata) throws IOException
IOExceptionColumnIndex getColumnIndex(ColumnChunkMetaData chunk) throws IOException
chunk - the given column chunkIOException - if any I/O error occurs during get the ColumnIndexOffsetIndex getOffsetIndex(ColumnChunkMetaData chunk) throws IOException
chunk - the given column chunkIOException - if any I/O error occurs during get the OffsetIndexBloomFilter getBloomFilter(ColumnChunkMetaData chunk) throws IOException
chunk - the given column chunkIOException - if any I/O error occurs during get the BloomFiltervoid clean()
Copyright © 2023 The Apache Software Foundation. All rights reserved.