[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:56 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | LineRecordReader (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="LineRecordReader (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LineRecordReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../org/apache/hadoop/mapred/KeyValueTextInputFormat.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.LineReader.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/LineRecordReader.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="LineRecordReader.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.mapred</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class LineRecordReader</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapred.LineRecordReader</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <B>Deprecated.</B> <I>Use |
---|
| 103 | <A HREF="../../../../org/apache/hadoop/mapreduce/lib/input/LineRecordReader.html" title="class in org.apache.hadoop.mapreduce.lib.input"><CODE>LineRecordReader</CODE></A> instead.</I> |
---|
| 104 | <P> |
---|
| 105 | <DL> |
---|
| 106 | <DT><PRE><FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
| 107 | </FONT>public class <B>LineRecordReader</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></DL> |
---|
| 108 | </PRE> |
---|
| 109 | |
---|
| 110 | <P> |
---|
| 111 | Treats keys as offset in file and value as line. |
---|
| 112 | <P> |
---|
| 113 | |
---|
| 114 | <P> |
---|
| 115 | <HR> |
---|
| 116 | |
---|
| 117 | <P> |
---|
| 118 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 119 | |
---|
| 120 | <A NAME="nested_class_summary"><!-- --></A> |
---|
| 121 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 122 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 123 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 124 | <B>Nested Class Summary</B></FONT></TH> |
---|
| 125 | </TR> |
---|
| 126 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 127 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 128 | <CODE>static class</CODE></FONT></TD> |
---|
| 129 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.LineReader.html" title="class in org.apache.hadoop.mapred">LineRecordReader.LineReader</A></B></CODE> |
---|
| 130 | |
---|
| 131 | <BR> |
---|
| 132 | <B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/hadoop/util/LineReader.html" title="class in org.apache.hadoop.util"><CODE>LineReader</CODE></A> instead.</I></TD> |
---|
| 133 | </TR> |
---|
| 134 | </TABLE> |
---|
| 135 | |
---|
| 136 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 137 | |
---|
| 138 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 139 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 140 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 141 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 142 | <B>Constructor Summary</B></FONT></TH> |
---|
| 143 | </TR> |
---|
| 144 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 145 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#LineRecordReader(org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit)">LineRecordReader</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job, |
---|
| 146 | <A HREF="../../../../org/apache/hadoop/mapred/FileSplit.html" title="class in org.apache.hadoop.mapred">FileSplit</A> split)</CODE> |
---|
| 147 | |
---|
| 148 | <BR> |
---|
| 149 | <B>Deprecated.</B> </TD> |
---|
| 150 | </TR> |
---|
| 151 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 152 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#LineRecordReader(java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration)">LineRecordReader</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in, |
---|
| 153 | long offset, |
---|
| 154 | long endOffset, |
---|
| 155 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job)</CODE> |
---|
| 156 | |
---|
| 157 | <BR> |
---|
| 158 | <B>Deprecated.</B> </TD> |
---|
| 159 | </TR> |
---|
| 160 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 161 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#LineRecordReader(java.io.InputStream, long, long, int)">LineRecordReader</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in, |
---|
| 162 | long offset, |
---|
| 163 | long endOffset, |
---|
| 164 | int maxLineLength)</CODE> |
---|
| 165 | |
---|
| 166 | <BR> |
---|
| 167 | <B>Deprecated.</B> </TD> |
---|
| 168 | </TR> |
---|
| 169 | </TABLE> |
---|
| 170 | |
---|
| 171 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 172 | |
---|
| 173 | <A NAME="method_summary"><!-- --></A> |
---|
| 174 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 175 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 176 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 177 | <B>Method Summary</B></FONT></TH> |
---|
| 178 | </TR> |
---|
| 179 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 180 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 181 | <CODE> void</CODE></FONT></TD> |
---|
| 182 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#close()">close</A></B>()</CODE> |
---|
| 183 | |
---|
| 184 | <BR> |
---|
| 185 | <B>Deprecated.</B> Close this <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred"><CODE>InputSplit</CODE></A> to future operations.</TD> |
---|
| 186 | </TR> |
---|
| 187 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 188 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 189 | <CODE> <A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A></CODE></FONT></TD> |
---|
| 190 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#createKey()">createKey</A></B>()</CODE> |
---|
| 191 | |
---|
| 192 | <BR> |
---|
| 193 | <B>Deprecated.</B> Create an object of the appropriate type to be used as a key.</TD> |
---|
| 194 | </TR> |
---|
| 195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 197 | <CODE> <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A></CODE></FONT></TD> |
---|
| 198 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#createValue()">createValue</A></B>()</CODE> |
---|
| 199 | |
---|
| 200 | <BR> |
---|
| 201 | <B>Deprecated.</B> Create an object of the appropriate type to be used as a value.</TD> |
---|
| 202 | </TR> |
---|
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 205 | <CODE> long</CODE></FONT></TD> |
---|
| 206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#getPos()">getPos</A></B>()</CODE> |
---|
| 207 | |
---|
| 208 | <BR> |
---|
| 209 | <B>Deprecated.</B> Returns the current position in the input.</TD> |
---|
| 210 | </TR> |
---|
| 211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 213 | <CODE> float</CODE></FONT></TD> |
---|
| 214 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#getProgress()">getProgress</A></B>()</CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | <B>Deprecated.</B> Get the progress within the split</TD> |
---|
| 218 | </TR> |
---|
| 219 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 220 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 221 | <CODE> boolean</CODE></FONT></TD> |
---|
| 222 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.html#next(org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text)">next</A></B>(<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A> key, |
---|
| 223 | <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A> value)</CODE> |
---|
| 224 | |
---|
| 225 | <BR> |
---|
| 226 | <B>Deprecated.</B> Read a line.</TD> |
---|
| 227 | </TR> |
---|
| 228 | </TABLE> |
---|
| 229 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 230 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 231 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 232 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 233 | </TR> |
---|
| 234 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 235 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 236 | </TR> |
---|
| 237 | </TABLE> |
---|
| 238 | |
---|
| 239 | <P> |
---|
| 240 | |
---|
| 241 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 242 | |
---|
| 243 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 244 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 245 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 246 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 247 | <B>Constructor Detail</B></FONT></TH> |
---|
| 248 | </TR> |
---|
| 249 | </TABLE> |
---|
| 250 | |
---|
| 251 | <A NAME="LineRecordReader(org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit)"><!-- --></A><H3> |
---|
| 252 | LineRecordReader</H3> |
---|
| 253 | <PRE> |
---|
| 254 | public <B>LineRecordReader</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job, |
---|
| 255 | <A HREF="../../../../org/apache/hadoop/mapred/FileSplit.html" title="class in org.apache.hadoop.mapred">FileSplit</A> split) |
---|
| 256 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 257 | <DL> |
---|
| 258 | <DD><B>Deprecated.</B> <DL> |
---|
| 259 | |
---|
| 260 | <DT><B>Throws:</B> |
---|
| 261 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 262 | </DL> |
---|
| 263 | <HR> |
---|
| 264 | |
---|
| 265 | <A NAME="LineRecordReader(java.io.InputStream, long, long, int)"><!-- --></A><H3> |
---|
| 266 | LineRecordReader</H3> |
---|
| 267 | <PRE> |
---|
| 268 | public <B>LineRecordReader</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in, |
---|
| 269 | long offset, |
---|
| 270 | long endOffset, |
---|
| 271 | int maxLineLength)</PRE> |
---|
| 272 | <DL> |
---|
| 273 | <DD><B>Deprecated.</B> </DL> |
---|
| 274 | <HR> |
---|
| 275 | |
---|
| 276 | <A NAME="LineRecordReader(java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 277 | LineRecordReader</H3> |
---|
| 278 | <PRE> |
---|
| 279 | public <B>LineRecordReader</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in, |
---|
| 280 | long offset, |
---|
| 281 | long endOffset, |
---|
| 282 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> job) |
---|
| 283 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 284 | <DL> |
---|
| 285 | <DD><B>Deprecated.</B> <DL> |
---|
| 286 | |
---|
| 287 | <DT><B>Throws:</B> |
---|
| 288 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 289 | </DL> |
---|
| 290 | |
---|
| 291 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 292 | |
---|
| 293 | <A NAME="method_detail"><!-- --></A> |
---|
| 294 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 295 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 296 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 297 | <B>Method Detail</B></FONT></TH> |
---|
| 298 | </TR> |
---|
| 299 | </TABLE> |
---|
| 300 | |
---|
| 301 | <A NAME="createKey()"><!-- --></A><H3> |
---|
| 302 | createKey</H3> |
---|
| 303 | <PRE> |
---|
| 304 | public <A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A> <B>createKey</B>()</PRE> |
---|
| 305 | <DL> |
---|
| 306 | <DD><B>Deprecated.</B> <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#createKey()">RecordReader</A></CODE></B></DD> |
---|
| 307 | <DD>Create an object of the appropriate type to be used as a key. |
---|
| 308 | <P> |
---|
| 309 | <DD><DL> |
---|
| 310 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#createKey()">createKey</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 311 | </DD> |
---|
| 312 | <DD><DL> |
---|
| 313 | |
---|
| 314 | <DT><B>Returns:</B><DD>a new key object.</DL> |
---|
| 315 | </DD> |
---|
| 316 | </DL> |
---|
| 317 | <HR> |
---|
| 318 | |
---|
| 319 | <A NAME="createValue()"><!-- --></A><H3> |
---|
| 320 | createValue</H3> |
---|
| 321 | <PRE> |
---|
| 322 | public <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A> <B>createValue</B>()</PRE> |
---|
| 323 | <DL> |
---|
| 324 | <DD><B>Deprecated.</B> <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#createValue()">RecordReader</A></CODE></B></DD> |
---|
| 325 | <DD>Create an object of the appropriate type to be used as a value. |
---|
| 326 | <P> |
---|
| 327 | <DD><DL> |
---|
| 328 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#createValue()">createValue</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 329 | </DD> |
---|
| 330 | <DD><DL> |
---|
| 331 | |
---|
| 332 | <DT><B>Returns:</B><DD>a new value object.</DL> |
---|
| 333 | </DD> |
---|
| 334 | </DL> |
---|
| 335 | <HR> |
---|
| 336 | |
---|
| 337 | <A NAME="next(org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text)"><!-- --></A><H3> |
---|
| 338 | next</H3> |
---|
| 339 | <PRE> |
---|
| 340 | public boolean <B>next</B>(<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A> key, |
---|
| 341 | <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A> value) |
---|
| 342 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 343 | <DL> |
---|
| 344 | <DD><B>Deprecated.</B> <DD>Read a line. |
---|
| 345 | <P> |
---|
| 346 | <DD><DL> |
---|
| 347 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#next(K, V)">next</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 348 | </DD> |
---|
| 349 | <DD><DL> |
---|
| 350 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to read data into<DD><CODE>value</CODE> - the value to read data into |
---|
| 351 | <DT><B>Returns:</B><DD>true iff a key/value was read, false if at EOF |
---|
| 352 | <DT><B>Throws:</B> |
---|
| 353 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 354 | </DD> |
---|
| 355 | </DL> |
---|
| 356 | <HR> |
---|
| 357 | |
---|
| 358 | <A NAME="getProgress()"><!-- --></A><H3> |
---|
| 359 | getProgress</H3> |
---|
| 360 | <PRE> |
---|
| 361 | public float <B>getProgress</B>()</PRE> |
---|
| 362 | <DL> |
---|
| 363 | <DD><B>Deprecated.</B> <DD>Get the progress within the split |
---|
| 364 | <P> |
---|
| 365 | <DD><DL> |
---|
| 366 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#getProgress()">getProgress</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 367 | </DD> |
---|
| 368 | <DD><DL> |
---|
| 369 | |
---|
| 370 | <DT><B>Returns:</B><DD>progress from <code>0.0</code> to <code>1.0</code>.</DL> |
---|
| 371 | </DD> |
---|
| 372 | </DL> |
---|
| 373 | <HR> |
---|
| 374 | |
---|
| 375 | <A NAME="getPos()"><!-- --></A><H3> |
---|
| 376 | getPos</H3> |
---|
| 377 | <PRE> |
---|
| 378 | public long <B>getPos</B>() |
---|
| 379 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 380 | <DL> |
---|
| 381 | <DD><B>Deprecated.</B> <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#getPos()">RecordReader</A></CODE></B></DD> |
---|
| 382 | <DD>Returns the current position in the input. |
---|
| 383 | <P> |
---|
| 384 | <DD><DL> |
---|
| 385 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#getPos()">getPos</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 386 | </DD> |
---|
| 387 | <DD><DL> |
---|
| 388 | |
---|
| 389 | <DT><B>Returns:</B><DD>the current position in the input. |
---|
| 390 | <DT><B>Throws:</B> |
---|
| 391 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 392 | </DD> |
---|
| 393 | </DL> |
---|
| 394 | <HR> |
---|
| 395 | |
---|
| 396 | <A NAME="close()"><!-- --></A><H3> |
---|
| 397 | close</H3> |
---|
| 398 | <PRE> |
---|
| 399 | public void <B>close</B>() |
---|
| 400 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 401 | <DL> |
---|
| 402 | <DD><B>Deprecated.</B> <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#close()">RecordReader</A></CODE></B></DD> |
---|
| 403 | <DD>Close this <A HREF="../../../../org/apache/hadoop/mapred/InputSplit.html" title="interface in org.apache.hadoop.mapred"><CODE>InputSplit</CODE></A> to future operations. |
---|
| 404 | <P> |
---|
| 405 | <DD><DL> |
---|
| 406 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/mapred/RecordReader.html" title="interface in org.apache.hadoop.mapred">RecordReader</A><<A HREF="../../../../org/apache/hadoop/io/LongWritable.html" title="class in org.apache.hadoop.io">LongWritable</A>,<A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>></CODE></DL> |
---|
| 407 | </DD> |
---|
| 408 | <DD><DL> |
---|
| 409 | |
---|
| 410 | <DT><B>Throws:</B> |
---|
| 411 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 412 | </DD> |
---|
| 413 | </DL> |
---|
| 414 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 415 | <HR> |
---|
| 416 | |
---|
| 417 | |
---|
| 418 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 419 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 420 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 421 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 422 | <TR> |
---|
| 423 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 424 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 425 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 426 | <TR ALIGN="center" VALIGN="top"> |
---|
| 427 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 428 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 429 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 430 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LineRecordReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 431 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 432 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 433 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 434 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 435 | </TR> |
---|
| 436 | </TABLE> |
---|
| 437 | </TD> |
---|
| 438 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 439 | </EM> |
---|
| 440 | </TD> |
---|
| 441 | </TR> |
---|
| 442 | |
---|
| 443 | <TR> |
---|
| 444 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 445 | <A HREF="../../../../org/apache/hadoop/mapred/KeyValueTextInputFormat.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 446 | <A HREF="../../../../org/apache/hadoop/mapred/LineRecordReader.LineReader.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 447 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 448 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/LineRecordReader.html" target="_top"><B>FRAMES</B></A> |
---|
| 449 | <A HREF="LineRecordReader.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 450 | <SCRIPT type="text/javascript"> |
---|
| 451 | <!-- |
---|
| 452 | if(window==top) { |
---|
| 453 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 454 | } |
---|
| 455 | //--> |
---|
| 456 | </SCRIPT> |
---|
| 457 | <NOSCRIPT> |
---|
| 458 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 459 | </NOSCRIPT> |
---|
| 460 | |
---|
| 461 | |
---|
| 462 | </FONT></TD> |
---|
| 463 | </TR> |
---|
| 464 | <TR> |
---|
| 465 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 466 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 467 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 468 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 469 | </TR> |
---|
| 470 | </TABLE> |
---|
| 471 | <A NAME="skip-navbar_bottom"></A> |
---|
| 472 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 473 | |
---|
| 474 | <HR> |
---|
| 475 | Copyright © 2009 The Apache Software Foundation |
---|
| 476 | </BODY> |
---|
| 477 | </HTML> |
---|