Skip to content

Commit 9603db4

Browse files
committed
Moving to new architecture to efficiently support allowlist, blocklist.
1 parent 17caf33 commit 9603db4

File tree

2 files changed

+401
-361
lines changed

2 files changed

+401
-361
lines changed

src/tech/v3/dataset/string_table.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[tech.v3.datatype.errors :as errors]
88
[ham-fisted.api :as hamf]
99
[ham-fisted.reduce :as hamf-rf]
10+
[ham-fisted.lazy-noncaching :as lznc]
1011
[clojure.tools.logging :as log])
1112
(:import [java.util List HashMap Map ArrayList]
1213
[java.util.function Function]
@@ -222,5 +223,11 @@
222223
(-> (->string-table str-t)
223224
(.int->str)))
224225

226+
(defn merge-string-tables
227+
"Return new string table with strings from lhs and rhs. Neither input is changed."
228+
[^StringTable lhs ^StringTable rhs]
229+
(string-table-from-strings (lznc/concat (.-int->str lhs)
230+
(.-int->str rhs))))
231+
225232

226233

0 commit comments

Comments
 (0)