org.apache.hadoop.mapred
Class MapRIFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.hadoop.mapred.IFileInputStream
          extended by org.apache.hadoop.mapred.MapRIFileInputStream
All Implemented Interfaces:
Closeable

public class MapRIFileInputStream
extends org.apache.hadoop.mapred.IFileInputStream


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.IFileInputStream
LOG
 
Constructor Summary
MapRIFileInputStream(InputStream in, long len, boolean checkLength, org.apache.hadoop.conf.Configuration conf)
           
MapRIFileInputStream(InputStream in, long len, org.apache.hadoop.conf.Configuration conf)
          Given input stream and length of file verify the filesize and provide a way to extract mapoutputsize.
 
Method Summary
 MapOutputFileInfo getMapOutputFileInfo()
           
 long getSize()
           
 
Methods inherited from class org.apache.hadoop.mapred.IFileInputStream
close, getChecksum, getPosition, read, read, readWithChecksum, skip
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRIFileInputStream

public MapRIFileInputStream(InputStream in,
                            long len,
                            org.apache.hadoop.conf.Configuration conf)
                     throws IOException
Given input stream and length of file verify the filesize and provide a way to extract mapoutputsize.

Throws:
IOException

MapRIFileInputStream

public MapRIFileInputStream(InputStream in,
                            long len,
                            boolean checkLength,
                            org.apache.hadoop.conf.Configuration conf)
                     throws IOException
Throws:
IOException
Method Detail

getMapOutputFileInfo

public MapOutputFileInfo getMapOutputFileInfo()

getSize

public long getSize()
Overrides:
getSize in class org.apache.hadoop.mapred.IFileInputStream


Copyright © 2014 Apache Software Foundation. All Rights Reserved.