File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 (if-let [rv (get-in options [:datatype-parsers dtype])]
7777 (rv dtype options)
7878 (case dtype
79- :string (str-table/make -string-table 0 " " )
79+ :string (str-table/fast -string-container )
8080 :text
8181 (let [^IMutList list-data
8282 (try
Original file line number Diff line number Diff line change 451451 (.add container parsed-value)
452452 (catch Exception e
453453 (throw (RuntimeException. (str " Parse failure of datatype: "
454- (dtype/elemwise-datatype container)
455- e) ))))))))
454+ (dtype/elemwise-datatype container))
455+ e ))))))))
456456 (finalize [_p rowcount]
457457 (finalize-parser-data! container missing nil nil missing-value rowcount)))
458458
Original file line number Diff line number Diff line change 191191
192192(defn fast-string-container
193193 ([str->int int->str]
194+ (when-not (instance? java.util.HashMap str->int)
195+ (throw (RuntimeException. " Invalid creation of fast string container" )))
194196 (FastStringContainer. (hamf/long-array-list )
195197 int->str str->int))
196198 ([]
You can’t perform that action at this time.
0 commit comments