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
IOException
void releaseBuffer(ByteBuffer buffer)
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.