Skip to content

Commit

Permalink
Changed ordered-group-by to use a linkedhashmap for more ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Mar 8, 2021
1 parent df7ac42 commit 184f77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tech/v3/datatype/reductions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
DoubleConsumers$UnaryOpSum
DoubleConsumers$BinaryOp
Consumers$MultiStagedConsumer]
[java.util List Map HashMap Map$Entry Spliterator$OfDouble Spliterator]
[java.util List Map HashMap Map$Entry Spliterator$OfDouble Spliterator LinkedHashMap]
[java.util.concurrent ForkJoinPool Callable Future]
[java.util.stream StreamSupport]
[java.util.concurrent ConcurrentHashMap]
Expand Down Expand Up @@ -314,7 +314,7 @@
(parallel-for/indexed-map-reduce
n-elems
(fn [^long start-idx ^long group-len]
(let [result-map (HashMap.)
(let [result-map (LinkedHashMap.)
bifn (IndexReduction$IndexedBiFunction. reducer batch-data)
end-idx (+ start-idx group-len)]
(loop [idx start-idx]
Expand Down

0 comments on commit 184f77e

Please sign in to comment.