org.apache.hadoop.mapred
Class FadvisedFileRegion
java.lang.Object
org.jboss.netty.channel.DefaultFileRegion
org.apache.hadoop.mapred.FadvisedFileRegion
- All Implemented Interfaces:
- org.jboss.netty.channel.FileRegion, org.jboss.netty.util.ExternalResourceReleasable
public class FadvisedFileRegion
- extends org.jboss.netty.channel.DefaultFileRegion
Constructor Summary |
FadvisedFileRegion(RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
String identifier)
|
Methods inherited from class org.jboss.netty.channel.DefaultFileRegion |
getCount, getPosition, releaseAfterTransfer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FadvisedFileRegion
public FadvisedFileRegion(RandomAccessFile file,
long position,
long count,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
String identifier)
throws IOException
- Throws:
IOException
transferTo
public long transferTo(WritableByteChannel target,
long position)
throws IOException
- Specified by:
transferTo
in interface org.jboss.netty.channel.FileRegion
- Overrides:
transferTo
in class org.jboss.netty.channel.DefaultFileRegion
- Throws:
IOException
releaseExternalResources
public void releaseExternalResources()
- Specified by:
releaseExternalResources
in interface org.jboss.netty.util.ExternalResourceReleasable
- Overrides:
releaseExternalResources
in class org.jboss.netty.channel.DefaultFileRegion
Copyright © 2014 Apache Software Foundation. All Rights Reserved.