Interface HardwoodContext
- All Superinterfaces:
AutoCloseable
Context object that manages shared resources for Parquet file reading.
Holds the thread pool for parallel page decoding, the libdeflate decompressor pool for native GZIP decompression, and the decompressor factory.
The context lifecycle is tied to either:
Hardwoodinstance (for multi-file usage)ParquetFileReaderinstance (for standalone single-file usage)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static HardwoodContextcreate()Create a new context with a thread pool sized to available processors.static HardwoodContextcreate(int threads) Create a new context with a thread pool of the specified size.executor()Get the executor service for parallel operations.
-
Method Details
-
executor
ExecutorService executor()Get the executor service for parallel operations. -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
create
Create a new context with a thread pool sized to available processors. -
create
Create a new context with a thread pool of the specified size.
-