Package org.apache.hadoop.hdfs.client

Examples of org.apache.hadoop.hdfs.client.ClientMmap.ref()


    }
    seek(pos + length);
    ByteBuffer buffer = clientMmap.getMappedByteBuffer().asReadOnlyBuffer();
    buffer.position((int)blockPos);
    buffer.limit((int)limit);
    clientMmap.ref();
    extendedReadBuffers.put(buffer, clientMmap);
    readStatistics.addZeroCopyBytes(length);
    if (DFSClient.LOG.isDebugEnabled()) {
      DFSClient.LOG.debug("readZeroCopy read " + maxLength + " bytes from " +
          "offset " + curPos + " via the zero-copy read path.  " +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.