add HiveUtils.isNumberListListOI


Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/d0e97e6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/d0e97e6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/d0e97e6f

Branch: refs/heads/JIRA-22/pr-385
Commit: d0e97e6ff71b2072ec5235cc3ac169162d59da59
Parents: d8f1005
Author: amaya <g...@sapphire.in.net>
Authored: Tue Sep 20 12:02:28 2016 +0900
Committer: amaya <g...@sapphire.in.net>
Committed: Tue Sep 20 12:02:28 2016 +0900

----------------------------------------------------------------------
 core/src/main/java/hivemall/utils/hadoop/HiveUtils.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/d0e97e6f/core/src/main/java/hivemall/utils/hadoop/HiveUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/hivemall/utils/hadoop/HiveUtils.java 
b/core/src/main/java/hivemall/utils/hadoop/HiveUtils.java
index 7e8ea7b..dcbf534 100644
--- a/core/src/main/java/hivemall/utils/hadoop/HiveUtils.java
+++ b/core/src/main/java/hivemall/utils/hadoop/HiveUtils.java
@@ -235,6 +235,10 @@ public final class HiveUtils {
         return isListOI(oi) && 
isNumberOI(((ListObjectInspector)oi).getListElementObjectInspector());
     }
 
+    public static boolean isNumberListListOI(@Nonnull final ObjectInspector 
oi) {
+        return isListOI(oi) && 
isNumberListOI(((ListObjectInspector)oi).getListElementObjectInspector());
+    }
+
     public static boolean isPrimitiveTypeInfo(@Nonnull TypeInfo typeInfo) {
         return typeInfo.getCategory() == ObjectInspector.Category.PRIMITIVE;
     }

Reply via email to