Package io.deephaven.engine.rowset
Enum Class RowSetFactory.UnionStrategy
- All Implemented Interfaces:
Serializable,Comparable<RowSetFactory.UnionStrategy>,java.lang.constant.Constable
- Enclosing class:
RowSetFactory
How
RowSetFactory.union(Collection) builds its result, selected by the RowSetFactory.unionStrategy
configuration property. RADIX is the default; the others are what it replaced, kept for comparison.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMerge in passes: an accumulator keeps subsuming the next row set while it appends or while the previous one duplicated rows already held, otherwise a new group starts.When the inputs together hold more entries than aSortedRangescan, build anRspBitmapby a radix pass on the block bits: every range of the small inputs is split into block-local pieces bucketed by block, and each block's container is built once from its own pieces; bitmap-sized inputs are merged in passes and combined at the end.Copy the first row set and insert the rest into it in the order given: whatRowSetFactory.unionInsert(java.util.Collection<io.deephaven.engine.rowset.RowSet>)did before any of the others existed.SEQUENTIALafter sorting the inputs by first row key, so that disjoint inputs append in turn whatever order the caller supplied them in. -
Method Summary
Modifier and TypeMethodDescriptionstatic RowSetFactory.UnionStrategyReturns the enum constant of this class with the specified name.static RowSetFactory.UnionStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEQUENTIAL
Copy the first row set and insert the rest into it in the order given: whatRowSetFactory.unionInsert(java.util.Collection<io.deephaven.engine.rowset.RowSet>)did before any of the others existed. Quadratic when the inputs are disjoint and arrive out of key order. -
SEQUENTIAL_SORTED
SEQUENTIALafter sorting the inputs by first row key, so that disjoint inputs append in turn whatever order the caller supplied them in. -
MERGE_IN_PASSES
Merge in passes: an accumulator keeps subsuming the next row set while it appends or while the previous one duplicated rows already held, otherwise a new group starts. SeeRowSetFactory.mergeInPasses(io.deephaven.engine.rowset.RowSet[], int). -
RADIX
When the inputs together hold more entries than aSortedRangescan, build anRspBitmapby a radix pass on the block bits: every range of the small inputs is split into block-local pieces bucketed by block, and each block's container is built once from its own pieces; bitmap-sized inputs are merged in passes and combined at the end. Below the threshold, or when the pieces would not fit one array, the whole union merges in passes instead. SeeRowSetFactory.unionWithRadix(io.deephaven.engine.rowset.RowSet[], int).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-