source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/streaming/StreamKeyValUtil.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: 23.5 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>
7StreamKeyValUtil (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="StreamKeyValUtil (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/StreamKeyValUtil.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/streaming/StreamJob.html" title="class in org.apache.hadoop.streaming"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/streaming/StreamUtil.html" title="class in org.apache.hadoop.streaming"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/streaming/StreamKeyValUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="StreamKeyValUtil.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;FIELD&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;FIELD&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.streaming</FONT>
92<BR>
93Class StreamKeyValUtil</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.streaming.StreamKeyValUtil</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>StreamKeyValUtil</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></DL>
101</PRE>
102
103<P>
104<HR>
105
106<P>
107
108<!-- ======== CONSTRUCTOR SUMMARY ======== -->
109
110<A NAME="constructor_summary"><!-- --></A>
111<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
114<B>Constructor Summary</B></FONT></TH>
115</TR>
116<TR BGCOLOR="white" CLASS="TableRowColor">
117<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#StreamKeyValUtil()">StreamKeyValUtil</A></B>()</CODE>
118
119<BR>
120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
121</TR>
122</TABLE>
123&nbsp;
124<!-- ========== METHOD SUMMARY =========== -->
125
126<A NAME="method_summary"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130<B>Method Summary</B></FONT></TH>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134<CODE>static&nbsp;int</CODE></FONT></TD>
135<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#findTab(byte[])">findTab</A></B>(byte[]&nbsp;utf)</CODE>
136
137<BR>
138&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the first occured tab in a UTF-8 encoded string</TD>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142<CODE>static&nbsp;int</CODE></FONT></TD>
143<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#findTab(byte[], int, int)">findTab</A></B>(byte[]&nbsp;utf,
144        int&nbsp;start,
145        int&nbsp;length)</CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the first occured tab in a UTF-8 encoded string</TD>
149</TR>
150<TR BGCOLOR="white" CLASS="TableRowColor">
151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152<CODE>static&nbsp;int</CODE></FONT></TD>
153<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#readLine(org.apache.hadoop.util.LineReader, org.apache.hadoop.io.Text)">readLine</A></B>(<A HREF="../../../../org/apache/hadoop/util/LineReader.html" title="class in org.apache.hadoop.util">LineReader</A>&nbsp;lineReader,
154         <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;out)</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read a utf8 encoded line from a data input stream.</TD>
158</TR>
159<TR BGCOLOR="white" CLASS="TableRowColor">
160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161<CODE>static&nbsp;void</CODE></FONT></TD>
162<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#splitKeyVal(byte[], int, int, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int)">splitKeyVal</A></B>(byte[]&nbsp;utf,
163            int&nbsp;start,
164            int&nbsp;length,
165            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
166            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
167            int&nbsp;splitPos)</CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;split a UTF-8 byte array into key and value
171 assuming that the delimilator is at splitpos.</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>static&nbsp;void</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#splitKeyVal(byte[], int, int, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int, int)">splitKeyVal</A></B>(byte[]&nbsp;utf,
177            int&nbsp;start,
178            int&nbsp;length,
179            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
180            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
181            int&nbsp;splitPos,
182            int&nbsp;separatorLength)</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;split a UTF-8 byte array into key and value
186 assuming that the delimilator is at splitpos.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>static&nbsp;void</CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#splitKeyVal(byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int)">splitKeyVal</A></B>(byte[]&nbsp;utf,
192            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
193            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
194            int&nbsp;splitPos)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;split a UTF-8 byte array into key and value
198 assuming that the delimilator is at splitpos.</TD>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202<CODE>static&nbsp;void</CODE></FONT></TD>
203<TD><CODE><B><A HREF="../../../../org/apache/hadoop/streaming/StreamKeyValUtil.html#splitKeyVal(byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int, int)">splitKeyVal</A></B>(byte[]&nbsp;utf,
204            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
205            <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
206            int&nbsp;splitPos,
207            int&nbsp;separatorLength)</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;split a UTF-8 byte array into key and value
211 assuming that the delimilator is at splitpos.</TD>
212</TR>
213</TABLE>
214&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
215<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
216<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
217<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>
218</TR>
219<TR BGCOLOR="white" CLASS="TableRowColor">
220<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>
221</TR>
222</TABLE>
223&nbsp;
224<P>
225
226<!-- ========= CONSTRUCTOR DETAIL ======== -->
227
228<A NAME="constructor_detail"><!-- --></A>
229<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
230<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
231<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
232<B>Constructor Detail</B></FONT></TH>
233</TR>
234</TABLE>
235
236<A NAME="StreamKeyValUtil()"><!-- --></A><H3>
237StreamKeyValUtil</H3>
238<PRE>
239public <B>StreamKeyValUtil</B>()</PRE>
240<DL>
241</DL>
242
243<!-- ============ METHOD DETAIL ========== -->
244
245<A NAME="method_detail"><!-- --></A>
246<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
247<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
248<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
249<B>Method Detail</B></FONT></TH>
250</TR>
251</TABLE>
252
253<A NAME="findTab(byte[], int, int)"><!-- --></A><H3>
254findTab</H3>
255<PRE>
256public static int <B>findTab</B>(byte[]&nbsp;utf,
257                          int&nbsp;start,
258                          int&nbsp;length)</PRE>
259<DL>
260<DD>Find the first occured tab in a UTF-8 encoded string
261<P>
262<DD><DL>
263<DT><B>Parameters:</B><DD><CODE>utf</CODE> - a byte array containing a UTF-8 encoded string<DD><CODE>start</CODE> - starting offset<DD><CODE>length</CODE> - no. of bytes
264<DT><B>Returns:</B><DD>position that first tab occures otherwise -1</DL>
265</DD>
266</DL>
267<HR>
268
269<A NAME="findTab(byte[])"><!-- --></A><H3>
270findTab</H3>
271<PRE>
272public static int <B>findTab</B>(byte[]&nbsp;utf)</PRE>
273<DL>
274<DD>Find the first occured tab in a UTF-8 encoded string
275<P>
276<DD><DL>
277<DT><B>Parameters:</B><DD><CODE>utf</CODE> - a byte array containing a UTF-8 encoded string
278<DT><B>Returns:</B><DD>position that first tab occures otherwise -1</DL>
279</DD>
280</DL>
281<HR>
282
283<A NAME="splitKeyVal(byte[], int, int, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int, int)"><!-- --></A><H3>
284splitKeyVal</H3>
285<PRE>
286public static void <B>splitKeyVal</B>(byte[]&nbsp;utf,
287                               int&nbsp;start,
288                               int&nbsp;length,
289                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
290                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
291                               int&nbsp;splitPos,
292                               int&nbsp;separatorLength)
293                        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>
294<DL>
295<DD>split a UTF-8 byte array into key and value
296 assuming that the delimilator is at splitpos.
297<P>
298<DD><DL>
299<DT><B>Parameters:</B><DD><CODE>utf</CODE> - utf-8 encoded string<DD><CODE>start</CODE> - starting offset<DD><CODE>length</CODE> - no. of bytes<DD><CODE>key</CODE> - contains key upon the method is returned<DD><CODE>val</CODE> - contains value upon the method is returned<DD><CODE>splitPos</CODE> - the split pos<DD><CODE>separatorLength</CODE> - the length of the separator between key and value
300<DT><B>Throws:</B>
301<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>
302</DD>
303</DL>
304<HR>
305
306<A NAME="splitKeyVal(byte[], int, int, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int)"><!-- --></A><H3>
307splitKeyVal</H3>
308<PRE>
309public static void <B>splitKeyVal</B>(byte[]&nbsp;utf,
310                               int&nbsp;start,
311                               int&nbsp;length,
312                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
313                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
314                               int&nbsp;splitPos)
315                        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>
316<DL>
317<DD>split a UTF-8 byte array into key and value
318 assuming that the delimilator is at splitpos.
319<P>
320<DD><DL>
321<DT><B>Parameters:</B><DD><CODE>utf</CODE> - utf-8 encoded string<DD><CODE>start</CODE> - starting offset<DD><CODE>length</CODE> - no. of bytes<DD><CODE>key</CODE> - contains key upon the method is returned<DD><CODE>val</CODE> - contains value upon the method is returned<DD><CODE>splitPos</CODE> - the split pos
322<DT><B>Throws:</B>
323<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>
324</DD>
325</DL>
326<HR>
327
328<A NAME="splitKeyVal(byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int, int)"><!-- --></A><H3>
329splitKeyVal</H3>
330<PRE>
331public static void <B>splitKeyVal</B>(byte[]&nbsp;utf,
332                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
333                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
334                               int&nbsp;splitPos,
335                               int&nbsp;separatorLength)
336                        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>
337<DL>
338<DD>split a UTF-8 byte array into key and value
339 assuming that the delimilator is at splitpos.
340<P>
341<DD><DL>
342<DT><B>Parameters:</B><DD><CODE>utf</CODE> - utf-8 encoded string<DD><CODE>key</CODE> - contains key upon the method is returned<DD><CODE>val</CODE> - contains value upon the method is returned<DD><CODE>splitPos</CODE> - the split pos<DD><CODE>separatorLength</CODE> - the length of the separator between key and value
343<DT><B>Throws:</B>
344<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>
345</DD>
346</DL>
347<HR>
348
349<A NAME="splitKeyVal(byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, int)"><!-- --></A><H3>
350splitKeyVal</H3>
351<PRE>
352public static void <B>splitKeyVal</B>(byte[]&nbsp;utf,
353                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;key,
354                               <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;val,
355                               int&nbsp;splitPos)
356                        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>
357<DL>
358<DD>split a UTF-8 byte array into key and value
359 assuming that the delimilator is at splitpos.
360<P>
361<DD><DL>
362<DT><B>Parameters:</B><DD><CODE>utf</CODE> - utf-8 encoded string<DD><CODE>key</CODE> - contains key upon the method is returned<DD><CODE>val</CODE> - contains value upon the method is returned<DD><CODE>splitPos</CODE> - the split pos
363<DT><B>Throws:</B>
364<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>
365</DD>
366</DL>
367<HR>
368
369<A NAME="readLine(org.apache.hadoop.util.LineReader, org.apache.hadoop.io.Text)"><!-- --></A><H3>
370readLine</H3>
371<PRE>
372public static int <B>readLine</B>(<A HREF="../../../../org/apache/hadoop/util/LineReader.html" title="class in org.apache.hadoop.util">LineReader</A>&nbsp;lineReader,
373                           <A HREF="../../../../org/apache/hadoop/io/Text.html" title="class in org.apache.hadoop.io">Text</A>&nbsp;out)
374                    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>
375<DL>
376<DD>Read a utf8 encoded line from a data input stream.
377<P>
378<DD><DL>
379<DT><B>Parameters:</B><DD><CODE>lineReader</CODE> - LineReader to read the line from.<DD><CODE>out</CODE> - Text to read into
380<DT><B>Returns:</B><DD>number of bytes read
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/StreamKeyValUtil.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/streaming/StreamJob.html" title="class in org.apache.hadoop.streaming"><B>PREV CLASS</B></A>&nbsp;
417&nbsp;<A HREF="../../../../org/apache/hadoop/streaming/StreamUtil.html" title="class in org.apache.hadoop.streaming"><B>NEXT CLASS</B></A></FONT></TD>
418<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
419  <A HREF="../../../../index.html?org/apache/hadoop/streaming/StreamKeyValUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
420&nbsp;<A HREF="StreamKeyValUtil.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;FIELD&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;FIELD&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.