Class BlockSplitter.Context

java.lang.Object
com.illumon.iris.db.v2.sources.chunk.kernels.BlockSplitter.Context
All Implemented Interfaces:
Context, SafeCloseable, AutoCloseable
Enclosing class:
BlockSplitter

public class BlockSplitter.Context
extends Object
implements Context
  • Field Details

  • Constructor Details

    • Context

      public Context​(int chunkSize, int logBlockCount, ReentrantNugget nugget)
      Constructs a context reflecting the size for the current session
      Parameters:
      chunkSize - - The size of the hash input chunks
      logBlockCount - - Log base 2 of the number of blocks in the target hash table
      nugget - - performance evaluation nugget
  • Method Details

    • updateBlockSizeAndCount

      public void updateBlockSizeAndCount​(int logBlockCount)
      Updates the size of the target hash table, presumably as the result of a resize
      Parameters:
      logBlockCount - - Log base 2 of the number of blocks in the target hash table
    • close

      public void close()
      Description copied from interface: Context
      Release any resources associated with this context. The context should not be used afterwards.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Context
      Specified by:
      close in interface SafeCloseable