You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by my...@apache.org on 2019/06/25 12:52:26 UTC

[incubator-hivemall] branch master updated: Fixed imports

This is an automated email from the ASF dual-hosted git repository.

myui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hivemall.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c3631d  Fixed imports
8c3631d is described below

commit 8c3631df038c4550de22b92c47b160f8881c25f7
Author: Makoto Yui <my...@apache.org>
AuthorDate: Tue Jun 25 21:52:12 2019 +0900

    Fixed imports
---
 core/src/main/java/hivemall/tools/map/MapRouletteUDF.java | 3 +--
 nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
index 0729d15..dd34f76 100644
--- a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
+++ b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
@@ -21,6 +21,7 @@ package hivemall.tools.map;
 import static hivemall.utils.lang.StringUtils.join;
 
 import hivemall.utils.hadoop.HiveUtils;
+import hivemall.utils.lang.Preconditions;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -42,8 +43,6 @@ import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils;
 import org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector;
 import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
 
-import com.clearspring.analytics.util.Preconditions;
-
 /**
  * The map_roulette returns a map key based on weighted random sampling of map values.
  */
diff --git a/nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java b/nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java
index 0317d2a..4a58bae 100644
--- a/nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java
+++ b/nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java
@@ -23,6 +23,7 @@ import hivemall.utils.hadoop.HiveUtils;
 import hivemall.utils.io.HttpUtils;
 import hivemall.utils.io.IOUtils;
 import hivemall.utils.lang.ExceptionUtils;
+import hivemall.utils.lang.Preconditions;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -63,8 +64,6 @@ import org.apache.lucene.analysis.ja.tokenattributes.PartOfSpeechAttribute;
 import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
 import org.apache.lucene.analysis.util.CharArraySet;
 
-import com.clearspring.analytics.util.Preconditions;
-
 @Description(name = "tokenize_ja",
         value = "_FUNC_(String line [, const string mode = \"normal\", const array<string> stopWords, const array<string> stopTags, const array<string> userDict (or string userDictURL)])"
                 + " - returns tokenized strings in array<string>",