Package org.apache.hadoop.mapred
Class FadvisedChunkedFile
java.lang.Object
io.netty.handler.stream.ChunkedFile
org.apache.hadoop.mapred.FadvisedChunkedFile
- All Implemented Interfaces:
io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
public class FadvisedChunkedFile
extends io.netty.handler.stream.ChunkedFile
-
Constructor Summary
ConstructorsConstructorDescriptionFadvisedChunkedFile(RandomAccessFile file, long position, long count, int chunkSize, boolean manageOsCache, int readaheadLength, org.apache.hadoop.io.ReadaheadPool readaheadPool, String identifier) -
Method Summary
Methods inherited from class io.netty.handler.stream.ChunkedFile
currentOffset, endOffset, isEndOfInput, length, progress, readChunk, startOffset
-
Constructor Details
-
FadvisedChunkedFile
public FadvisedChunkedFile(RandomAccessFile file, long position, long count, int chunkSize, boolean manageOsCache, int readaheadLength, org.apache.hadoop.io.ReadaheadPool readaheadPool, String identifier) throws IOException - Throws:
IOException
-
-
Method Details
-
readChunk
public io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator) throws Exception - Specified by:
readChunkin interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Overrides:
readChunkin classio.netty.handler.stream.ChunkedFile- Throws:
Exception
-
close
- Specified by:
closein interfaceio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>- Overrides:
closein classio.netty.handler.stream.ChunkedFile- Throws:
Exception
-