Class ObjectTimsortKernel
java.lang.Object
io.deephaven.engine.table.impl.sort.timsort.ObjectTimsortKernel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ATTR extends Any>
ObjectTimsortKernel.ObjectSortKernelContext<ATTR>createContext
(int size) static <ATTR extends Any>
voidsort
(ObjectTimsortKernel.ObjectSortKernelContext<ATTR> context, WritableObjectChunk<Object, ATTR> valuesToSort) Sort the values in valuesToSort permuting the indexKeys chunk in the same way.
-
Method Details
-
createContext
public static <ATTR extends Any> ObjectTimsortKernel.ObjectSortKernelContext<ATTR> createContext(int size) -
sort
public static <ATTR extends Any> void sort(ObjectTimsortKernel.ObjectSortKernelContext<ATTR> context, WritableObjectChunk<Object, ATTR> valuesToSort) Sort the values in valuesToSort permuting the indexKeys chunk in the same way.The offsetsIn chunk is contains the offset of runs to sort in indexKeys; and the lengthsIn contains the length of the runs. This allows the kernel to be used for a secondary column sort, chaining it together with fewer runs sorted on each pass.
-