org.apache.hadoop.fs.cosn.buffer.CosNNonDirectBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hadoop-cos Show documentation
Show all versions of hadoop-cos Show documentation
This module contains code to support integration with Tencent Cloud COS.
It also declares the dependencies needed to work with COS.
package org.apache.hadoop.fs.cosn.buffer;
import java.nio.ByteBuffer;
/**
* The direct buffer based on the JVM heap memory.
*/
class CosNNonDirectBuffer extends CosNByteBuffer {
public CosNNonDirectBuffer(ByteBuffer byteBuffer) {
super(byteBuffer);
}
@Override
protected boolean isDirect() {
return false;
}
@Override
protected boolean isMapped() {
return false;
}
}