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:52 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | DefaultStringifier (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="DefaultStringifier (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/DefaultStringifier.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/io/DataOutputBuffer.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/io/DoubleWritable.html" title="class in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/hadoop/io/DefaultStringifier.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="DefaultStringifier.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: NESTED | 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.io</FONT> |
---|
92 | <BR> |
---|
93 | Class DefaultStringifier<T></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.io.DefaultStringifier<T></B> |
---|
97 | </PRE> |
---|
98 | <DL> |
---|
99 | <DT><DT><B>Type Parameters:</B><DD><CODE>T</CODE> - the class of the objects to stringify</DL> |
---|
100 | <DL> |
---|
101 | <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>, <A HREF="../../../../org/apache/hadoop/io/Stringifier.html" title="interface in org.apache.hadoop.io">Stringifier</A><T></DD> |
---|
102 | </DL> |
---|
103 | <HR> |
---|
104 | <DL> |
---|
105 | <DT><PRE>public class <B>DefaultStringifier<T></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/io/Stringifier.html" title="interface in org.apache.hadoop.io">Stringifier</A><T></DL> |
---|
106 | </PRE> |
---|
107 | |
---|
108 | <P> |
---|
109 | DefaultStringifier is the default implementation of the <A HREF="../../../../org/apache/hadoop/io/Stringifier.html" title="interface in org.apache.hadoop.io"><CODE>Stringifier</CODE></A> |
---|
110 | interface which stringifies the objects using base64 encoding of the |
---|
111 | serialized version of the objects. The <A HREF="../../../../org/apache/hadoop/io/serializer/Serializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serializer</CODE></A> and |
---|
112 | <A HREF="../../../../org/apache/hadoop/io/serializer/Deserializer.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Deserializer</CODE></A> are obtained from the <A HREF="../../../../org/apache/hadoop/io/serializer/SerializationFactory.html" title="class in org.apache.hadoop.io.serializer"><CODE>SerializationFactory</CODE></A>. |
---|
113 | <br> |
---|
114 | DefaultStringifier offers convenience methods to store/load objects to/from |
---|
115 | the configuration. |
---|
116 | <P> |
---|
117 | |
---|
118 | <P> |
---|
119 | <HR> |
---|
120 | |
---|
121 | <P> |
---|
122 | |
---|
123 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
124 | |
---|
125 | <A NAME="constructor_summary"><!-- --></A> |
---|
126 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
127 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
128 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
129 | <B>Constructor Summary</B></FONT></TH> |
---|
130 | </TR> |
---|
131 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
132 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#DefaultStringifier(org.apache.hadoop.conf.Configuration, java.lang.Class)">DefaultStringifier</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
133 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A>> c)</CODE> |
---|
134 | |
---|
135 | <BR> |
---|
136 | </TD> |
---|
137 | </TR> |
---|
138 | </TABLE> |
---|
139 | |
---|
140 | <!-- ========== METHOD SUMMARY =========== --> |
---|
141 | |
---|
142 | <A NAME="method_summary"><!-- --></A> |
---|
143 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
144 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
145 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
146 | <B>Method Summary</B></FONT></TH> |
---|
147 | </TR> |
---|
148 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
149 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
150 | <CODE> void</CODE></FONT></TD> |
---|
151 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#close()">close</A></B>()</CODE> |
---|
152 | |
---|
153 | <BR> |
---|
154 | Closes this object.</TD> |
---|
155 | </TR> |
---|
156 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
158 | <CODE> <A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A></CODE></FONT></TD> |
---|
159 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#fromString(java.lang.String)">fromString</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str)</CODE> |
---|
160 | |
---|
161 | <BR> |
---|
162 | Restores the object from its string representation.</TD> |
---|
163 | </TR> |
---|
164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
166 | <CODE>static |
---|
167 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
---|
168 | <TR ALIGN="right" VALIGN=""> |
---|
169 | <TD NOWRAP><FONT SIZE="-1"> |
---|
170 | <CODE><K> K</CODE></FONT></TD> |
---|
171 | </TR> |
---|
172 | </TABLE> |
---|
173 | </CODE></FONT></TD> |
---|
174 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#load(org.apache.hadoop.conf.Configuration, java.lang.String, java.lang.Class)">load</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
175 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName, |
---|
176 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><K> itemClass)</CODE> |
---|
177 | |
---|
178 | <BR> |
---|
179 | Restores the object from the configuration.</TD> |
---|
180 | </TR> |
---|
181 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
183 | <CODE>static |
---|
184 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
---|
185 | <TR ALIGN="right" VALIGN=""> |
---|
186 | <TD NOWRAP><FONT SIZE="-1"> |
---|
187 | <CODE><K> K[]</CODE></FONT></TD> |
---|
188 | </TR> |
---|
189 | </TABLE> |
---|
190 | </CODE></FONT></TD> |
---|
191 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#loadArray(org.apache.hadoop.conf.Configuration, java.lang.String, java.lang.Class)">loadArray</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
192 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName, |
---|
193 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><K> itemClass)</CODE> |
---|
194 | |
---|
195 | <BR> |
---|
196 | Restores the array of objects from the configuration.</TD> |
---|
197 | </TR> |
---|
198 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
200 | <CODE>static |
---|
201 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
---|
202 | <TR ALIGN="right" VALIGN=""> |
---|
203 | <TD NOWRAP><FONT SIZE="-1"> |
---|
204 | <CODE><K> void</CODE></FONT></TD> |
---|
205 | </TR> |
---|
206 | </TABLE> |
---|
207 | </CODE></FONT></TD> |
---|
208 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#store(org.apache.hadoop.conf.Configuration, K, java.lang.String)">store</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
209 | K item, |
---|
210 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName)</CODE> |
---|
211 | |
---|
212 | <BR> |
---|
213 | Stores the item in the configuration with the given keyName.</TD> |
---|
214 | </TR> |
---|
215 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
217 | <CODE>static |
---|
218 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
---|
219 | <TR ALIGN="right" VALIGN=""> |
---|
220 | <TD NOWRAP><FONT SIZE="-1"> |
---|
221 | <CODE><K> void</CODE></FONT></TD> |
---|
222 | </TR> |
---|
223 | </TABLE> |
---|
224 | </CODE></FONT></TD> |
---|
225 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#storeArray(org.apache.hadoop.conf.Configuration, K[], java.lang.String)">storeArray</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
226 | K[] items, |
---|
227 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName)</CODE> |
---|
228 | |
---|
229 | <BR> |
---|
230 | Stores the array of items in the configuration with the given keyName.</TD> |
---|
231 | </TR> |
---|
232 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
233 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
234 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
235 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html#toString(T)">toString</A></B>(<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A> obj)</CODE> |
---|
236 | |
---|
237 | <BR> |
---|
238 | Converts the object to a string representation</TD> |
---|
239 | </TR> |
---|
240 | </TABLE> |
---|
241 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
242 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
243 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
244 | <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> |
---|
245 | </TR> |
---|
246 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
247 | <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> |
---|
248 | </TR> |
---|
249 | </TABLE> |
---|
250 | |
---|
251 | <P> |
---|
252 | |
---|
253 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
254 | |
---|
255 | <A NAME="constructor_detail"><!-- --></A> |
---|
256 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
257 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
258 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
259 | <B>Constructor Detail</B></FONT></TH> |
---|
260 | </TR> |
---|
261 | </TABLE> |
---|
262 | |
---|
263 | <A NAME="DefaultStringifier(org.apache.hadoop.conf.Configuration, java.lang.Class)"><!-- --></A><H3> |
---|
264 | DefaultStringifier</H3> |
---|
265 | <PRE> |
---|
266 | public <B>DefaultStringifier</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
267 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A>> c)</PRE> |
---|
268 | <DL> |
---|
269 | </DL> |
---|
270 | |
---|
271 | <!-- ============ METHOD DETAIL ========== --> |
---|
272 | |
---|
273 | <A NAME="method_detail"><!-- --></A> |
---|
274 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
275 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
276 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
277 | <B>Method Detail</B></FONT></TH> |
---|
278 | </TR> |
---|
279 | </TABLE> |
---|
280 | |
---|
281 | <A NAME="fromString(java.lang.String)"><!-- --></A><H3> |
---|
282 | fromString</H3> |
---|
283 | <PRE> |
---|
284 | public <A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A> <B>fromString</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str) |
---|
285 | 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> |
---|
286 | <DL> |
---|
287 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html#fromString(java.lang.String)">Stringifier</A></CODE></B></DD> |
---|
288 | <DD>Restores the object from its string representation. |
---|
289 | <P> |
---|
290 | <DD><DL> |
---|
291 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html#fromString(java.lang.String)">fromString</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html" title="interface in org.apache.hadoop.io">Stringifier</A><<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A>></CODE></DL> |
---|
292 | </DD> |
---|
293 | <DD><DL> |
---|
294 | <DT><B>Parameters:</B><DD><CODE>str</CODE> - the string representation of the object |
---|
295 | <DT><B>Returns:</B><DD>restored object |
---|
296 | <DT><B>Throws:</B> |
---|
297 | <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> - if the object cannot be restored</DL> |
---|
298 | </DD> |
---|
299 | </DL> |
---|
300 | <HR> |
---|
301 | |
---|
302 | <A NAME="toString(java.lang.Object)"><!-- --></A><A NAME="toString(T)"><!-- --></A><H3> |
---|
303 | toString</H3> |
---|
304 | <PRE> |
---|
305 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A> obj) |
---|
306 | 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> |
---|
307 | <DL> |
---|
308 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html#toString(T)">Stringifier</A></CODE></B></DD> |
---|
309 | <DD>Converts the object to a string representation |
---|
310 | <P> |
---|
311 | <DD><DL> |
---|
312 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html#toString(T)">toString</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html" title="interface in org.apache.hadoop.io">Stringifier</A><<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A>></CODE></DL> |
---|
313 | </DD> |
---|
314 | <DD><DL> |
---|
315 | <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to convert |
---|
316 | <DT><B>Returns:</B><DD>the string representation of the object |
---|
317 | <DT><B>Throws:</B> |
---|
318 | <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> - if the object cannot be converted</DL> |
---|
319 | </DD> |
---|
320 | </DL> |
---|
321 | <HR> |
---|
322 | |
---|
323 | <A NAME="close()"><!-- --></A><H3> |
---|
324 | close</H3> |
---|
325 | <PRE> |
---|
326 | public void <B>close</B>() |
---|
327 | 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> |
---|
328 | <DL> |
---|
329 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html#close()">Stringifier</A></CODE></B></DD> |
---|
330 | <DD>Closes this object. |
---|
331 | <P> |
---|
332 | <DD><DL> |
---|
333 | <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/io/Stringifier.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Stringifier.html" title="interface in org.apache.hadoop.io">Stringifier</A><<A HREF="../../../../org/apache/hadoop/io/DefaultStringifier.html" title="type parameter in DefaultStringifier">T</A>></CODE></DL> |
---|
334 | </DD> |
---|
335 | <DD><DL> |
---|
336 | |
---|
337 | <DT><B>Throws:</B> |
---|
338 | <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> - if an I/O error occurs</DL> |
---|
339 | </DD> |
---|
340 | </DL> |
---|
341 | <HR> |
---|
342 | |
---|
343 | <A NAME="store(org.apache.hadoop.conf.Configuration,java.lang.Object,java.lang.String)"><!-- --></A><A NAME="store(org.apache.hadoop.conf.Configuration, K, java.lang.String)"><!-- --></A><H3> |
---|
344 | store</H3> |
---|
345 | <PRE> |
---|
346 | public static <K> void <B>store</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
347 | K item, |
---|
348 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName) |
---|
349 | 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> |
---|
350 | <DL> |
---|
351 | <DD>Stores the item in the configuration with the given keyName. |
---|
352 | <P> |
---|
353 | <DD><DL> |
---|
354 | </DL> |
---|
355 | </DD> |
---|
356 | <DD><DL> |
---|
357 | <DT><B>Type Parameters:</B><DD><CODE>K</CODE> - the class of the item<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to store<DD><CODE>item</CODE> - the object to be stored<DD><CODE>keyName</CODE> - the name of the key to use |
---|
358 | <DT><B>Throws:</B> |
---|
359 | <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> - : forwards Exceptions from the underlying |
---|
360 | <A HREF="../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> classes.</DL> |
---|
361 | </DD> |
---|
362 | </DL> |
---|
363 | <HR> |
---|
364 | |
---|
365 | <A NAME="load(org.apache.hadoop.conf.Configuration, java.lang.String, java.lang.Class)"><!-- --></A><H3> |
---|
366 | load</H3> |
---|
367 | <PRE> |
---|
368 | public static <K> K <B>load</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
369 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName, |
---|
370 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><K> itemClass) |
---|
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>Restores the object from the configuration. |
---|
374 | <P> |
---|
375 | <DD><DL> |
---|
376 | </DL> |
---|
377 | </DD> |
---|
378 | <DD><DL> |
---|
379 | <DT><B>Type Parameters:</B><DD><CODE>K</CODE> - the class of the item<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to use<DD><CODE>keyName</CODE> - the name of the key to use<DD><CODE>itemClass</CODE> - the class of the item |
---|
380 | <DT><B>Returns:</B><DD>restored object |
---|
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> - : forwards Exceptions from the underlying |
---|
383 | <A HREF="../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> classes.</DL> |
---|
384 | </DD> |
---|
385 | </DL> |
---|
386 | <HR> |
---|
387 | |
---|
388 | <A NAME="storeArray(org.apache.hadoop.conf.Configuration,java.lang.Object[],java.lang.String)"><!-- --></A><A NAME="storeArray(org.apache.hadoop.conf.Configuration, K[], java.lang.String)"><!-- --></A><H3> |
---|
389 | storeArray</H3> |
---|
390 | <PRE> |
---|
391 | public static <K> void <B>storeArray</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
392 | K[] items, |
---|
393 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName) |
---|
394 | 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> |
---|
395 | <DL> |
---|
396 | <DD>Stores the array of items in the configuration with the given keyName. |
---|
397 | <P> |
---|
398 | <DD><DL> |
---|
399 | </DL> |
---|
400 | </DD> |
---|
401 | <DD><DL> |
---|
402 | <DT><B>Type Parameters:</B><DD><CODE>K</CODE> - the class of the item<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to use<DD><CODE>items</CODE> - the objects to be stored<DD><CODE>keyName</CODE> - the name of the key to use |
---|
403 | <DT><B>Throws:</B> |
---|
404 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if the items array is empty |
---|
405 | <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> - : forwards Exceptions from the underlying |
---|
406 | <A HREF="../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> classes.</DL> |
---|
407 | </DD> |
---|
408 | </DL> |
---|
409 | <HR> |
---|
410 | |
---|
411 | <A NAME="loadArray(org.apache.hadoop.conf.Configuration, java.lang.String, java.lang.Class)"><!-- --></A><H3> |
---|
412 | loadArray</H3> |
---|
413 | <PRE> |
---|
414 | public static <K> K[] <B>loadArray</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
415 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyName, |
---|
416 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><K> itemClass) |
---|
417 | 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> |
---|
418 | <DL> |
---|
419 | <DD>Restores the array of objects from the configuration. |
---|
420 | <P> |
---|
421 | <DD><DL> |
---|
422 | </DL> |
---|
423 | </DD> |
---|
424 | <DD><DL> |
---|
425 | <DT><B>Type Parameters:</B><DD><CODE>K</CODE> - the class of the item<DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration to use<DD><CODE>keyName</CODE> - the name of the key to use<DD><CODE>itemClass</CODE> - the class of the item |
---|
426 | <DT><B>Returns:</B><DD>restored object |
---|
427 | <DT><B>Throws:</B> |
---|
428 | <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> - : forwards Exceptions from the underlying |
---|
429 | <A HREF="../../../../org/apache/hadoop/io/serializer/Serialization.html" title="interface in org.apache.hadoop.io.serializer"><CODE>Serialization</CODE></A> classes.</DL> |
---|
430 | </DD> |
---|
431 | </DL> |
---|
432 | <!-- ========= END OF CLASS DATA ========= --> |
---|
433 | <HR> |
---|
434 | |
---|
435 | |
---|
436 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
437 | <A NAME="navbar_bottom"><!-- --></A> |
---|
438 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
439 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
440 | <TR> |
---|
441 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
442 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
443 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
444 | <TR ALIGN="center" VALIGN="top"> |
---|
445 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
446 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
447 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
448 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultStringifier.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
449 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
450 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
451 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
452 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
453 | </TR> |
---|
454 | </TABLE> |
---|
455 | </TD> |
---|
456 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
457 | </EM> |
---|
458 | </TD> |
---|
459 | </TR> |
---|
460 | |
---|
461 | <TR> |
---|
462 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
463 | <A HREF="../../../../org/apache/hadoop/io/DataOutputBuffer.html" title="class in org.apache.hadoop.io"><B>PREV CLASS</B></A> |
---|
464 | <A HREF="../../../../org/apache/hadoop/io/DoubleWritable.html" title="class in org.apache.hadoop.io"><B>NEXT CLASS</B></A></FONT></TD> |
---|
465 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
466 | <A HREF="../../../../index.html?org/apache/hadoop/io/DefaultStringifier.html" target="_top"><B>FRAMES</B></A> |
---|
467 | <A HREF="DefaultStringifier.html" target="_top"><B>NO FRAMES</B></A> |
---|
468 | <SCRIPT type="text/javascript"> |
---|
469 | <!-- |
---|
470 | if(window==top) { |
---|
471 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
472 | } |
---|
473 | //--> |
---|
474 | </SCRIPT> |
---|
475 | <NOSCRIPT> |
---|
476 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
477 | </NOSCRIPT> |
---|
478 | |
---|
479 | |
---|
480 | </FONT></TD> |
---|
481 | </TR> |
---|
482 | <TR> |
---|
483 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
484 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
485 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
486 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
487 | </TR> |
---|
488 | </TABLE> |
---|
489 | <A NAME="skip-navbar_bottom"></A> |
---|
490 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
491 | |
---|
492 | <HR> |
---|
493 | Copyright © 2009 The Apache Software Foundation |
---|
494 | </BODY> |
---|
495 | </HTML> |
---|