org.apache.hadoop.mapred
Class FadvisedFileRegion

java.lang.Object
  extended by org.jboss.netty.channel.DefaultFileRegion
      extended by 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)
           
 
Method Summary
 void releaseExternalResources()
           
 long transferTo(WritableByteChannel target, long position)
           
 
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
 

Constructor Detail

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
Method Detail

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.