public class UpsertKeyUtil extends Object
ImmutableBitSet
.Constructor and Description |
---|
UpsertKeyUtil() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getSmallestKey(Set<org.apache.calcite.util.ImmutableBitSet> upsertKeys)
Returns the smallest key of given upsert keys.
|
@Nonnull public static int[] getSmallestKey(@Nullable Set<org.apache.calcite.util.ImmutableBitSet> upsertKeys)
ImmutableBitSet
has smaller cardinality or has a smaller leading
element when the same cardinality. E.g., '{0,1}' is smaller than '{0,1,2}' and '{0,1}' is
smaller than '{0,2}'.upsertKeys
- input upsert keysCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.