HDFS-10718. Prefer direct ByteBuffer in native RS encoder and decoder. Contributed by Sammi Chen

This commit is contained in:
Kai Zheng 2016-08-05 04:22:48 +08:00
parent 57369a678c
commit cca6229696
2 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,11 @@ public void release() {
destroyImpl();
}
@Override
public boolean preferDirectBuffer() {
return true;
}
private native void initImpl(int numDataUnits, int numParityUnits);
private native void decodeImpl(

View File

@ -50,6 +50,11 @@ public void release() {
destroyImpl();
}
@Override
public boolean preferDirectBuffer() {
return true;
}
private native void initImpl(int numDataUnits, int numParityUnits);
private native void encodeImpl(ByteBuffer[] inputs, int[] inputOffsets,