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 int
CHUNK_SIZE
-
Constructor Summary
Constructors Constructor Description AddOnlyUpdateByStateManager(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor, double targetLoadFactor)
-
Method Summary
Modifier and Type Method Description void
add(SafeCloseable bc, OrderedKeys orderedKeys, ColumnSource<?>[] sources, org.apache.commons.lang3.mutable.MutableInt nextOutputPosition, WritableIntChunk<Attributes.KeyIndices> outputPositions)
void
doRehash(com.illumon.iris.db.v2.updateby.hashing.AddOnlyUpdateByStateManager.BuildContext bc)
SafeCloseable
makeUpdateByBuildContext(ColumnSource<?>[] buildSources, long maxSize)
boolean
rehashRequired()
void
setMaximumLoadFactor(double maximumLoadFactor)
void
setTargetLoadFactor(double targetLoadFactor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
add
in interfaceChunkedUpdateByStateManager
-
makeUpdateByBuildContext
- Specified by:
makeUpdateByBuildContext
in 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)
-