gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1358064 - /gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
Date Fri, 06 Jul 2012 07:51:17 GMT
Author: kazk
Date: Fri Jul  6 07:51:16 2012
New Revision: 1358064

URL: http://svn.apache.org/viewvc?rev=1358064&view=rev
Log:
Updates GoraCompiler.java for GORA-143.

Modified:
    gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java

Modified: gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
URL: http://svn.apache.org/viewvc/gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java?rev=1358064&r1=1358063&r2=1358064&view=diff
==============================================================================
--- gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java (original)
+++ gora/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java Fri Jul
 6 07:51:16 2012
@@ -171,6 +171,7 @@ public class GoraCompiler {
     line(0, "import org.apache.avro.util.Utf8;");
     line(0, "import org.apache.avro.ipc.AvroRemoteException;");
     line(0, "import org.apache.avro.generic.GenericArray;");
+    line(0, "import org.apache.avro.specific.FixedSize;");
     line(0, "import org.apache.avro.specific.SpecificExceptionBase;");
     line(0, "import org.apache.avro.specific.SpecificRecordBase;");
     line(0, "import org.apache.avro.specific.SpecificRecord;");
@@ -317,6 +318,7 @@ public class GoraCompiler {
           switch (fieldSchema.getType()) {
           case INT:case LONG:case FLOAT:case DOUBLE:
           case BOOLEAN:case BYTES:case STRING: case ENUM: case RECORD:
+          case FIXED:
             String unboxed = unbox(fieldSchema);
             String fieldType = type(fieldSchema);
             line(1, "public "+unboxed+" get" +camelKey+"() {");



Mime
View raw message