Class AddOnlyUpdateByStateManager
java.lang.Object
com.illumon.iris.db.v2.updateby.hashing.AddOnlyUpdateByStateManager
- All Implemented Interfaces:
ChunkedUpdateByStateManager
public class AddOnlyUpdateByStateManager extends Object implements ChunkedUpdateByStateManager
-
Field Summary
Fields Modifier and Type Field Description static intCHUNK_SIZE -
Constructor Summary
Constructors Constructor Description AddOnlyUpdateByStateManager(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor, double targetLoadFactor) -
Method Summary
Modifier and Type Method Description voidadd(SafeCloseable bc, OrderedKeys orderedKeys, ColumnSource<?>[] sources, org.apache.commons.lang3.mutable.MutableInt nextOutputPosition, WritableIntChunk<Attributes.KeyIndices> outputPositions)voiddoRehash(com.illumon.iris.db.v2.updateby.hashing.AddOnlyUpdateByStateManager.BuildContext bc)SafeCloseablemakeUpdateByBuildContext(ColumnSource<?>[] buildSources, long maxSize)booleanrehashRequired()voidsetMaximumLoadFactor(double maximumLoadFactor)voidsetTargetLoadFactor(double targetLoadFactor)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.updateby.hashing.ChunkedUpdateByStateManager
findModifications, makeUpdateByProbeContext, remove
-
Field Details
-
CHUNK_SIZE
public static final int CHUNK_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
AddOnlyUpdateByStateManager
public AddOnlyUpdateByStateManager(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor, double targetLoadFactor)
-
-
Method Details
-
add
public void add(SafeCloseable bc, OrderedKeys orderedKeys, ColumnSource<?>[] sources, org.apache.commons.lang3.mutable.MutableInt nextOutputPosition, WritableIntChunk<Attributes.KeyIndices> outputPositions)- Specified by:
addin interfaceChunkedUpdateByStateManager
-
makeUpdateByBuildContext
- Specified by:
makeUpdateByBuildContextin interfaceChunkedUpdateByStateManager
-
doRehash
public void doRehash(com.illumon.iris.db.v2.updateby.hashing.AddOnlyUpdateByStateManager.BuildContext bc) -
rehashRequired
public boolean rehashRequired() -
setTargetLoadFactor
public void setTargetLoadFactor(double targetLoadFactor) -
setMaximumLoadFactor
public void setMaximumLoadFactor(double maximumLoadFactor)
-