[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:57 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | InputSampler (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="InputSampler (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/InputSampler.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/lib/IdentityReducer.html" title="class in org.apache.hadoop.mapred.lib"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.IntervalSampler.html" title="class in org.apache.hadoop.mapred.lib"><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/lib/InputSampler.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="InputSampler.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.lib</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class InputSampler<K,V></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.lib.InputSampler<K,V></B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A>, <A HREF="../../../../../org/apache/hadoop/util/Tool.html" title="interface in org.apache.hadoop.util">Tool</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>InputSampler<K,V></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/util/Tool.html" title="interface in org.apache.hadoop.util">Tool</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | Utility for collecting samples and writing a partition file for |
---|
| 108 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/TotalOrderPartitioner.html" title="class in org.apache.hadoop.mapred.lib"><CODE>TotalOrderPartitioner</CODE></A>. |
---|
| 109 | <P> |
---|
| 110 | |
---|
| 111 | <P> |
---|
| 112 | <HR> |
---|
| 113 | |
---|
| 114 | <P> |
---|
| 115 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 116 | |
---|
| 117 | <A NAME="nested_class_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>Nested Class 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>static class</CODE></FONT></TD> |
---|
| 126 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.IntervalSampler.html" title="class in org.apache.hadoop.mapred.lib">InputSampler.IntervalSampler</A><<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.IntervalSampler.html" title="type parameter in InputSampler.IntervalSampler">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.IntervalSampler.html" title="type parameter in InputSampler.IntervalSampler">V</A>></B></CODE> |
---|
| 127 | |
---|
| 128 | <BR> |
---|
| 129 | Sample from s splits at regular intervals.</TD> |
---|
| 130 | </TR> |
---|
| 131 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 132 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 133 | <CODE>static class</CODE></FONT></TD> |
---|
| 134 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.RandomSampler.html" title="class in org.apache.hadoop.mapred.lib">InputSampler.RandomSampler</A><<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.RandomSampler.html" title="type parameter in InputSampler.RandomSampler">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.RandomSampler.html" title="type parameter in InputSampler.RandomSampler">V</A>></B></CODE> |
---|
| 135 | |
---|
| 136 | <BR> |
---|
| 137 | Sample from random points in the input.</TD> |
---|
| 138 | </TR> |
---|
| 139 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 140 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 141 | <CODE>static interface</CODE></FONT></TD> |
---|
| 142 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.Sampler.html" title="interface in org.apache.hadoop.mapred.lib">InputSampler.Sampler</A><<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.Sampler.html" title="type parameter in InputSampler.Sampler">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.Sampler.html" title="type parameter in InputSampler.Sampler">V</A>></B></CODE> |
---|
| 143 | |
---|
| 144 | <BR> |
---|
| 145 | Interface to sample using an <A HREF="../../../../../org/apache/hadoop/mapred/InputFormat.html" title="interface in org.apache.hadoop.mapred"><CODE>InputFormat</CODE></A>.</TD> |
---|
| 146 | </TR> |
---|
| 147 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 148 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 149 | <CODE>static class</CODE></FONT></TD> |
---|
| 150 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.SplitSampler.html" title="class in org.apache.hadoop.mapred.lib">InputSampler.SplitSampler</A><<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.SplitSampler.html" title="type parameter in InputSampler.SplitSampler">K</A>,<A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.SplitSampler.html" title="type parameter in InputSampler.SplitSampler">V</A>></B></CODE> |
---|
| 151 | |
---|
| 152 | <BR> |
---|
| 153 | Samples the first n records from s splits.</TD> |
---|
| 154 | </TR> |
---|
| 155 | </TABLE> |
---|
| 156 | |
---|
| 157 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 158 | |
---|
| 159 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 160 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 161 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 162 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 163 | <B>Constructor Summary</B></FONT></TH> |
---|
| 164 | </TR> |
---|
| 165 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 166 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#InputSampler(org.apache.hadoop.mapred.JobConf)">InputSampler</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</CODE> |
---|
| 167 | |
---|
| 168 | <BR> |
---|
| 169 | </TD> |
---|
| 170 | </TR> |
---|
| 171 | </TABLE> |
---|
| 172 | |
---|
| 173 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 174 | |
---|
| 175 | <A NAME="method_summary"><!-- --></A> |
---|
| 176 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 177 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 178 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 179 | <B>Method Summary</B></FONT></TH> |
---|
| 180 | </TR> |
---|
| 181 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 183 | <CODE> <A HREF="../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A></CODE></FONT></TD> |
---|
| 184 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#getConf()">getConf</A></B>()</CODE> |
---|
| 185 | |
---|
| 186 | <BR> |
---|
| 187 | Return the configuration used by this object.</TD> |
---|
| 188 | </TR> |
---|
| 189 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 190 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 191 | <CODE>static void</CODE></FONT></TD> |
---|
| 192 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#main(java.lang.String[])">main</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>[] args)</CODE> |
---|
| 193 | |
---|
| 194 | <BR> |
---|
| 195 | </TD> |
---|
| 196 | </TR> |
---|
| 197 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 199 | <CODE> int</CODE></FONT></TD> |
---|
| 200 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#run(java.lang.String[])">run</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>[] args)</CODE> |
---|
| 201 | |
---|
| 202 | <BR> |
---|
| 203 | Driver for InputSampler from the command line.</TD> |
---|
| 204 | </TR> |
---|
| 205 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 206 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 207 | <CODE> void</CODE></FONT></TD> |
---|
| 208 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#setConf(org.apache.hadoop.conf.Configuration)">setConf</A></B>(<A HREF="../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 209 | |
---|
| 210 | <BR> |
---|
| 211 | Set the configuration to be used by this object.</TD> |
---|
| 212 | </TR> |
---|
| 213 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 214 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 215 | <CODE>static |
---|
| 216 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
---|
| 217 | <TR ALIGN="right" VALIGN=""> |
---|
| 218 | <TD NOWRAP><FONT SIZE="-1"> |
---|
| 219 | <CODE><K,V> void</CODE></FONT></TD> |
---|
| 220 | </TR> |
---|
| 221 | </TABLE> |
---|
| 222 | </CODE></FONT></TD> |
---|
| 223 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#writePartitionFile(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.InputSampler.Sampler)">writePartitionFile</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job, |
---|
| 224 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.Sampler.html" title="interface in org.apache.hadoop.mapred.lib">InputSampler.Sampler</A><K,V> sampler)</CODE> |
---|
| 225 | |
---|
| 226 | <BR> |
---|
| 227 | Write a partition file for the given job, using the Sampler provided.</TD> |
---|
| 228 | </TR> |
---|
| 229 | </TABLE> |
---|
| 230 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 231 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 232 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 233 | <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> |
---|
| 234 | </TR> |
---|
| 235 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 236 | <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> |
---|
| 237 | </TR> |
---|
| 238 | </TABLE> |
---|
| 239 | |
---|
| 240 | <P> |
---|
| 241 | |
---|
| 242 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 243 | |
---|
| 244 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 245 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 246 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 247 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 248 | <B>Constructor Detail</B></FONT></TH> |
---|
| 249 | </TR> |
---|
| 250 | </TABLE> |
---|
| 251 | |
---|
| 252 | <A NAME="InputSampler(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
| 253 | InputSampler</H3> |
---|
| 254 | <PRE> |
---|
| 255 | public <B>InputSampler</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</PRE> |
---|
| 256 | <DL> |
---|
| 257 | </DL> |
---|
| 258 | |
---|
| 259 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 260 | |
---|
| 261 | <A NAME="method_detail"><!-- --></A> |
---|
| 262 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 263 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 264 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 265 | <B>Method Detail</B></FONT></TH> |
---|
| 266 | </TR> |
---|
| 267 | </TABLE> |
---|
| 268 | |
---|
| 269 | <A NAME="getConf()"><!-- --></A><H3> |
---|
| 270 | getConf</H3> |
---|
| 271 | <PRE> |
---|
| 272 | public <A HREF="../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> <B>getConf</B>()</PRE> |
---|
| 273 | <DL> |
---|
| 274 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html#getConf()">Configurable</A></CODE></B></DD> |
---|
| 275 | <DD>Return the configuration used by this object. |
---|
| 276 | <P> |
---|
| 277 | <DD><DL> |
---|
| 278 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html#getConf()">getConf</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></CODE></DL> |
---|
| 279 | </DD> |
---|
| 280 | <DD><DL> |
---|
| 281 | </DL> |
---|
| 282 | </DD> |
---|
| 283 | </DL> |
---|
| 284 | <HR> |
---|
| 285 | |
---|
| 286 | <A NAME="setConf(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 287 | setConf</H3> |
---|
| 288 | <PRE> |
---|
| 289 | public void <B>setConf</B>(<A HREF="../../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 290 | <DL> |
---|
| 291 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html#setConf(org.apache.hadoop.conf.Configuration)">Configurable</A></CODE></B></DD> |
---|
| 292 | <DD>Set the configuration to be used by this object. |
---|
| 293 | <P> |
---|
| 294 | <DD><DL> |
---|
| 295 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html#setConf(org.apache.hadoop.conf.Configuration)">setConf</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/hadoop/conf/Configurable.html" title="interface in org.apache.hadoop.conf">Configurable</A></CODE></DL> |
---|
| 296 | </DD> |
---|
| 297 | <DD><DL> |
---|
| 298 | </DL> |
---|
| 299 | </DD> |
---|
| 300 | </DL> |
---|
| 301 | <HR> |
---|
| 302 | |
---|
| 303 | <A NAME="writePartitionFile(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.InputSampler.Sampler)"><!-- --></A><H3> |
---|
| 304 | writePartitionFile</H3> |
---|
| 305 | <PRE> |
---|
| 306 | public static <K,V> void <B>writePartitionFile</B>(<A HREF="../../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> job, |
---|
| 307 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.Sampler.html" title="interface in org.apache.hadoop.mapred.lib">InputSampler.Sampler</A><K,V> sampler) |
---|
| 308 | 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> |
---|
| 309 | <DL> |
---|
| 310 | <DD>Write a partition file for the given job, using the Sampler provided. |
---|
| 311 | Queries the sampler for a sample keyset, sorts by the output key |
---|
| 312 | comparator, selects the keys for each rank, and writes to the destination |
---|
| 313 | returned from <A HREF="../../../../../org/apache/hadoop/mapred/lib/TotalOrderPartitioner.html#getPartitionFile(org.apache.hadoop.mapred.JobConf)"><CODE>TotalOrderPartitioner.getPartitionFile(org.apache.hadoop.mapred.JobConf)</CODE></A>. |
---|
| 314 | <P> |
---|
| 315 | <DD><DL> |
---|
| 316 | </DL> |
---|
| 317 | </DD> |
---|
| 318 | <DD><DL> |
---|
| 319 | |
---|
| 320 | <DT><B>Throws:</B> |
---|
| 321 | <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> |
---|
| 322 | </DD> |
---|
| 323 | </DL> |
---|
| 324 | <HR> |
---|
| 325 | |
---|
| 326 | <A NAME="run(java.lang.String[])"><!-- --></A><H3> |
---|
| 327 | run</H3> |
---|
| 328 | <PRE> |
---|
| 329 | public int <B>run</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>[] args) |
---|
| 330 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE> |
---|
| 331 | <DL> |
---|
| 332 | <DD>Driver for InputSampler from the command line. |
---|
| 333 | Configures a JobConf instance and calls <A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.html#writePartitionFile(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.InputSampler.Sampler)"><CODE>writePartitionFile(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.InputSampler.Sampler<K, V>)</CODE></A>. |
---|
| 334 | <P> |
---|
| 335 | <DD><DL> |
---|
| 336 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/hadoop/util/Tool.html#run(java.lang.String[])">run</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/hadoop/util/Tool.html" title="interface in org.apache.hadoop.util">Tool</A></CODE></DL> |
---|
| 337 | </DD> |
---|
| 338 | <DD><DL> |
---|
| 339 | <DT><B>Parameters:</B><DD><CODE>args</CODE> - command specific arguments. |
---|
| 340 | <DT><B>Returns:</B><DD>exit code. |
---|
| 341 | <DT><B>Throws:</B> |
---|
| 342 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL> |
---|
| 343 | </DD> |
---|
| 344 | </DL> |
---|
| 345 | <HR> |
---|
| 346 | |
---|
| 347 | <A NAME="main(java.lang.String[])"><!-- --></A><H3> |
---|
| 348 | main</H3> |
---|
| 349 | <PRE> |
---|
| 350 | public static void <B>main</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>[] args) |
---|
| 351 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE> |
---|
| 352 | <DL> |
---|
| 353 | <DD><DL> |
---|
| 354 | </DL> |
---|
| 355 | </DD> |
---|
| 356 | <DD><DL> |
---|
| 357 | |
---|
| 358 | <DT><B>Throws:</B> |
---|
| 359 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL> |
---|
| 360 | </DD> |
---|
| 361 | </DL> |
---|
| 362 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 363 | <HR> |
---|
| 364 | |
---|
| 365 | |
---|
| 366 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 367 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 368 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 369 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 370 | <TR> |
---|
| 371 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 372 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 373 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 374 | <TR ALIGN="center" VALIGN="top"> |
---|
| 375 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 376 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 377 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 378 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InputSampler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 379 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 380 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 381 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 382 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 383 | </TR> |
---|
| 384 | </TABLE> |
---|
| 385 | </TD> |
---|
| 386 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 387 | </EM> |
---|
| 388 | </TD> |
---|
| 389 | </TR> |
---|
| 390 | |
---|
| 391 | <TR> |
---|
| 392 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 393 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/IdentityReducer.html" title="class in org.apache.hadoop.mapred.lib"><B>PREV CLASS</B></A> |
---|
| 394 | <A HREF="../../../../../org/apache/hadoop/mapred/lib/InputSampler.IntervalSampler.html" title="class in org.apache.hadoop.mapred.lib"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 395 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 396 | <A HREF="../../../../../index.html?org/apache/hadoop/mapred/lib/InputSampler.html" target="_top"><B>FRAMES</B></A> |
---|
| 397 | <A HREF="InputSampler.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 398 | <SCRIPT type="text/javascript"> |
---|
| 399 | <!-- |
---|
| 400 | if(window==top) { |
---|
| 401 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 402 | } |
---|
| 403 | //--> |
---|
| 404 | </SCRIPT> |
---|
| 405 | <NOSCRIPT> |
---|
| 406 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 407 | </NOSCRIPT> |
---|
| 408 | |
---|
| 409 | |
---|
| 410 | </FONT></TD> |
---|
| 411 | </TR> |
---|
| 412 | <TR> |
---|
| 413 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 414 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 415 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 416 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 417 | </TR> |
---|
| 418 | </TABLE> |
---|
| 419 | <A NAME="skip-navbar_bottom"></A> |
---|
| 420 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 421 | |
---|
| 422 | <HR> |
---|
| 423 | Copyright © 2009 The Apache Software Foundation |
---|
| 424 | </BODY> |
---|
| 425 | </HTML> |
---|