source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 26.0 KB
Line 
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:58 UTC 2009 -->
6<TITLE>
7SequenceFileRecordReader (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">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="SequenceFileRecordReader (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>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SequenceFileRecordReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/TextInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="SequenceFileRecordReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
91org.apache.hadoop.mapreduce.lib.input</FONT>
92<BR>
93Class SequenceFileRecordReader&lt;K,V&gt;</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 "><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">org.apache.hadoop.mapreduce.RecordReader</A>&lt;K,V&gt;
97      <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader&lt;K,V&gt;</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>SequenceFileRecordReader&lt;K,V&gt;</B><DT>extends <A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;K,V&gt;</DL>
105</PRE>
106
107<P>
108An <A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce"><CODE>RecordReader</CODE></A> for <A HREF="../../../../../../org/apache/hadoop/io/SequenceFile.html" title="class in org.apache.hadoop.io"><CODE>SequenceFile</CODE></A>s.
109<P>
110
111<P>
112<HR>
113
114<P>
115<!-- =========== FIELD SUMMARY =========== -->
116
117<A NAME="field_summary"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121<B>Field Summary</B></FONT></TH>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125<CODE>protected &nbsp;<A HREF="../../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A></CODE></FONT></TD>
126<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#conf">conf</A></B></CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
130</TR>
131</TABLE>
132&nbsp;
133<!-- ======== CONSTRUCTOR SUMMARY ======== -->
134
135<A NAME="constructor_summary"><!-- --></A>
136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139<B>Constructor Summary</B></FONT></TH>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#SequenceFileRecordReader()">SequenceFileRecordReader</A></B>()</CODE>
143
144<BR>
145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146</TR>
147</TABLE>
148&nbsp;
149<!-- ========== METHOD SUMMARY =========== -->
150
151<A NAME="method_summary"><!-- --></A>
152<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
153<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
154<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
155<B>Method Summary</B></FONT></TH>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>&nbsp;void</CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#close()">close</A></B>()</CODE>
161
162<BR>
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the record reader.</TD>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167<CODE>&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A></CODE></FONT></TD>
168<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#getCurrentKey()">getCurrentKey</A></B>()</CODE>
169
170<BR>
171&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current key</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A></CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#getCurrentValue()">getCurrentValue</A></B>()</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current value.</TD>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183<CODE>&nbsp;float</CODE></FONT></TD>
184<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#getProgress()">getProgress</A></B>()</CODE>
185
186<BR>
187&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the progress within the input split</TD>
188</TR>
189<TR BGCOLOR="white" CLASS="TableRowColor">
190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191<CODE>&nbsp;void</CODE></FONT></TD>
192<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)">initialize</A></B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A>&nbsp;split,
193           <A HREF="../../../../../../org/apache/hadoop/mapreduce/TaskAttemptContext.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptContext</A>&nbsp;context)</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called once at initialization.</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>&nbsp;boolean</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html#nextKeyValue()">nextKeyValue</A></B>()</CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read the next key, value pair.</TD>
205</TR>
206</TABLE>
207&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
208<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
209<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
210<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>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<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>
214</TR>
215</TABLE>
216&nbsp;
217<P>
218
219<!-- ============ FIELD DETAIL =========== -->
220
221<A NAME="field_detail"><!-- --></A>
222<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
223<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
224<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
225<B>Field Detail</B></FONT></TH>
226</TR>
227</TABLE>
228
229<A NAME="conf"><!-- --></A><H3>
230conf</H3>
231<PRE>
232protected <A HREF="../../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> <B>conf</B></PRE>
233<DL>
234<DL>
235</DL>
236</DL>
237
238<!-- ========= CONSTRUCTOR DETAIL ======== -->
239
240<A NAME="constructor_detail"><!-- --></A>
241<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
243<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
244<B>Constructor Detail</B></FONT></TH>
245</TR>
246</TABLE>
247
248<A NAME="SequenceFileRecordReader()"><!-- --></A><H3>
249SequenceFileRecordReader</H3>
250<PRE>
251public <B>SequenceFileRecordReader</B>()</PRE>
252<DL>
253</DL>
254
255<!-- ============ METHOD DETAIL ========== -->
256
257<A NAME="method_detail"><!-- --></A>
258<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
259<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
260<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
261<B>Method Detail</B></FONT></TH>
262</TR>
263</TABLE>
264
265<A NAME="initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)"><!-- --></A><H3>
266initialize</H3>
267<PRE>
268public void <B>initialize</B>(<A HREF="../../../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce">InputSplit</A>&nbsp;split,
269                       <A HREF="../../../../../../org/apache/hadoop/mapreduce/TaskAttemptContext.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptContext</A>&nbsp;context)
270                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>,
271                       <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE>
272<DL>
273<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)">RecordReader</A></CODE></B></DD>
274<DD>Called once at initialization.
275<P>
276<DD><DL>
277<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#initialize(org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext)">initialize</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
278</DD>
279<DD><DL>
280<DT><B>Parameters:</B><DD><CODE>split</CODE> - the split that defines the range of records to read<DD><CODE>context</CODE> - the information about the task
281<DT><B>Throws:</B>
282<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>
283<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL>
284</DD>
285</DL>
286<HR>
287
288<A NAME="nextKeyValue()"><!-- --></A><H3>
289nextKeyValue</H3>
290<PRE>
291public boolean <B>nextKeyValue</B>()
292                     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>,
293                            <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE>
294<DL>
295<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#nextKeyValue()">RecordReader</A></CODE></B></DD>
296<DD>Read the next key, value pair.
297<P>
298<DD><DL>
299<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#nextKeyValue()">nextKeyValue</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
300</DD>
301<DD><DL>
302
303<DT><B>Returns:</B><DD>true if a key/value pair was read
304<DT><B>Throws:</B>
305<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>
306<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL>
307</DD>
308</DL>
309<HR>
310
311<A NAME="getCurrentKey()"><!-- --></A><H3>
312getCurrentKey</H3>
313<PRE>
314public <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A> <B>getCurrentKey</B>()</PRE>
315<DL>
316<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#getCurrentKey()">RecordReader</A></CODE></B></DD>
317<DD>Get the current key
318<P>
319<DD><DL>
320<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#getCurrentKey()">getCurrentKey</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
321</DD>
322<DD><DL>
323
324<DT><B>Returns:</B><DD>the current key or null if there is no current key</DL>
325</DD>
326</DL>
327<HR>
328
329<A NAME="getCurrentValue()"><!-- --></A><H3>
330getCurrentValue</H3>
331<PRE>
332public <A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A> <B>getCurrentValue</B>()</PRE>
333<DL>
334<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#getCurrentValue()">RecordReader</A></CODE></B></DD>
335<DD>Get the current value.
336<P>
337<DD><DL>
338<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#getCurrentValue()">getCurrentValue</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
339</DD>
340<DD><DL>
341
342<DT><B>Returns:</B><DD>the object that was read</DL>
343</DD>
344</DL>
345<HR>
346
347<A NAME="getProgress()"><!-- --></A><H3>
348getProgress</H3>
349<PRE>
350public float <B>getProgress</B>()
351                  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>
352<DL>
353<DD>Return the progress within the input split
354<P>
355<DD><DL>
356<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#getProgress()">getProgress</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
357</DD>
358<DD><DL>
359
360<DT><B>Returns:</B><DD>0.0 to 1.0 of the input byte range
361<DT><B>Throws:</B>
362<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>
363</DD>
364</DL>
365<HR>
366
367<A NAME="close()"><!-- --></A><H3>
368close</H3>
369<PRE>
370public void <B>close</B>()
371           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>
372<DL>
373<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#close()">RecordReader</A></CODE></B></DD>
374<DD>Close the record reader.
375<P>
376<DD><DL>
377<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/hadoop/mapreduce/RecordReader.html" title="class in org.apache.hadoop.mapreduce">RecordReader</A>&lt;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">K</A>,<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" title="type parameter in SequenceFileRecordReader">V</A>&gt;</CODE></DL>
378</DD>
379<DD><DL>
380
381<DT><B>Throws:</B>
382<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>
383</DD>
384</DL>
385<!-- ========= END OF CLASS DATA ========= -->
386<HR>
387
388
389<!-- ======= START OF BOTTOM NAVBAR ====== -->
390<A NAME="navbar_bottom"><!-- --></A>
391<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
392<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
393<TR>
394<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
395<A NAME="navbar_bottom_firstrow"><!-- --></A>
396<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
397  <TR ALIGN="center" VALIGN="top">
398  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
399  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
400  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
401  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SequenceFileRecordReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
402  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
403  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
404  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
405  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
406  </TR>
407</TABLE>
408</TD>
409<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
410</EM>
411</TD>
412</TR>
413
414<TR>
415<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
416&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>PREV CLASS</B></A>&nbsp;
417&nbsp;<A HREF="../../../../../../org/apache/hadoop/mapreduce/lib/input/TextInputFormat.html" title="class in org.apache.hadoop.mapreduce.lib.input"><B>NEXT CLASS</B></A></FONT></TD>
418<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
419  <A HREF="../../../../../../index.html?org/apache/hadoop/mapreduce/lib/input/SequenceFileRecordReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
420&nbsp;<A HREF="SequenceFileRecordReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
421&nbsp;<SCRIPT type="text/javascript">
422  <!--
423  if(window==top) {
424    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
425  }
426  //-->
427</SCRIPT>
428<NOSCRIPT>
429  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
430</NOSCRIPT>
431
432
433</FONT></TD>
434</TR>
435<TR>
436<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
437  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
438<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
439DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
440</TR>
441</TABLE>
442<A NAME="skip-navbar_bottom"></A>
443<!-- ======== END OF BOTTOM NAVBAR ======= -->
444
445<HR>
446Copyright &copy; 2009 The Apache Software Foundation
447</BODY>
448</HTML>
Note: See TracBrowser for help on using the repository browser.