Collected a small part, forget the time to come and check
Java--hadoop part
/**@param @param @param @param cacheipnettypefilepath* <br>[file cachefile need to upload HDFs, file for k-v form, multiple v with; separate]</br>* * <p><b>note: </B> This class is suitable for qualifying domain name delay statistics, if the average delay of all domain names this class does not apply, because the Reducer class uses a collection to converge, all domain names can cause memory overflow </p>* /
<P> is a separate paragraph (note and <br> line break, <pre> another paragraph comparison)
<B> is added black and bold
@param is the parameter
@author YANGHL Author
/***/
<i> is a tilted body that represents a path
/*** Creates a <code>Statement</code> object for sending* SQL statements to the database.* SQL statements Wit Hout parameters is normally* executed using <code>Statement</code> objects. If the same SQL statement* is executed many times, it could be more efficient to use a * <code>preparedstatement</co de> object.* <p>* Result sets created using the returned <code>statement</code>* object would by Defau Lt be type <code>type_forward_only</code>* and has a concurrency level of <code>concur_read_only</ Code>.* the holdability of the created result sets can be determined by* calling {@link#getHoldability}.**@returna new default <code>Statement</code> object*@exceptionSQLException If a database access error occurs* or This method was called on a closed connection*/
@return
@exception
{@link #getHoldability}. Add Link getholdability () A method of this package
/***/staticclassimplements writable, dbwritable {...}
========================
< Another method of <> representation in the > comment
========================
/** * <p>the basic service for managing a Set of JDBC drivers.<br>* <B>NOTE:</B> the { @link <code>datasource</code>} interface, new in the* JDBC 2.0 API, provides another Connect to a data source.* the use of a <code>DataSource</code> object is the preferred means of* connecting t o A data source.** <p>as part of its initialization, the <code>DriverManager</code> class will* attempt To load the driver classes referenced in the ' jdbc.drivers ' * system property. This allows a user to customize the JDBC drivers* used by their applications. For example in your* ~/.hotjava/properties file you might specify:* <pre>* <code>jdbc.drivers=foo.bah.driver : wombat.sql.driver:bad.taste.ourdriver</code>* </pre> */
===============================
"BR, P, Pre, code, B" label
<br> line break
<pre> one more paragraph
===============================
/*** A Tool interface that supports handling of generic command-line options.* * <P><CODE>TOOL</CODE> is the Map-reduce tool/application. * The tool/application should delegate the handling of * <a href= "{@Docroot}/.. /hadoop-project-dist/hadoop-common/commandsmanual.html#generic_options ">* Standard command-line options</a > to {@link Toolrunner#run (Tool, string[])} * and only handle its custom arguments.</p>* * <p>here are how a typical <c Ode>tool</code> is implemented:</p>* <p><blockquote><pre>* public class MyApp Extends configured implements Tool {* * public int run (string[] args) throws Exception {*//<code>Configuration< /code> processed by <code>toolrunner</code>* Configuration conf = getconf (); * *//Create a jobconf using t He processed <code>conf</code>* jobconf job = new jobconf (conf, myapp.class); * *//Process Custom Command-lin e options* path in = new Path (args[1]), * path out = new path (args[2]); * *//Specify various job-specific parameters * job . Setjobname ("My-app"); * Job.setinputpath (in); * Job.setoutputpath (out); * Job.setmapperclass (Mymapper.class); * Job.setreducerclass (Myreducer.class); * */Submit The job, then poll for progress until the job is complete* Jobclient.run Job (Job); * Return 0;*}* * public static void MaIn (string[] args) throws Exception {*//let <code>ToolRunner</code> handle generic command-line options * int res = Toolrunner.run (new Configuration (), New MyApp (), args); * * System.exit (RES); *}*}* </pre></blockquote> </p>* *@seegenericoptionsparser*@seeToolrunner*/
@InterfaceAudience. Public
@InterfaceStability. Stable
Public interface Tool extends configurable {
"<p><blockquote><pre>"
You can also draw tables, lists in code comments
/*** Rounding mode to round away from zero. Always increments the* digit prior to a non-zero discarded fraction. Note that this* rounding mode never decreases the magnitude of the calculated* value.**<p>example:*<table border& Gt;*<tr valign=top><th>input number</th>* <th>input rounded to one digit<br> with {@codeUp } rounding*<tr align=right><td>5.5</td> <td>6</td>*<tr align=right>< td>2.5</td> <td>3</td>*<tr align=right><td>1.6</td> <td>2</td> *<tr align=right><td>1.1</td> <td>2</td>*<tr align=right><td>1.0</td > <td>1</td>*<tr align=right><td>-1.0</td> <td>-1</td>*<tr align= right><td>-1.1</td> <td>-2</td>*<tr align=right><td>-1.6</td> <TD >-2</td>*<tr align=right><td>-2.5</td> <td>-3</td>*<tr align=right> <td>-5.5</td> <td>-6</td>*</table>*/
<ul><li>a</li><li>a</li><li>a</li>
</ul>
You can also "write code or profile contents" in the code comment {@code xxxx ...}
/*** This program uses Map/reduce to just run a distributed job where there is* no interaction between the tasks and each Task write a large unsorted* random binary sequence file of byteswritable.* in order for this program to generate data fo R Terasort with 10-byte keys* and 90-byte values, having the following config:* <pre>{@code* <?xml version= "1.0"? >* <?xml-stylesheet type= "text/xsl" href= "configuration.xsl"? >* < configuration>* <property>* <name>mapreduce.randomwriter.minkey</name>* <value>10</ value>* </property>* <property>* <name>mapreduce.randomwriter.maxkey</name>* <value >10</value>* </property>* <property>* <name>mapreduce.randomwriter.minvalue</name >* <value>90</value>* </property>* <property>* <name> mapreduce.randomwriter.maxvalue</name>* <value>90</value>* </property>* <property>* <name>mapreduce.randomwriter.totalbytes</name>* <value>1099511627776</value>* </ property>* </configuration>}</pre>* equivalently, {@linkRandomwriter} also supports all the above options* and ones supported by {@linkGenericoptionsparser} via the command-line.*/
Java Comment Code specification