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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateByControl.Builder
builder()
abstract OptionalInt
The maximum chunk capacity.static int
Default is4096
.int
Equivalent tochunkCapacity().orElseGet(UpdateByControl::chunkCapacityDefault)
.static UpdateByControl
Creates an instance with none of the values explicitly set.abstract OptionalInt
The initial hash table size.static int
Default is4096
.int
Equivalent toinitialHashTableSize().orElseGet(UpdateByControl::initialHashTableSizeDefault)
.final UpdateByControl
Create a new instance with all of the explicit-or-default values fromthis
.abstract Optional<MathContext>
The math context.static MathContext
Default isDECIMAL64
.Equivalent tomathContext().orElseGet(UpdateByControl::mathContextDefault)
.abstract OptionalDouble
The maximum load factor for the hash table.static double
Default is0.75
.double
Equivalent tomaximumLoadFactor().orElseGet(UpdateByControl::maximumLoadFactorDefault)
.static double
Default is1.1
.abstract OptionalDouble
The maximum fractional memory overhead allowable for sparse redirections as a fraction (e.g.double
Equivalent tomaxStaticSparseMemoryOverhead().orElseGet(UpdateByControl::maximumStaticMemoryOverheadDefault)
.abstract OptionalDouble
The target load factor for the hash table.static double
Default is0.7
.double
Equivalent totargetLoadFactor().orElseGet(UpdateByControl::targetLoadFactorDefault)
.abstract Boolean
If redirections should be used for output sources instead of sparse array sources.static boolean
Default isfalse
.boolean
Equivalent 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
-