protected class DFSInputStream.ByteBufferStrategy extends Object
Modifier and Type | Method and Description |
---|---|
int |
copyFrom(ByteBuffer src,
int offset,
int length)
Copy data from the src ByteBuffer into the read buffer.
|
int |
doRead(org.apache.hadoop.hdfs.BlockReader blockReader,
int off,
int len) |
public int doRead(org.apache.hadoop.hdfs.BlockReader blockReader, int off, int len) throws IOException
IOException
public int copyFrom(ByteBuffer src, int offset, int length)
src
- The src buffer where the data is copied fromoffset
- Useful only when the ReadStrategy is based on a byte array.
Indicate the offset of the byte array for copy.length
- Useful only when the ReadStrategy is based on a byte array.
Indicate the length of the data to copy.Copyright © 2018 Apache Software Foundation. All Rights Reserved.