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