Class BlockZipper.Context
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.kernels.BlockZipper.Context
- All Implemented Interfaces:
Context
,SafeCloseable
,AutoCloseable
- Enclosing class:
- BlockZipper
public class BlockZipper.Context extends Object implements Context
-
Field Summary
Fields Modifier and Type Field Description int
blockNumberMask
int
blockNumberShift
int
lastRegisteredPos
-
Constructor Summary
Constructors Constructor Description Context(int chunkSize, int logBlockCount)
Constructs a context reflecting the size for the current session -
Method Summary
Modifier and Type Method Description void
updateBlockSizeAndCount(int logBlockCount)
Updates the size of the target hash table, presumably as the result of a resize
-
Field Details
-
lastRegisteredPos
public int lastRegisteredPos -
blockNumberMask
public int blockNumberMask -
blockNumberShift
public int blockNumberShift
-
-
Constructor Details
-
Context
public Context(int chunkSize, int logBlockCount)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 table
-
-
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
-