close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_delta.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Jul 8, 2008, 10:21:43 AM (17 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v21
|
v22
|
|
50 | 50 | }}} |
51 | 51 | !LogParserGo共宣告了以下幾個全域變數及方法: |
52 | | |
53 | | 1 HBaseConfiguration conf為重要的控制設定參數,其定義了很多方法可以設定或取得map reduce程式運作所需要的值 |
54 | | 2 定義 TABLE 為 "table.name",table.name為 name property |
55 | | 3 string !tableName 為資料表名稱 |
56 | | 4 Htable table 在定義一個HBase的操作變數 |
57 | | 5 class !MapClass 為實做map的一個內部類別 |
58 | | 6 Path[] !listPaths 是個可以列出指定路徑下的檔案和目錄,原本0.16 API即宣告 Deprecated,因此為了解決warning在此實做 |
59 | | 7 void !runMapReduce(String table, String dir) 跑MapReduce的程序 |
60 | | 8 void !creatTable(String table) 建立hbase的資料表 |
61 | | 9 void main(String[] args) main 函數 |
| 52 | 1. Item 1 |
| 53 | a. Item 1.a |
| 54 | a. Item 1.b |
| 55 | i. Item 1.b.i |
| 56 | i. Item 1.b.ii |
| 57 | 1. Item 2 |
| 58 | And numbered lists can also be given an explicit number: |
| 59 | 3. Item 3 |
| 60 | 1. HBaseConfiguration conf為重要的控制設定參數,其定義了很多方法可以設定或取得map reduce程式運作所需要的值 |
| 61 | 2. 定義 TABLE 為 "table.name",table.name為 name property |
| 62 | 3. String !tableName 為資料表名稱 |
| 63 | 4. Htable table 在定義一個HBase的操作變數 |
| 64 | 5. class !MapClass 為實做map的一個內部類別 |
| 65 | 6. Path[] !listPaths 是個可以列出指定路徑下的檔案和目錄,原本0.16 API即宣告 Deprecated,因此為了解決warning在此實做 |
| 66 | 7. void !runMapReduce(String table, String dir) 跑MapReduce的程序 |
| 67 | 8. void !creatTable(String table) 建立hbase的資料表 |
| 68 | 9. void main(String[] args) main 函數 |
62 | 69 | |
63 | 70 | 1~4為變數較為單純,之後將說明5~9的函數功能 |