Class IncrementalUpdateByStateManager
java.lang.Object
com.illumon.iris.db.v2.updateby.hashing.IncrementalUpdateByStateManager
- All Implemented Interfaces:
ChunkedUpdateByStateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final doublestatic final doublestatic final int -
Constructor Summary
ConstructorsConstructorDescriptionIncrementalUpdateByStateManager(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.IncrementalUpdateByStateManager.BuildContext bc) voidfindModifications(SafeCloseable pc, OrderedKeys modifiedIndex, ColumnSource<?>[] leftSources, WritableIntChunk<Attributes.KeyIndices> outputPositions) makeUpdateByBuildContext(ColumnSource<?>[] buildSources, long maxSize) makeUpdateByProbeContext(ColumnSource<?>[] buildSources, long maxSize) booleanvoidremove(SafeCloseable pc, OrderedKeys indexToRemove, ColumnSource<?>[] sources, WritableIntChunk<Attributes.KeyIndices> outputPositions) voidsetMaximumLoadFactor(double maximumLoadFactor) voidsetTargetLoadFactor(double targetLoadFactor)
-
Field Details
-
CHUNK_SIZE
public static final int CHUNK_SIZE- See Also:
-
MINIMUM_INITIAL_HASH_SIZE
public static final int MINIMUM_INITIAL_HASH_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
-
IncrementalUpdateByStateManager
public IncrementalUpdateByStateManager(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
-
makeUpdateByProbeContext
- Specified by:
makeUpdateByProbeContextin interfaceChunkedUpdateByStateManager
-
doRehash
public void doRehash(com.illumon.iris.db.v2.updateby.hashing.IncrementalUpdateByStateManager.BuildContext bc) -
rehashRequired
public boolean rehashRequired() -
setTargetLoadFactor
public void setTargetLoadFactor(double targetLoadFactor) -
setMaximumLoadFactor
public void setMaximumLoadFactor(double maximumLoadFactor) -
remove
public void remove(@NotNull SafeCloseable pc, @NotNull OrderedKeys indexToRemove, @NotNull ColumnSource<?>[] sources, @NotNull WritableIntChunk<Attributes.KeyIndices> outputPositions) - Specified by:
removein interfaceChunkedUpdateByStateManager
-
findModifications
public void findModifications(@NotNull SafeCloseable pc, @NotNull OrderedKeys modifiedIndex, @NotNull ColumnSource<?>[] leftSources, @NotNull WritableIntChunk<Attributes.KeyIndices> outputPositions) - Specified by:
findModificationsin interfaceChunkedUpdateByStateManager
-