hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [32/50] [abbrv] hadoop git commit: HDFS-10718. Prefer direct ByteBuffer in native RS encoder and decoder. Contributed by Sammi Chen
Date Fri, 05 Aug 2016 20:44:33 GMT
HDFS-10718. Prefer direct ByteBuffer in native RS encoder and decoder. Contributed by Sammi
Chen


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

Branch: refs/heads/YARN-2915
Commit: cca62296960922780e7d8730c7200fb328949287
Parents: 57369a6
Author: Kai Zheng <kai.zheng@intel.com>
Authored: Fri Aug 5 04:22:48 2016 +0800
Committer: Kai Zheng <kai.zheng@intel.com>
Committed: Fri Aug 5 04:22:48 2016 +0800

----------------------------------------------------------------------
 .../hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java      | 5 +++++
 .../hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java      | 5 +++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/cca62296/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java
index 6b497cc..ce4ec2b 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawDecoder.java
@@ -50,6 +50,11 @@ public class NativeRSRawDecoder extends AbstractNativeRawDecoder {
     destroyImpl();
   }
 
+  @Override
+  public boolean preferDirectBuffer() {
+    return true;
+  }
+
   private native void initImpl(int numDataUnits, int numParityUnits);
 
   private native void decodeImpl(

http://git-wip-us.apache.org/repos/asf/hadoop/blob/cca62296/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java
index 297ed33..70b5a46 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/NativeRSRawEncoder.java
@@ -50,6 +50,11 @@ public class NativeRSRawEncoder extends AbstractNativeRawEncoder {
     destroyImpl();
   }
 
+  @Override
+  public boolean preferDirectBuffer() {
+    return true;
+  }
+
   private native void initImpl(int numDataUnits, int numParityUnits);
 
   private native void encodeImpl(ByteBuffer[] inputs, int[] inputOffsets,


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message