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/02/21 06:59:52 UTC
[incubator-hivemall] branch master updated: Applied formatter
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 56165d0 Applied formatter
56165d0 is described below
commit 56165d0aef4e0b6acc546b3b1a30c3891bc07b0b
Author: Makoto Yui <my...@apache.org>
AuthorDate: Thu Feb 21 15:59:41 2019 +0900
Applied formatter
---
core/src/main/java/hivemall/tools/map/MapKeyValuesUDF.java | 3 ++-
core/src/main/java/hivemall/tools/matrix/TransposeAndDotUDAF.java | 8 ++++----
core/src/main/java/hivemall/utils/hadoop/JsonSerdeUtils.java | 4 ++--
core/src/test/java/hivemall/mix/client/MixRequestRouterTest.java | 3 +--
.../src/main/java/hivemall/docs/FuncsListGeneratorMojo.java | 3 ++-
5 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/core/src/main/java/hivemall/tools/map/MapKeyValuesUDF.java b/core/src/main/java/hivemall/tools/map/MapKeyValuesUDF.java
index b2c0c75..8ef15a7 100644
--- a/core/src/main/java/hivemall/tools/map/MapKeyValuesUDF.java
+++ b/core/src/main/java/hivemall/tools/map/MapKeyValuesUDF.java
@@ -38,7 +38,8 @@ import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory;
@Description(name = "map_key_values",
- value = "_FUNC_(MAP<K, V> map) - " + "Returns a array of key-value pairs in array<named_struct<key,value>>",
+ value = "_FUNC_(MAP<K, V> map) - "
+ + "Returns a array of key-value pairs in array<named_struct<key,value>>",
extended = "SELECT map_key_values(map(\"one\",1,\"two\",2));\n\n"
+ "> [{\"key\":\"one\",\"value\":1},{\"key\":\"two\",\"value\":2}]")
@UDFType(deterministic = true, stateful = false)
diff --git a/core/src/main/java/hivemall/tools/matrix/TransposeAndDotUDAF.java b/core/src/main/java/hivemall/tools/matrix/TransposeAndDotUDAF.java
index 1b448cb..4c52ebe 100644
--- a/core/src/main/java/hivemall/tools/matrix/TransposeAndDotUDAF.java
+++ b/core/src/main/java/hivemall/tools/matrix/TransposeAndDotUDAF.java
@@ -131,11 +131,11 @@ public final class TransposeAndDotUDAF extends AbstractGenericUDAFResolver {
if (mode == Mode.PARTIAL1 || mode == Mode.COMPLETE) {
this.xRowOI = HiveUtils.asListOI(OIs[0]);
- this.xElemOI = HiveUtils.asDoubleCompatibleOI(
- xRowOI.getListElementObjectInspector());
+ this.xElemOI =
+ HiveUtils.asDoubleCompatibleOI(xRowOI.getListElementObjectInspector());
this.yRowOI = HiveUtils.asListOI(OIs[1]);
- this.yElemOI = HiveUtils.asDoubleCompatibleOI(
- yRowOI.getListElementObjectInspector());
+ this.yElemOI =
+ HiveUtils.asDoubleCompatibleOI(yRowOI.getListElementObjectInspector());
} else {
this.aggMatrixOI = HiveUtils.asListOI(OIs[0]);
this.aggMatrixRowOI =
diff --git a/core/src/main/java/hivemall/utils/hadoop/JsonSerdeUtils.java b/core/src/main/java/hivemall/utils/hadoop/JsonSerdeUtils.java
index f988184..d26019c 100644
--- a/core/src/main/java/hivemall/utils/hadoop/JsonSerdeUtils.java
+++ b/core/src/main/java/hivemall/utils/hadoop/JsonSerdeUtils.java
@@ -388,8 +388,8 @@ public final class JsonSerdeUtils {
@Nullable final List<TypeInfo> columnTypes) throws SerDeException {
final Object result;
try {
- JsonParser p =
- new JsonFactory().createJsonParser(new FastByteArrayInputStream(t.getBytes(), t.getLength()));
+ JsonParser p = new JsonFactory().createJsonParser(
+ new FastByteArrayInputStream(t.getBytes(), t.getLength()));
final JsonToken token = p.nextToken();
if (token == JsonToken.START_OBJECT) {
result = parseObject(p, columnNames, columnTypes);
diff --git a/core/src/test/java/hivemall/mix/client/MixRequestRouterTest.java b/core/src/test/java/hivemall/mix/client/MixRequestRouterTest.java
index 73edb72..44da5da 100644
--- a/core/src/test/java/hivemall/mix/client/MixRequestRouterTest.java
+++ b/core/src/test/java/hivemall/mix/client/MixRequestRouterTest.java
@@ -27,8 +27,7 @@ public class MixRequestRouterTest {
@Test
public void test() {
- MixRequestRouter router =
- new MixRequestRouter("yahoo.co.jp:11212,google.com");
+ MixRequestRouter router = new MixRequestRouter("yahoo.co.jp:11212,google.com");
NodeInfo[] nodes = router.getAllNodes();
Assert.assertEquals(2, nodes.length);
}
diff --git a/tools/hivemall-docs/src/main/java/hivemall/docs/FuncsListGeneratorMojo.java b/tools/hivemall-docs/src/main/java/hivemall/docs/FuncsListGeneratorMojo.java
index 72645c0..d4943a4 100644
--- a/tools/hivemall-docs/src/main/java/hivemall/docs/FuncsListGeneratorMojo.java
+++ b/tools/hivemall-docs/src/main/java/hivemall/docs/FuncsListGeneratorMojo.java
@@ -88,7 +88,8 @@ public class FuncsListGeneratorMojo extends AbstractMojo {
genericFuncsHeaders.put("# Map", Collections.singletonList("hivemall.tools.map"));
genericFuncsHeaders.put("# MapReduce", Collections.singletonList("hivemall.tools.mapred"));
genericFuncsHeaders.put("# Math", Collections.singletonList("hivemall.tools.math"));
- genericFuncsHeaders.put("# Vector/Matrix", Arrays.asList("hivemall.tools.matrix", "hivemall.tools.vector"));
+ genericFuncsHeaders.put("# Vector/Matrix",
+ Arrays.asList("hivemall.tools.matrix", "hivemall.tools.vector"));
genericFuncsHeaders.put("# Sanity Checks",
Collections.singletonList("hivemall.tools.sanity"));
genericFuncsHeaders.put("# Text processing",