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 readBuffer on this
ZeroCopyReaderShim.
|
ByteBuffer readBuffer(int maxLength, boolean verifyChecksums) throws IOException
IOExceptionvoid releaseBuffer(ByteBuffer buffer)
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.