crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkw...@apache.org
Subject git commit: CRUNCH-316: Converted SafeAvroSerialization to use DirectBinaryEncoder instead of BufferedBinaryEncoder.
Date Thu, 02 Jan 2014 17:32:50 GMT
Updated Branches:
  refs/heads/master 5d666fe97 -> 633438c1c


CRUNCH-316: Converted SafeAvroSerialization to use DirectBinaryEncoder instead of BufferedBinaryEncoder.


Project: http://git-wip-us.apache.org/repos/asf/crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/crunch/commit/633438c1
Tree: http://git-wip-us.apache.org/repos/asf/crunch/tree/633438c1
Diff: http://git-wip-us.apache.org/repos/asf/crunch/diff/633438c1

Branch: refs/heads/master
Commit: 633438c1cfc7f01957dac46546502db05a24bc74
Parents: 5d666fe
Author: Micah Whitacre <mkwhit@apache.org>
Authored: Wed Jan 1 16:18:30 2014 -0600
Committer: Micah Whitacre <mkwhit@apache.org>
Committed: Thu Jan 2 09:14:08 2014 -0600

----------------------------------------------------------------------
 .../java/org/apache/crunch/types/avro/SafeAvroSerialization.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/633438c1/crunch-core/src/main/java/org/apache/crunch/types/avro/SafeAvroSerialization.java
----------------------------------------------------------------------
diff --git a/crunch-core/src/main/java/org/apache/crunch/types/avro/SafeAvroSerialization.java
b/crunch-core/src/main/java/org/apache/crunch/types/avro/SafeAvroSerialization.java
index 1535a61..9205056 100644
--- a/crunch-core/src/main/java/org/apache/crunch/types/avro/SafeAvroSerialization.java
+++ b/crunch-core/src/main/java/org/apache/crunch/types/avro/SafeAvroSerialization.java
@@ -121,7 +121,7 @@ class SafeAvroSerialization<T> extends Configured implements Serialization<AvroW
 
     public void open(OutputStream out) {
       this.out = out;
-      this.encoder = new EncoderFactory().configureBlockSize(512).binaryEncoder(out, null);
+      this.encoder = new EncoderFactory().directBinaryEncoder(out, null);
     }
 
     public void serialize(AvroWrapper<T> wrapper) throws IOException {


Mime
View raw message