Class AddOnlyUpdateByStateManager
java.lang.Object
com.illumon.iris.db.v2.updateby.hashing.AddOnlyUpdateByStateManager
- All Implemented Interfaces:
ChunkedUpdateByStateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final doublestatic final double -
Constructor Summary
ConstructorsConstructorDescriptionAddOnlyUpdateByStateManager(ColumnSource<?>[] tableKeySources, int tableSize, double maximumLoadFactor, double targetLoadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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) makeUpdateByBuildContext(ColumnSource<?>[] buildSources, long maxSize) booleanvoidsetMaximumLoadFactor(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:
-
DEFAULT_MAX_LOAD_FACTOR
public static final double DEFAULT_MAX_LOAD_FACTOR- See Also:
-
DEFAULT_TARGET_LOAD_FACTOR
public static final double DEFAULT_TARGET_LOAD_FACTOR- See Also:
-
-
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)
-