Package io.deephaven.api.updateby
Class UpdateByControl
java.lang.Object
io.deephaven.api.updateby.UpdateByControl
An interface to control the behavior of an
Table#updateBy-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateByControl.Builderbuilder()abstract OptionalIntThe maximum chunk capacity.static intDefault is4096.intEquivalent tochunkCapacity().orElseGet(UpdateByControl::chunkCapacityDefault).static UpdateByControlCreates an instance with none of the values explicitly set.abstract OptionalIntThe initial hash table size.static intDefault is4096.intEquivalent toinitialHashTableSize().orElseGet(UpdateByControl::initialHashTableSizeDefault).final UpdateByControlCreate a new instance with all of the explicit-or-default values fromthis.abstract Optional<MathContext>The math context.static MathContextDefault isDECIMAL64.Equivalent tomathContext().orElseGet(UpdateByControl::mathContextDefault).abstract OptionalDoubleThe maximum load factor for the hash table.static doubleDefault is0.75.doubleEquivalent tomaximumLoadFactor().orElseGet(UpdateByControl::maximumLoadFactorDefault).static doubleDefault is1.1.abstract OptionalDoubleThe maximum fractional memory overhead allowable for sparse redirections as a fraction (e.g.doubleEquivalent tomaxStaticSparseMemoryOverhead().orElseGet(UpdateByControl::maximumStaticMemoryOverheadDefault).abstract OptionalDoubleThe target load factor for the hash table.static doubleDefault is0.7.doubleEquivalent totargetLoadFactor().orElseGet(UpdateByControl::targetLoadFactorDefault).abstract BooleanIf redirections should be used for output sources instead of sparse array sources.static booleanDefault isfalse.booleanEquivalent touseRedirection() == null ? useRedirectionDefault() : useRedirection().
-
Field Details
-
USE_REDIRECTION_PROPERTY
- See Also:
-
CHUNK_CAPACITY_PROPERTY
- See Also:
-
MAXIMUM_STATIC_MEMORY_OVERHEAD_PROPERTY
- See Also:
-
INITIAL_HASH_TABLE_SIZE_PROPERTY
- See Also:
-
MAXIMUM_LOAD_FACTOR_PROPERTY
- See Also:
-
TARGET_LOAD_FACTOR_PROPERTY
- See Also:
-
MATH_CONTEXT_PROPERTY
- See Also:
-
-
Constructor Details
-
UpdateByControl
public UpdateByControl()
-
-
Method Details
-
builder
-
defaultInstance
Creates an instance with none of the values explicitly set. Equivalent tobuilder().build().- Returns:
- the default instance
-
useRedirectionDefault
public static boolean useRedirectionDefault()Default isfalse. Can be changed with system property "UpdateByControl.useRedirection". -
chunkCapacityDefault
public static int chunkCapacityDefault()Default is4096. Can be changed with system property "UpdateByControl.chunkCapacity". -
maximumStaticMemoryOverheadDefault
public static double maximumStaticMemoryOverheadDefault()Default is1.1. Can be changed with system property "UpdateByControl.maximumStaticMemoryOverhead". -
initialHashTableSizeDefault
public static int initialHashTableSizeDefault()Default is4096. Can be changed with system property "UpdateByControl.initialHashTableSize". -
maximumLoadFactorDefault
public static double maximumLoadFactorDefault()Default is0.75. Can be changed with system property "UpdateByControl.maximumLoadFactor". -
targetLoadFactorDefault
public static double targetLoadFactorDefault()Default is0.7. Can be changed with system property "UpdateByControl.targetLoadFactor". -
mathContextDefault
Default isDECIMAL64. Can be changed with system property "UpdateByControl.mathContext". -
useRedirection
If redirections should be used for output sources instead of sparse array sources. -
chunkCapacity
The maximum chunk capacity. -
maxStaticSparseMemoryOverhead
The maximum fractional memory overhead allowable for sparse redirections as a fraction (e.g. 1.1 is 10% overhead). Values less than zero disable overhead checking, and result in always using the sparse structure. A value of zero results in never using the sparse structure. -
initialHashTableSize
The initial hash table size. -
maximumLoadFactor
The maximum load factor for the hash table. -
targetLoadFactor
The target load factor for the hash table. -
mathContext
The math context. -
useRedirectionOrDefault
@Derived public boolean useRedirectionOrDefault()Equivalent touseRedirection() == null ? useRedirectionDefault() : useRedirection().- See Also:
-
chunkCapacityOrDefault
@Derived public int chunkCapacityOrDefault()Equivalent tochunkCapacity().orElseGet(UpdateByControl::chunkCapacityDefault).- See Also:
-
maxStaticSparseMemoryOverheadOrDefault
@Derived public double maxStaticSparseMemoryOverheadOrDefault()Equivalent tomaxStaticSparseMemoryOverhead().orElseGet(UpdateByControl::maximumStaticMemoryOverheadDefault).- See Also:
-
initialHashTableSizeOrDefault
@Derived public int initialHashTableSizeOrDefault()Equivalent toinitialHashTableSize().orElseGet(UpdateByControl::initialHashTableSizeDefault).- See Also:
-
maximumLoadFactorOrDefault
@Derived public double maximumLoadFactorOrDefault()Equivalent tomaximumLoadFactor().orElseGet(UpdateByControl::maximumLoadFactorDefault).- See Also:
-
targetLoadFactorOrDefault
@Derived public double targetLoadFactorOrDefault()Equivalent totargetLoadFactor().orElseGet(UpdateByControl::targetLoadFactorDefault).- See Also:
-
mathContextOrDefault
Equivalent tomathContext().orElseGet(UpdateByControl::mathContextDefault).- See Also:
-
materialize
Create a new instance with all of the explicit-or-default values fromthis. This may be useful from the context of a client who wants to use client-side configuration defaults instead of server-side configuration defaults.- Returns:
- the explicit new instance
-