public static interface HadoopShims.ZeroCopyReaderShim extends Closeable
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the underlying stream. | 
| ByteBuffer | readBuffer(int maxLength,
          boolean verifyChecksums)Get a ByteBuffer from the FSDataInputStream - this can be either a HeapByteBuffer or an MappedByteBuffer. | 
| void | releaseBuffer(ByteBuffer buffer)Release a ByteBuffer obtained from a read on the
 Also move the in stream by that amount. | 
ByteBuffer readBuffer(int maxLength, boolean verifyChecksums) throws IOException
IOExceptionvoid releaseBuffer(ByteBuffer buffer)
void close()
    throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.