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