kyotocabinet-java 0.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.document +5 -0
  2. data/Gemfile +15 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.rdoc +19 -0
  5. data/Rakefile +62 -0
  6. data/VERSION +1 -0
  7. data/ext/kyotocabinet-java/.gitignore +2 -0
  8. data/ext/kyotocabinet-java/COPYING +674 -0
  9. data/ext/kyotocabinet-java/Cursor.java +268 -0
  10. data/ext/kyotocabinet-java/DB.java +650 -0
  11. data/ext/kyotocabinet-java/Error.java +257 -0
  12. data/ext/kyotocabinet-java/FileProcessor.java +42 -0
  13. data/ext/kyotocabinet-java/Loader.java +60 -0
  14. data/ext/kyotocabinet-java/Makefile.in +246 -0
  15. data/ext/kyotocabinet-java/MapReduce.java +127 -0
  16. data/ext/kyotocabinet-java/README +26 -0
  17. data/ext/kyotocabinet-java/Test.java +1494 -0
  18. data/ext/kyotocabinet-java/Utility.java +131 -0
  19. data/ext/kyotocabinet-java/VCmakefile +150 -0
  20. data/ext/kyotocabinet-java/ValueIterator.java +49 -0
  21. data/ext/kyotocabinet-java/Visitor.java +56 -0
  22. data/ext/kyotocabinet-java/configure.in +310 -0
  23. data/ext/kyotocabinet-java/doc/allclasses-frame.html +26 -0
  24. data/ext/kyotocabinet-java/doc/allclasses-noframe.html +26 -0
  25. data/ext/kyotocabinet-java/doc/constant-values.html +344 -0
  26. data/ext/kyotocabinet-java/doc/index-all.html +848 -0
  27. data/ext/kyotocabinet-java/doc/index.html +30 -0
  28. data/ext/kyotocabinet-java/doc/kyotocabinet/Cursor.html +711 -0
  29. data/ext/kyotocabinet-java/doc/kyotocabinet/DB.html +1674 -0
  30. data/ext/kyotocabinet-java/doc/kyotocabinet/Error.html +604 -0
  31. data/ext/kyotocabinet-java/doc/kyotocabinet/FileProcessor.html +210 -0
  32. data/ext/kyotocabinet-java/doc/kyotocabinet/MapReduce.html +461 -0
  33. data/ext/kyotocabinet-java/doc/kyotocabinet/Test.html +220 -0
  34. data/ext/kyotocabinet-java/doc/kyotocabinet/Utility.html +413 -0
  35. data/ext/kyotocabinet-java/doc/kyotocabinet/ValueIterator.html +221 -0
  36. data/ext/kyotocabinet-java/doc/kyotocabinet/Visitor.html +283 -0
  37. data/ext/kyotocabinet-java/doc/kyotocabinet/package-frame.html +33 -0
  38. data/ext/kyotocabinet-java/doc/kyotocabinet/package-summary.html +199 -0
  39. data/ext/kyotocabinet-java/doc/kyotocabinet/package-tree.html +141 -0
  40. data/ext/kyotocabinet-java/doc/overview-summary.html +285 -0
  41. data/ext/kyotocabinet-java/doc/overview-tree.html +145 -0
  42. data/ext/kyotocabinet-java/doc/package-list +1 -0
  43. data/ext/kyotocabinet-java/doc/resources/background.gif +0 -0
  44. data/ext/kyotocabinet-java/doc/resources/tab.gif +0 -0
  45. data/ext/kyotocabinet-java/doc/resources/titlebar.gif +0 -0
  46. data/ext/kyotocabinet-java/doc/resources/titlebar_end.gif +0 -0
  47. data/ext/kyotocabinet-java/doc/serialized-form.html +141 -0
  48. data/ext/kyotocabinet-java/doc/stylesheet.css +474 -0
  49. data/ext/kyotocabinet-java/example/KCDBEX1.java +44 -0
  50. data/ext/kyotocabinet-java/example/KCDBEX2.java +44 -0
  51. data/ext/kyotocabinet-java/example/Makefile +59 -0
  52. data/ext/kyotocabinet-java/kyotocabinet.cc +2187 -0
  53. data/ext/kyotocabinet-java/kyotocabinet_Cursor.h +157 -0
  54. data/ext/kyotocabinet-java/kyotocabinet_DB.h +353 -0
  55. data/ext/kyotocabinet-java/kyotocabinet_Error.h +49 -0
  56. data/ext/kyotocabinet-java/kyotocabinet_Error_XBROKEN.h +41 -0
  57. data/ext/kyotocabinet-java/kyotocabinet_Error_XDUPREC.h +41 -0
  58. data/ext/kyotocabinet-java/kyotocabinet_Error_XINVALID.h +41 -0
  59. data/ext/kyotocabinet-java/kyotocabinet_Error_XLOGIC.h +41 -0
  60. data/ext/kyotocabinet-java/kyotocabinet_Error_XMISC.h +41 -0
  61. data/ext/kyotocabinet-java/kyotocabinet_Error_XNOIMPL.h +41 -0
  62. data/ext/kyotocabinet-java/kyotocabinet_Error_XNOPERM.h +41 -0
  63. data/ext/kyotocabinet-java/kyotocabinet_Error_XNOREC.h +41 -0
  64. data/ext/kyotocabinet-java/kyotocabinet_Error_XNOREPOS.h +41 -0
  65. data/ext/kyotocabinet-java/kyotocabinet_Error_XSUCCESS.h +41 -0
  66. data/ext/kyotocabinet-java/kyotocabinet_Error_XSYSTEM.h +41 -0
  67. data/ext/kyotocabinet-java/kyotocabinet_MapReduce.h +33 -0
  68. data/ext/kyotocabinet-java/kyotocabinet_Utility.h +101 -0
  69. data/ext/kyotocabinet-java/kyotocabinet_ValueIterator.h +21 -0
  70. data/ext/kyotocabinet-java/overview.html +177 -0
  71. data/kyotocabinet-java.gemspec +129 -0
  72. data/lib/kyotocabinet-java.rb +141 -0
  73. data/lib/kyotocabinet-java/version.rb +5 -0
  74. metadata +222 -0
@@ -0,0 +1,220 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <!-- NewPage -->
3
+ <html lang="en">
4
+ <head>
5
+ <!-- Generated by javadoc (version 1.7.0_04) on Fri May 25 00:40:49 JST 2012 -->
6
+ <title>Test (kyotocabinet)</title>
7
+ <meta name="date" content="2012-05-25">
8
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
9
+ </head>
10
+ <body>
11
+ <script type="text/javascript"><!--
12
+ if (location.href.indexOf('is-external=true') == -1) {
13
+ parent.document.title="Test (kyotocabinet)";
14
+ }
15
+ //-->
16
+ </script>
17
+ <noscript>
18
+ <div>JavaScript is disabled on your browser.</div>
19
+ </noscript>
20
+ <!-- ========= START OF TOP NAVBAR ======= -->
21
+ <div class="topNav"><a name="navbar_top">
22
+ <!-- -->
23
+ </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24
+ <!-- -->
25
+ </a>
26
+ <ul class="navList" title="Navigation">
27
+ <li><a href="../overview-summary.html">Overview</a></li>
28
+ <li><a href="../kyotocabinet/package-summary.html">Package</a></li>
29
+ <li class="navBarCell1Rev">Class</li>
30
+ <li><a href="package-tree.html">Tree</a></li>
31
+ <li><a href="../index-all.html">Index</a></li>
32
+ </ul>
33
+ </div>
34
+ <div class="subNav">
35
+ <ul class="navList">
36
+ <li><a href="../kyotocabinet/MapReduce.html" title="class in kyotocabinet"><span class="strong">Prev Class</span></a></li>
37
+ <li><a href="../kyotocabinet/Utility.html" title="class in kyotocabinet"><span class="strong">Next Class</span></a></li>
38
+ </ul>
39
+ <ul class="navList">
40
+ <li><a href="../index.html?kyotocabinet/Test.html" target="_top">Frames</a></li>
41
+ <li><a href="Test.html" target="_top">No Frames</a></li>
42
+ </ul>
43
+ <ul class="navList" id="allclasses_navbar_top">
44
+ <li><a href="../allclasses-noframe.html">All Classes</a></li>
45
+ </ul>
46
+ <div>
47
+ <script type="text/javascript"><!--
48
+ allClassesLink = document.getElementById("allclasses_navbar_top");
49
+ if(window==top) {
50
+ allClassesLink.style.display = "block";
51
+ }
52
+ else {
53
+ allClassesLink.style.display = "none";
54
+ }
55
+ //-->
56
+ </script>
57
+ </div>
58
+ <div>
59
+ <ul class="subNavList">
60
+ <li>Summary:&nbsp;</li>
61
+ <li>Nested&nbsp;|&nbsp;</li>
62
+ <li>Field&nbsp;|&nbsp;</li>
63
+ <li>Constr&nbsp;|&nbsp;</li>
64
+ <li><a href="#method_summary">Method</a></li>
65
+ </ul>
66
+ <ul class="subNavList">
67
+ <li>Detail:&nbsp;</li>
68
+ <li>Field&nbsp;|&nbsp;</li>
69
+ <li>Constr&nbsp;|&nbsp;</li>
70
+ <li><a href="#method_detail">Method</a></li>
71
+ </ul>
72
+ </div>
73
+ <a name="skip-navbar_top">
74
+ <!-- -->
75
+ </a></div>
76
+ <!-- ========= END OF TOP NAVBAR ========= -->
77
+ <!-- ======== START OF CLASS DATA ======== -->
78
+ <div class="header">
79
+ <div class="subTitle">kyotocabinet</div>
80
+ <h2 title="Class Test" class="title">Class Test</h2>
81
+ </div>
82
+ <div class="contentContainer">
83
+ <ul class="inheritance">
84
+ <li>Object</li>
85
+ <li>
86
+ <ul class="inheritance">
87
+ <li>Test</li>
88
+ </ul>
89
+ </li>
90
+ </ul>
91
+ <div class="description">
92
+ <ul class="blockList">
93
+ <li class="blockList">
94
+ <hr>
95
+ <br>
96
+ <pre>public class <span class="strong">Test</span>
97
+ extends Object</pre>
98
+ <div class="block">Test cases.</div>
99
+ </li>
100
+ </ul>
101
+ </div>
102
+ <div class="summary">
103
+ <ul class="blockList">
104
+ <li class="blockList">
105
+ <!-- ========== METHOD SUMMARY =========== -->
106
+ <ul class="blockList">
107
+ <li class="blockList"><a name="method_summary">
108
+ <!-- -->
109
+ </a>
110
+ <h3>Method Summary</h3>
111
+ <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
112
+ <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
113
+ <tr>
114
+ <th class="colFirst" scope="col">Modifier and Type</th>
115
+ <th class="colLast" scope="col">Method and Description</th>
116
+ </tr>
117
+ <tr class="altColor">
118
+ <td class="colFirst"><code>static void</code></td>
119
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Test.html#main(java.lang.String[])">main</a></strong>(String[]&nbsp;args)</code>
120
+ <div class="block">main routine of the test command</div>
121
+ </td>
122
+ </tr>
123
+ </table>
124
+ <ul class="blockList">
125
+ <li class="blockList"><a name="methods_inherited_from_class_Object">
126
+ <!-- -->
127
+ </a>
128
+ <h3>Methods inherited from class&nbsp;Object</h3>
129
+ <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
130
+ </ul>
131
+ </li>
132
+ </ul>
133
+ </li>
134
+ </ul>
135
+ </div>
136
+ <div class="details">
137
+ <ul class="blockList">
138
+ <li class="blockList">
139
+ <!-- ============ METHOD DETAIL ========== -->
140
+ <ul class="blockList">
141
+ <li class="blockList"><a name="method_detail">
142
+ <!-- -->
143
+ </a>
144
+ <h3>Method Detail</h3>
145
+ <a name="main(java.lang.String[])">
146
+ <!-- -->
147
+ </a>
148
+ <ul class="blockListLast">
149
+ <li class="blockList">
150
+ <h4>main</h4>
151
+ <pre>public static&nbsp;void&nbsp;main(String[]&nbsp;args)</pre>
152
+ <div class="block">main routine of the test command</div>
153
+ </li>
154
+ </ul>
155
+ </li>
156
+ </ul>
157
+ </li>
158
+ </ul>
159
+ </div>
160
+ </div>
161
+ <!-- ========= END OF CLASS DATA ========= -->
162
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
163
+ <div class="bottomNav"><a name="navbar_bottom">
164
+ <!-- -->
165
+ </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
166
+ <!-- -->
167
+ </a>
168
+ <ul class="navList" title="Navigation">
169
+ <li><a href="../overview-summary.html">Overview</a></li>
170
+ <li><a href="../kyotocabinet/package-summary.html">Package</a></li>
171
+ <li class="navBarCell1Rev">Class</li>
172
+ <li><a href="package-tree.html">Tree</a></li>
173
+ <li><a href="../index-all.html">Index</a></li>
174
+ </ul>
175
+ </div>
176
+ <div class="subNav">
177
+ <ul class="navList">
178
+ <li><a href="../kyotocabinet/MapReduce.html" title="class in kyotocabinet"><span class="strong">Prev Class</span></a></li>
179
+ <li><a href="../kyotocabinet/Utility.html" title="class in kyotocabinet"><span class="strong">Next Class</span></a></li>
180
+ </ul>
181
+ <ul class="navList">
182
+ <li><a href="../index.html?kyotocabinet/Test.html" target="_top">Frames</a></li>
183
+ <li><a href="Test.html" target="_top">No Frames</a></li>
184
+ </ul>
185
+ <ul class="navList" id="allclasses_navbar_bottom">
186
+ <li><a href="../allclasses-noframe.html">All Classes</a></li>
187
+ </ul>
188
+ <div>
189
+ <script type="text/javascript"><!--
190
+ allClassesLink = document.getElementById("allclasses_navbar_bottom");
191
+ if(window==top) {
192
+ allClassesLink.style.display = "block";
193
+ }
194
+ else {
195
+ allClassesLink.style.display = "none";
196
+ }
197
+ //-->
198
+ </script>
199
+ </div>
200
+ <div>
201
+ <ul class="subNavList">
202
+ <li>Summary:&nbsp;</li>
203
+ <li>Nested&nbsp;|&nbsp;</li>
204
+ <li>Field&nbsp;|&nbsp;</li>
205
+ <li>Constr&nbsp;|&nbsp;</li>
206
+ <li><a href="#method_summary">Method</a></li>
207
+ </ul>
208
+ <ul class="subNavList">
209
+ <li>Detail:&nbsp;</li>
210
+ <li>Field&nbsp;|&nbsp;</li>
211
+ <li>Constr&nbsp;|&nbsp;</li>
212
+ <li><a href="#method_detail">Method</a></li>
213
+ </ul>
214
+ </div>
215
+ <a name="skip-navbar_bottom">
216
+ <!-- -->
217
+ </a></div>
218
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
219
+ </body>
220
+ </html>
@@ -0,0 +1,413 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <!-- NewPage -->
3
+ <html lang="en">
4
+ <head>
5
+ <!-- Generated by javadoc (version 1.7.0_04) on Fri May 25 00:40:49 JST 2012 -->
6
+ <title>Utility (kyotocabinet)</title>
7
+ <meta name="date" content="2012-05-25">
8
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
9
+ </head>
10
+ <body>
11
+ <script type="text/javascript"><!--
12
+ if (location.href.indexOf('is-external=true') == -1) {
13
+ parent.document.title="Utility (kyotocabinet)";
14
+ }
15
+ //-->
16
+ </script>
17
+ <noscript>
18
+ <div>JavaScript is disabled on your browser.</div>
19
+ </noscript>
20
+ <!-- ========= START OF TOP NAVBAR ======= -->
21
+ <div class="topNav"><a name="navbar_top">
22
+ <!-- -->
23
+ </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24
+ <!-- -->
25
+ </a>
26
+ <ul class="navList" title="Navigation">
27
+ <li><a href="../overview-summary.html">Overview</a></li>
28
+ <li><a href="../kyotocabinet/package-summary.html">Package</a></li>
29
+ <li class="navBarCell1Rev">Class</li>
30
+ <li><a href="package-tree.html">Tree</a></li>
31
+ <li><a href="../index-all.html">Index</a></li>
32
+ </ul>
33
+ </div>
34
+ <div class="subNav">
35
+ <ul class="navList">
36
+ <li><a href="../kyotocabinet/Test.html" title="class in kyotocabinet"><span class="strong">Prev Class</span></a></li>
37
+ <li><a href="../kyotocabinet/ValueIterator.html" title="class in kyotocabinet"><span class="strong">Next Class</span></a></li>
38
+ </ul>
39
+ <ul class="navList">
40
+ <li><a href="../index.html?kyotocabinet/Utility.html" target="_top">Frames</a></li>
41
+ <li><a href="Utility.html" target="_top">No Frames</a></li>
42
+ </ul>
43
+ <ul class="navList" id="allclasses_navbar_top">
44
+ <li><a href="../allclasses-noframe.html">All Classes</a></li>
45
+ </ul>
46
+ <div>
47
+ <script type="text/javascript"><!--
48
+ allClassesLink = document.getElementById("allclasses_navbar_top");
49
+ if(window==top) {
50
+ allClassesLink.style.display = "block";
51
+ }
52
+ else {
53
+ allClassesLink.style.display = "none";
54
+ }
55
+ //-->
56
+ </script>
57
+ </div>
58
+ <div>
59
+ <ul class="subNavList">
60
+ <li>Summary:&nbsp;</li>
61
+ <li>Nested&nbsp;|&nbsp;</li>
62
+ <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
63
+ <li>Constr&nbsp;|&nbsp;</li>
64
+ <li><a href="#method_summary">Method</a></li>
65
+ </ul>
66
+ <ul class="subNavList">
67
+ <li>Detail:&nbsp;</li>
68
+ <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
69
+ <li>Constr&nbsp;|&nbsp;</li>
70
+ <li><a href="#method_detail">Method</a></li>
71
+ </ul>
72
+ </div>
73
+ <a name="skip-navbar_top">
74
+ <!-- -->
75
+ </a></div>
76
+ <!-- ========= END OF TOP NAVBAR ========= -->
77
+ <!-- ======== START OF CLASS DATA ======== -->
78
+ <div class="header">
79
+ <div class="subTitle">kyotocabinet</div>
80
+ <h2 title="Class Utility" class="title">Class Utility</h2>
81
+ </div>
82
+ <div class="contentContainer">
83
+ <ul class="inheritance">
84
+ <li>Object</li>
85
+ <li>
86
+ <ul class="inheritance">
87
+ <li>Utility</li>
88
+ </ul>
89
+ </li>
90
+ </ul>
91
+ <div class="description">
92
+ <ul class="blockList">
93
+ <li class="blockList">
94
+ <hr>
95
+ <br>
96
+ <pre>public class <span class="strong">Utility</span>
97
+ extends Object</pre>
98
+ <div class="block">Utility functions.</div>
99
+ </li>
100
+ </ul>
101
+ </div>
102
+ <div class="summary">
103
+ <ul class="blockList">
104
+ <li class="blockList">
105
+ <!-- =========== FIELD SUMMARY =========== -->
106
+ <ul class="blockList">
107
+ <li class="blockList"><a name="field_summary">
108
+ <!-- -->
109
+ </a>
110
+ <h3>Field Summary</h3>
111
+ <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
112
+ <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
113
+ <tr>
114
+ <th class="colFirst" scope="col">Modifier and Type</th>
115
+ <th class="colLast" scope="col">Field and Description</th>
116
+ </tr>
117
+ <tr class="altColor">
118
+ <td class="colFirst"><code>static String</code></td>
119
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#VERSION">VERSION</a></strong></code>
120
+ <div class="block">The version information.</div>
121
+ </td>
122
+ </tr>
123
+ </table>
124
+ </li>
125
+ </ul>
126
+ <!-- ========== METHOD SUMMARY =========== -->
127
+ <ul class="blockList">
128
+ <li class="blockList"><a name="method_summary">
129
+ <!-- -->
130
+ </a>
131
+ <h3>Method Summary</h3>
132
+ <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
133
+ <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
134
+ <tr>
135
+ <th class="colFirst" scope="col">Modifier and Type</th>
136
+ <th class="colLast" scope="col">Method and Description</th>
137
+ </tr>
138
+ <tr class="altColor">
139
+ <td class="colFirst"><code>static double</code></td>
140
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#atof(java.lang.String)">atof</a></strong>(String&nbsp;str)</code>
141
+ <div class="block">Convert a string to a real number.</div>
142
+ </td>
143
+ </tr>
144
+ <tr class="rowColor">
145
+ <td class="colFirst"><code>static long</code></td>
146
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#atoi(java.lang.String)">atoi</a></strong>(String&nbsp;str)</code>
147
+ <div class="block">Convert a string with a metric prefix to an integer.</div>
148
+ </td>
149
+ </tr>
150
+ <tr class="altColor">
151
+ <td class="colFirst"><code>static long</code></td>
152
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#atoix(java.lang.String)">atoix</a></strong>(String&nbsp;str)</code>
153
+ <div class="block">Convert a string with a metric prefix to an integer.</div>
154
+ </td>
155
+ </tr>
156
+ <tr class="rowColor">
157
+ <td class="colFirst"><code>static long</code></td>
158
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#hash_fnv(byte[])">hash_fnv</a></strong>(byte[]&nbsp;data)</code>
159
+ <div class="block">Get the hash value of a byte array by FNV hashing.</div>
160
+ </td>
161
+ </tr>
162
+ <tr class="altColor">
163
+ <td class="colFirst"><code>static long</code></td>
164
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#hash_murmur(byte[])">hash_murmur</a></strong>(byte[]&nbsp;data)</code>
165
+ <div class="block">Get the hash value of a byte array by MurMur hashing.</div>
166
+ </td>
167
+ </tr>
168
+ <tr class="rowColor">
169
+ <td class="colFirst"><code>static long</code></td>
170
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#levdist(byte[], byte[])">levdist</a></strong>(byte[]&nbsp;a,
171
+ byte[]&nbsp;b)</code>
172
+ <div class="block">Calculate the levenshtein distance of two strings.</div>
173
+ </td>
174
+ </tr>
175
+ <tr class="altColor">
176
+ <td class="colFirst"><code>static long</code></td>
177
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#levdist(java.lang.String, java.lang.String)">levdist</a></strong>(String&nbsp;a,
178
+ String&nbsp;b)</code>
179
+ <div class="block">Calculate the levenshtein distance of two strings.</div>
180
+ </td>
181
+ </tr>
182
+ <tr class="rowColor">
183
+ <td class="colFirst"><code>static boolean</code></td>
184
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#remove_files_recursively(java.lang.String)">remove_files_recursively</a></strong>(String&nbsp;path)</code>
185
+ <div class="block">Remove a file or a directory recursively.</div>
186
+ </td>
187
+ </tr>
188
+ <tr class="altColor">
189
+ <td class="colFirst"><code>static double</code></td>
190
+ <td class="colLast"><code><strong><a href="../kyotocabinet/Utility.html#time()">time</a></strong>()</code>
191
+ <div class="block">Get the current time.</div>
192
+ </td>
193
+ </tr>
194
+ </table>
195
+ <ul class="blockList">
196
+ <li class="blockList"><a name="methods_inherited_from_class_Object">
197
+ <!-- -->
198
+ </a>
199
+ <h3>Methods inherited from class&nbsp;Object</h3>
200
+ <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
201
+ </ul>
202
+ </li>
203
+ </ul>
204
+ </li>
205
+ </ul>
206
+ </div>
207
+ <div class="details">
208
+ <ul class="blockList">
209
+ <li class="blockList">
210
+ <!-- ============ FIELD DETAIL =========== -->
211
+ <ul class="blockList">
212
+ <li class="blockList"><a name="field_detail">
213
+ <!-- -->
214
+ </a>
215
+ <h3>Field Detail</h3>
216
+ <a name="VERSION">
217
+ <!-- -->
218
+ </a>
219
+ <ul class="blockListLast">
220
+ <li class="blockList">
221
+ <h4>VERSION</h4>
222
+ <pre>public static final&nbsp;String VERSION</pre>
223
+ <div class="block">The version information.</div>
224
+ </li>
225
+ </ul>
226
+ </li>
227
+ </ul>
228
+ <!-- ============ METHOD DETAIL ========== -->
229
+ <ul class="blockList">
230
+ <li class="blockList"><a name="method_detail">
231
+ <!-- -->
232
+ </a>
233
+ <h3>Method Detail</h3>
234
+ <a name="atof(java.lang.String)">
235
+ <!-- -->
236
+ </a>
237
+ <ul class="blockList">
238
+ <li class="blockList">
239
+ <h4>atof</h4>
240
+ <pre>public static&nbsp;double&nbsp;atof(String&nbsp;str)</pre>
241
+ <div class="block">Convert a string to a real number.</div>
242
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - specifies the string.</dd>
243
+ <dt><span class="strong">Returns:</span></dt><dd>the real number. If the string does not contain numeric expression, 0.0 is
244
+ returned.</dd></dl>
245
+ </li>
246
+ </ul>
247
+ <a name="atoi(java.lang.String)">
248
+ <!-- -->
249
+ </a>
250
+ <ul class="blockList">
251
+ <li class="blockList">
252
+ <h4>atoi</h4>
253
+ <pre>public static&nbsp;long&nbsp;atoi(String&nbsp;str)</pre>
254
+ <div class="block">Convert a string with a metric prefix to an integer.</div>
255
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - the string.</dd>
256
+ <dt><span class="strong">Returns:</span></dt><dd>the integer. If the string does not contain numeric expression, 0 is returned.</dd></dl>
257
+ </li>
258
+ </ul>
259
+ <a name="atoix(java.lang.String)">
260
+ <!-- -->
261
+ </a>
262
+ <ul class="blockList">
263
+ <li class="blockList">
264
+ <h4>atoix</h4>
265
+ <pre>public static&nbsp;long&nbsp;atoix(String&nbsp;str)</pre>
266
+ <div class="block">Convert a string with a metric prefix to an integer.</div>
267
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - the string, which can be trailed by a binary metric prefix. "K", "M", "G", "T",
268
+ "P", and "E" are supported. They are case-insensitive.</dd>
269
+ <dt><span class="strong">Returns:</span></dt><dd>the integer. If the string does not contain numeric expression, 0 is returned. If
270
+ the integer overflows the domain, Long.MAX_VALUE or Long.MIN_VALUE is returned according to
271
+ the sign.</dd></dl>
272
+ </li>
273
+ </ul>
274
+ <a name="hash_fnv(byte[])">
275
+ <!-- -->
276
+ </a>
277
+ <ul class="blockList">
278
+ <li class="blockList">
279
+ <h4>hash_fnv</h4>
280
+ <pre>public static&nbsp;long&nbsp;hash_fnv(byte[]&nbsp;data)</pre>
281
+ <div class="block">Get the hash value of a byte array by FNV hashing.</div>
282
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array.</dd>
283
+ <dt><span class="strong">Returns:</span></dt><dd>the hash value.</dd></dl>
284
+ </li>
285
+ </ul>
286
+ <a name="hash_murmur(byte[])">
287
+ <!-- -->
288
+ </a>
289
+ <ul class="blockList">
290
+ <li class="blockList">
291
+ <h4>hash_murmur</h4>
292
+ <pre>public static&nbsp;long&nbsp;hash_murmur(byte[]&nbsp;data)</pre>
293
+ <div class="block">Get the hash value of a byte array by MurMur hashing.</div>
294
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - the byte array.</dd>
295
+ <dt><span class="strong">Returns:</span></dt><dd>the hash value.</dd></dl>
296
+ </li>
297
+ </ul>
298
+ <a name="levdist(byte[], byte[])">
299
+ <!-- -->
300
+ </a>
301
+ <ul class="blockList">
302
+ <li class="blockList">
303
+ <h4>levdist</h4>
304
+ <pre>public static&nbsp;long&nbsp;levdist(byte[]&nbsp;a,
305
+ byte[]&nbsp;b)</pre>
306
+ <div class="block">Calculate the levenshtein distance of two strings.</div>
307
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - one string.</dd><dd><code>b</code> - the other string.</dd>
308
+ <dt><span class="strong">Returns:</span></dt><dd>the levenshtein distance.</dd></dl>
309
+ </li>
310
+ </ul>
311
+ <a name="levdist(java.lang.String, java.lang.String)">
312
+ <!-- -->
313
+ </a>
314
+ <ul class="blockList">
315
+ <li class="blockList">
316
+ <h4>levdist</h4>
317
+ <pre>public static&nbsp;long&nbsp;levdist(String&nbsp;a,
318
+ String&nbsp;b)</pre>
319
+ <div class="block">Calculate the levenshtein distance of two strings.</div>
320
+ <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../kyotocabinet/Utility.html#levdist(byte[], byte[])"><code>levdist(byte[], byte[])</code></a></dd><dt><span class="strong">Note:</span></dt>
321
+ <dd>Equal to the original Utility.levdist method except that the parameters are treated
322
+ as UTF-8 strings.</dd></dl>
323
+ </li>
324
+ </ul>
325
+ <a name="remove_files_recursively(java.lang.String)">
326
+ <!-- -->
327
+ </a>
328
+ <ul class="blockList">
329
+ <li class="blockList">
330
+ <h4>remove_files_recursively</h4>
331
+ <pre>public static&nbsp;boolean&nbsp;remove_files_recursively(String&nbsp;path)</pre>
332
+ <div class="block">Remove a file or a directory recursively.</div>
333
+ <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - the path of a file or a directory.</dd>
334
+ <dt><span class="strong">Returns:</span></dt><dd>true on success, or false on failure.</dd></dl>
335
+ </li>
336
+ </ul>
337
+ <a name="time()">
338
+ <!-- -->
339
+ </a>
340
+ <ul class="blockListLast">
341
+ <li class="blockList">
342
+ <h4>time</h4>
343
+ <pre>public static&nbsp;double&nbsp;time()</pre>
344
+ <div class="block">Get the current time.</div>
345
+ <dl><dt><span class="strong">Returns:</span></dt><dd>the current time from the epoch in seconds.</dd></dl>
346
+ </li>
347
+ </ul>
348
+ </li>
349
+ </ul>
350
+ </li>
351
+ </ul>
352
+ </div>
353
+ </div>
354
+ <!-- ========= END OF CLASS DATA ========= -->
355
+ <!-- ======= START OF BOTTOM NAVBAR ====== -->
356
+ <div class="bottomNav"><a name="navbar_bottom">
357
+ <!-- -->
358
+ </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
359
+ <!-- -->
360
+ </a>
361
+ <ul class="navList" title="Navigation">
362
+ <li><a href="../overview-summary.html">Overview</a></li>
363
+ <li><a href="../kyotocabinet/package-summary.html">Package</a></li>
364
+ <li class="navBarCell1Rev">Class</li>
365
+ <li><a href="package-tree.html">Tree</a></li>
366
+ <li><a href="../index-all.html">Index</a></li>
367
+ </ul>
368
+ </div>
369
+ <div class="subNav">
370
+ <ul class="navList">
371
+ <li><a href="../kyotocabinet/Test.html" title="class in kyotocabinet"><span class="strong">Prev Class</span></a></li>
372
+ <li><a href="../kyotocabinet/ValueIterator.html" title="class in kyotocabinet"><span class="strong">Next Class</span></a></li>
373
+ </ul>
374
+ <ul class="navList">
375
+ <li><a href="../index.html?kyotocabinet/Utility.html" target="_top">Frames</a></li>
376
+ <li><a href="Utility.html" target="_top">No Frames</a></li>
377
+ </ul>
378
+ <ul class="navList" id="allclasses_navbar_bottom">
379
+ <li><a href="../allclasses-noframe.html">All Classes</a></li>
380
+ </ul>
381
+ <div>
382
+ <script type="text/javascript"><!--
383
+ allClassesLink = document.getElementById("allclasses_navbar_bottom");
384
+ if(window==top) {
385
+ allClassesLink.style.display = "block";
386
+ }
387
+ else {
388
+ allClassesLink.style.display = "none";
389
+ }
390
+ //-->
391
+ </script>
392
+ </div>
393
+ <div>
394
+ <ul class="subNavList">
395
+ <li>Summary:&nbsp;</li>
396
+ <li>Nested&nbsp;|&nbsp;</li>
397
+ <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
398
+ <li>Constr&nbsp;|&nbsp;</li>
399
+ <li><a href="#method_summary">Method</a></li>
400
+ </ul>
401
+ <ul class="subNavList">
402
+ <li>Detail:&nbsp;</li>
403
+ <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
404
+ <li>Constr&nbsp;|&nbsp;</li>
405
+ <li><a href="#method_detail">Method</a></li>
406
+ </ul>
407
+ </div>
408
+ <a name="skip-navbar_bottom">
409
+ <!-- -->
410
+ </a></div>
411
+ <!-- ======== END OF BOTTOM NAVBAR ======= -->
412
+ </body>
413
+ </html>