public static interface HadoopShims.ZeroCopyReaderShim
Modifier and Type | Method and Description |
---|---|
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)
Copyright © 2017 The Apache Software Foundation. All rights reserved.