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 Summary
Fields Modifier and Type Field Description int
blockNumberMask
int
blockNumberShift
-
Constructor Summary
Constructors Constructor Description Context(int chunkSize, int logBlockCount, ReentrantNugget nugget)
Constructs a context reflecting the size for the current session -
Method Summary
Modifier and Type Method Description void
close()
Release any resources associated with this context.void
updateBlockSizeAndCount(int logBlockCount)
Updates the size of the target hash table, presumably as the result of a resize
-
Field Details
-
blockNumberMask
public int blockNumberMask -
blockNumberShift
public int blockNumberShift
-
-
Constructor Details
-
Context
Constructs a context reflecting the size for the current session- Parameters:
chunkSize
- - The size of the hash input chunkslogBlockCount
- - Log base 2 of the number of blocks in the target hash tablenugget
- - 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 interfaceAutoCloseable
- Specified by:
close
in interfaceContext
- Specified by:
close
in interfaceSafeCloseable
-