avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1074322 - in /avro/trunk: ./ lang/java/mapred/src/main/java/org/apache/avro/mapred/
Date Thu, 24 Feb 2011 22:25:58 GMT
Author: cutting
Date: Thu Feb 24 22:25:57 2011
New Revision: 1074322

URL: http://svn.apache.org/viewvc?rev=1074322&view=rev
Log:
AVRO-773. Java: Add no-arg constructor to AvroWrapper.  Contributed by Jan Prach.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroKey.java
    avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroValue.java
    avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroWrapper.java

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1074322&r1=1074321&r2=1074322&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Thu Feb 24 22:25:57 2011
@@ -177,6 +177,9 @@ Avro 1.5.0 (unreleased)
     AVRO-744. C: Helper macros for extracting and setting record field
     values (dcreager)
 
+    AVRO-773. Java: Add no-arg constructor to AvroWrapper.
+    (Jan Prach via cutting)
+
   BUG FIXES
 
     AVRO-764. Java: Bug in BinaryData.compare() with offset comparison.

Modified: avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroKey.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroKey.java?rev=1074322&r1=1074321&r2=1074322&view=diff
==============================================================================
--- avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroKey.java (original)
+++ avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroKey.java Thu Feb
24 22:25:57 2011
@@ -20,6 +20,9 @@ package org.apache.avro.mapred;
 
 /** The wrapper of keys for jobs configured with {@link AvroJob} . */
 public class AvroKey<T> extends AvroWrapper<T> {
+  /** Wrap null. Construct {@link AvroKey} wrapping no key. */
+  public AvroKey() { this(null); }
+
   /** Wrap a key. */
   public AvroKey(T datum) { super(datum); }
 }

Modified: avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroValue.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroValue.java?rev=1074322&r1=1074321&r2=1074322&view=diff
==============================================================================
--- avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroValue.java (original)
+++ avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroValue.java Thu Feb
24 22:25:57 2011
@@ -20,6 +20,9 @@ package org.apache.avro.mapred;
 
 /** The wrapper of values for jobs configured with {@link AvroJob} . */
 public class AvroValue<T> extends AvroWrapper<T> {
+  /** Wrap null. Construct {@link AvroValue} wrapping no value. */
+  public AvroValue() { this(null); }
+
   /** Wrap a value. */
   public AvroValue(T datum) { super(datum); }
 }

Modified: avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroWrapper.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroWrapper.java?rev=1074322&r1=1074321&r2=1074322&view=diff
==============================================================================
--- avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroWrapper.java (original)
+++ avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroWrapper.java Thu
Feb 24 22:25:57 2011
@@ -22,6 +22,9 @@ package org.apache.avro.mapred;
 public class AvroWrapper<T> {
   private T datum;
 
+  /** Wrap null. Construct {@link AvroWrapper} wrapping no datum. */
+  public AvroWrapper() { this(null); }
+
   /** Wrap a datum. */
   public AvroWrapper(T datum) { this.datum = datum; }
 



Mime
View raw message