beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhalp...@apache.org
Subject [1/2] incubator-beam git commit: Added BigInteger to TypeDescriptors class.
Date Fri, 22 Jul 2016 23:51:46 GMT
Repository: incubator-beam
Updated Branches:
  refs/heads/master 07a313f1a -> 12b60ffa5


Added BigInteger to TypeDescriptors class.


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

Branch: refs/heads/master
Commit: 75df931a55dbd3f93d9143574cdad7291d3457aa
Parents: 07a313f
Author: Jesse Anderson <jesse@smokinghand.com>
Authored: Fri Jul 22 13:54:26 2016 -0700
Committer: Jesse Anderson <jesse@smokinghand.com>
Committed: Fri Jul 22 13:54:26 2016 -0700

----------------------------------------------------------------------
 .../org/apache/beam/sdk/values/TypeDescriptors.java    | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/75df931a/sdks/java/core/src/main/java/org/apache/beam/sdk/values/TypeDescriptors.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/values/TypeDescriptors.java
b/sdks/java/core/src/main/java/org/apache/beam/sdk/values/TypeDescriptors.java
index b833c10..0e7b9cb 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/values/TypeDescriptors.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/values/TypeDescriptors.java
@@ -20,6 +20,7 @@ package org.apache.beam.sdk.values;
 import com.google.common.reflect.TypeParameter;
 
 import java.math.BigDecimal;
+import java.math.BigInteger;
 import java.util.List;
 import java.util.Set;
 
@@ -115,6 +116,18 @@ public class TypeDescriptors {
   }
 
   /**
+   * The {@link TypeDescriptor} for BigInteger.
+   * This is the equivalent of:
+   * <pre>
+   * new TypeDescriptor&lt;BigInteger&gt;() {};
+   * </pre>
+   * @return A {@link TypeDescriptor} for BigInteger
+   */
+  public static TypeDescriptor<BigInteger> bigintegers() {
+    return new TypeDescriptor<BigInteger>() {};
+  }
+
+  /**
    * The {@link TypeDescriptor} for String.
    * This is the equivalent of:
    * <pre>


Mime
View raw message