Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Why LineRecrodReader has 3 constructors?


Copy link to this message
-
Why LineRecrodReader has 3 constructors?
org.apache.hadoop.mapred.LineRecordReader has 3 constructors.

The one in the following is used normally.

public LineRecordReader(Configuration job,  FileSplit split) throws
IOException

But when the following ones are used?  I commented them and re-compiled the
code without errors.  So probably they are not used directly in Hadoop core
code.
But then why are they there in the code?
public LineRecordReader(InputStream in, long offset, long endOffset, int
maxLineLength)
public LineRecordReader(InputStream in, long offset, long endOffset,
Configuration job)
Thanks,
Abdul Qadeer