1
項目Hadoop等有一噸的parameters,但所有的文檔被手動從XML產生,而不是從code到來。是否有Java註釋來生成參數文檔?
有沒有做一些的可以發這個文件的註釋的方法嗎?
public static final String MAP_SORT_SPILL_PERCENT = "mapreduce.map.sort.spill.percent";
<name>mapreduce.map.sort.spill.percent</name>
<value>0.80</value>
<description>The soft limit in the serialization buffer. Once reached, a
thread will begin to spill the contents to disk in the background. Note that
collection will not block if this threshold is exceeded while a spill is
already in progress, so spills may be larger than this threshold when it is
set to less than .5</description>
官方文檔這是一個參數一個函數,這是一個程序的外部參數。 – Alun
同樣的規則適用,對嗎?您仍然可以使用@param註釋將javadoc放在main()方法上。如果這不是你想要的,你能澄清更多的問題嗎? –