Interface HardwoodContext

All Superinterfaces:
AutoCloseable

public interface HardwoodContext extends 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:

  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Create a new context with a thread pool sized to available processors.
    create(int threads)
    Create a new context with a thread pool of the specified size.
    Get the executor service for parallel operations.
  • Method Details

    • executor

      ExecutorService executor()
      Get the executor service for parallel operations.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • create

      static HardwoodContext create()
      Create a new context with a thread pool sized to available processors.
    • create

      static HardwoodContext create(int threads)
      Create a new context with a thread pool of the specified size.