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 intblockNumberMaskintblockNumberShift -
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 voidclose()Release any resources associated with this context.voidupdateBlockSizeAndCount(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:ContextRelease any resources associated with this context. The context should not be used afterwards.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceContext- Specified by:
closein interfaceSafeCloseable
-