File: command.html

package info (click to toggle)
kyotocabinet 1.2.80-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,448 kB
  • sloc: cpp: 59,354; ansic: 1,478; makefile: 1,202; ruby: 523; sh: 190; awk: 91; perl: 61
file content (902 lines) | stat: -rw-r--r-- 56,115 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="author" content="FAL Labs" />
<meta name="keywords" content="Kyoto Cabinet, kyotocabinet, database, DBM" />
<meta name="description" content="Specifications of command line utilities" />
<link rel="contents" href="./" />
<link rel="stylesheet" href="common.css" />
<link rel="icon" href="icon16.png" />
<link rev="made" href="mailto:info@fallabs.com" />
<title>Specificatoins of Command Line Utilities of Kyoto Cabinet</title>
</head>

<body>

<h1 id="headline">Specificatoins of Command Line Utilities of Kyoto Cabinet</h1>

<div class="note">Copyright (C) 2009-2012 FAL Labs</div>
<div class="note">Last Update: Fri, 04 Mar 2011 23:07:26 -0800</div>

<hr />

<p>This document describes how to use command line utilities.  They are useful to manage database contents and to test the library and its applications.</p>

<ol>
<li><a href="#kcutiltest">kcutiltest</a> : to test the utility functions.</li>
<li><a href="#kcutilmgr">kcutilmgr</a> : miscellaneous utilities.</li>
<li><a href="#kcprototest">kcprototest</a> : to test the prototype database.</li>
<li><a href="#kcstashtest">kcstashtest</a> : to test the stash database.</li>
<li><a href="#kccachetest">kccachetest</a> : to test the cache hash database.</li>
<li><a href="#kcgrasstest">kcgrasstest</a> : to test the cache tree database.</li>
<li><a href="#kchashtest">kchashtest</a> : to test the file hash database.</li>
<li><a href="#kchashmgr">kchashmgr</a> : to manage the file hash database.</li>
<li><a href="#kctreetest">kctreetest</a> : to test the file tree database.</li>
<li><a href="#kctreemgr">kctreemgr</a> : to manage the file tree database.</li>
<li><a href="#kcdirtest">kcdirtest</a> : to test the directory hash database.</li>
<li><a href="#kcdirmgr">kcdirmgr</a> : to manage the directory hash database.</li>
<li><a href="#kcforesttest">kcforesttest</a> : to test the directory tree database.</li>
<li><a href="#kcforestmgr">kcforestmgr</a> : to manage the directory tree database.</li>
<li><a href="#kcpolytest">kcpolytest</a> : to test the polymorphic database.</li>
<li><a href="#kcpolymgr">kcpolymgr</a> : to manage the polymorphic database.</li>
<li><a href="#kclangctest">kclangctest</a> : to test the C language binding.</li>
</ol>

<hr />

<h2 id="kcutiltest">kcutiltest</h2>

<p>The command `<code>kcutiltest</code>' is a utility for facility test and performance test of the utility functions.  This command is used in the following format.  `<var>rnum</var>' specifies the number of iterations.  `<var>path</var>' specifies the path of a file.</p>

<dl class="api">
<dt><code>kcutiltest mutex [-th <var>num</var>] [-iv <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of lock primitives.</dd>
<dt><code>kcutiltest cond [-th <var>num</var>] [-iv <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of condition variable primitives.</dd>
<dt><code>kcutiltest para [-th <var>num</var>] [-iv <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of parallel processing.</dd>
<dt><code>kcutiltest file [-th <var>num</var>] [-rnd] [-msiz <var>num</var>] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of the file system abstraction.</dd>
<dt><code>kcutiltest lhmap [-rnd] [-bnum <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of doubly-linked hash map.</dd>
<dt><code>kcutiltest thmap [-rnd] [-bnum <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of memory-saving hash map.</dd>
<dt><code>kcutiltest talist [-rnd] <var>rnum</var></code></dt>
<dd>Performs test of memory-saving array list.</dd>
<dt><code>kcutiltest misc <var>rnum</var></code></dt>
<dd>Performs test of miscellaneous mechanisms.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-iv <var>num</var></code> : specifies the interval between iterations.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-msiz <var>num</var></code> : specifies the size of the memory-mapped region.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcutilmgr">kcutilmgr</h2>

<p>The command `<code>kcutilmgr</code>' is a tool of miscellaneous utilities, and to show the configuration.  This command is used in the following format.  `<var>file</var>' specifies a input file.  If it is omitted, the standard input is read.  If it begins with "@", the trailing substring is treated as the input.  `<var>pattern</var>' specifies an matching pattern.</p>

<dl class="api">
<dt><code>kcutilmgr hex [-d] [<var>file</var>]</code></dt>
<dd>Performs hexadecimal encoding and its decoding.</dd>
<dt><code>kcutilmgr enc [-hex|-url|-quote] [-d] [<var>file</var>]</code></dt>
<dd>Performs Base64 encoding and its decoding.</dd>
<dt><code>kcutilmgr ciph [-key <var>str</var>] [<var>file</var>]</code></dt>
<dd>Performs Arcfour cipher and its decipher.</dd>
<dt><code>kcutilmgr comp [-def|-gz|-lzo|-lzma] [-d] [<var>file</var>]</code></dt>
<dd>Performs ZLIB encoding and its decoding.  By default, use the raw format.</dd>
<dt><code>kcutilmgr hash [-fnv|-path|-crc] [<var>file</var>]</code></dt>
<dd>Calculates the hash value.  By default, use MurMur hashing.</dd>
<dt><code>kcutilmgr regex [-alt <var>str</var>] [-ic] <var>pattern</var> [<var>file</var>]</code></dt>
<dd>Prints lines matching a regular expression.</dd>
<dt><code>kcutilmgr conf [-v|-i|-l|-p]</code></dt>
<dd>Shows the configuration of Kyoto Cabinet.</dd>
<dt><code>kcutilmgr version</code></dt>
<dd>Shows the version information of Kyoto Cabinet.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-d</code> : perform decoding (unescaping), not encoding (escaping).</li>
<li><code>-hex</code> : use hexadecimal encoding.</li>
<li><code>-url</code> : use URL encoding.</li>
<li><code>-quote</code> : use Quoted-printable encoding.</li>
<li><code>-key <var>str</var></code> : set the cipher key.</li>
<li><code>-def</code> : use the deflate format.</li>
<li><code>-gz</code> : use the gzip format.</li>
<li><code>-lzo</code> : use LZO encoding.</li>
<li><code>-lzma</code> : use LZMA encoding.</li>
<li><code>-fnv</code> : use FNV hashing.</li>
<li><code>-path</code> : use the path hashing of the directory database.</li>
<li><code>-crc</code> : calculate the CRC32 checksum.</li>
<li><code>-alt <var>str</var></code> : replaces matching substring with the alternative string.</li>
<li><code>-ic</code> : ignores difference between upper and lower cases.</li>
<li><code>-v</code> : show the version number of Kyoto Cabinet.</li>
<li><code>-i</code> : show options to include the headers of Tokyo Cabinet.</li>
<li><code>-l</code> : show options to link the library of Tokyo Cabinet.</li>
<li><code>-p</code> : show the directory path of the commands.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcprototest">kcprototest</h2>

<p>The command `<code>kcprototest</code>' is a utility for facility test and performance test of the prototype database.  This command is used in the following format.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kcprototest order [-tree] [-th <var>num</var>] [-rnd] [-etc] [-tran] <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kcprototest queue [-tree] [-th <var>num</var>] [-it <var>num</var>] [-rnd] <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kcprototest wicked [-tree] [-th <var>num</var>] [-it <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kcprototest tran [-tree] [-th <var>num</var>] [-it <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-tree</code> : test the prototype tree database instead of the prototype hash database.</li>
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcstashtest">kcstashtest</h2>

<p>The command `<code>kcstashtest</code>' is a utility for facility test and performance test of the stash database.  This command is used in the following format.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kccachetest order [-th <var>num</var>] [-rnd] [-etc] [-tran] [-bnum <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kccachetest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-bnum <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kccachetest wicked [-th <var>num</var>] [-it <var>num</var>] [-bnum <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kccachetest tran [-th <var>num</var>] [-it <var>num</var>] [-bnum <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kccachetest">kccachetest</h2>

<p>The command `<code>kccachetest</code>' is a utility for facility test and performance test of the cache hash database.  This command is used in the following format.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kccachetest order [-th <var>num</var>] [-rnd] [-etc] [-tran] [-tc] [-bnum <var>num</var>] [-capcnt <var>num</var>] [-capsiz <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kccachetest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-tc] [-bnum <var>num</var>] [-capcnt <var>num</var>] [-capsiz <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kccachetest wicked [-th <var>num</var>] [-it <var>num</var>] [-tc] [-bnum <var>num</var>] [-capcnt <var>num</var>] [-capsiz <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kccachetest tran [-th <var>num</var>] [-it <var>num</var>] [-tc] [-bnum <var>num</var>] [-capcnt <var>num</var>] [-capsiz <var>num</var>] [-lv] <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-capcnt <var>num</var></code> : specifies the maximum number of records.</li>
<li><code>-capsiz <var>num</var></code> : specifies the maximum size of memory usage.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcgrasstest">kcgrasstest</h2>

<p>The command `<code>kcgrasstest</code>' is a utility for facility test and performance test of the cache tree database.  This command is used in the following format.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kcgrasstest order [-th <var>num</var>] [-rnd] [-etc] [-tran] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kcgrasstest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kcgrasstest wicked [-th <var>num</var>] [-it <var>num</var>] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kcgrasstest tran [-th <var>num</var>] [-it <var>num</var>] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-psiz <var>num</var></code> : specifies the size of each page.</li>
<li><code>-pccap <var>num</var></code> : specifies the capacity size of the page cache.</li>
<li><code>-rcd</code> : use the decimal comparator instead of the lexical one.</li>
<li><code>-rcld</code> : use the lexical descending comparator instead of the ascending one.</li>
<li><code>-rcdd</code> : use the decimal descending comparator instead of the lexical one.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kchashtest">kchashtest</h2>

<p>The command `<code>kchashtest</code>' is a utility for facility test and performance test of the file hash database.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kchashtest order [-th <var>num</var>] [-rnd] [-set|-get|-getw|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kchashtest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kchashtest wicked [-th <var>num</var>] [-it <var>num</var>] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kchashtest tran [-th <var>num</var>] [-it <var>num</var>] [-hard] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-set</code> : performs setting operation only.</li>
<li><code>-get</code> : performs getting operation only.</li>
<li><code>-getw</code> : performs getting with a buffer operation only.</li>
<li><code>-rem</code> : performs removing operation only.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-apow <var>num</var></code> : specifies the power of the alignment of record size.</li>
<li><code>-fpow <var>num</var></code> : specifies the power of the capacity of the free block pool.</li>
<li><code>-ts</code> : tunes the database with the small option.</li>
<li><code>-tl</code> : tunes the database with the linear option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-msiz <var>num</var></code> : specifies the size of the memory-mapped region.</li>
<li><code>-dfunit <var>num</var></code> : specifies the unit step number of auto defragmentation.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
<li><code>-hard</code> : performs physical synchronization.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kchashmgr">kchashmgr</h2>

<p>The command `<code>kchashmgr</code>' is a utility for test and debugging of the file hash database and its applications.  `<var>path</var>' specifies the path of a database file.  `<var>key</var>' specifies the key of a record.  `<var>value</var>' specifies the value of a record.  `<var>file</var>' specifies the input/output file.</p>

<dl class="api">
<dt><code>kchashmgr create [-otr] [-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] <var>path</var></code></dt>
<dd>Creates a database file.</dd>
<dt><code>kchashmgr inform [-onl|-otl|-onr] [-st] <var>path</var></code></dt>
<dd>Prints status information.</dd>
<dt><code>kchashmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] <var>path</var> <var>key</var> <var>value</var></code></dt>
<dd>Stores a record.</dd>
<dt><code>kchashmgr remove [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var></code></dt>
<dd>Removes a record.</dd>
<dt><code>kchashmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] <var>path</var> <var>key</var></code></dt>
<dd>Prints the value of a record.</dd>
<dt><code>kchashmgr list [-onl|-otl|-onr] [-max <var>num</var>] [-rm] [-sx] [-pv] [-px] <var>path</var> [<var>key</var>]</code></dt>
<dd>Prints keys of all records, separated by line feeds.</dd>
<dt><code>kchashmgr clear [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Removes all records of a database.</dd>
<dt><code>kchashmgr import [-onl|-otl|-onr] [-sx] <var>path</var> [<var>file</var>]</code></dt>
<dd>Imports records from a TSV file.</dd>
<dt><code>kchashmgr copy [-onl|-otl|-onr] <var>path</var> <var>file</var></code></dt>
<dd>Copies the whole database.</dd>
<dt><code>kchashmgr dump [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Dumps records into a snapshot file.</dd>
<dt><code>kchashmgr load [-otr] [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Loads records from a snapshot file.</dd>
<dt><code>kchashmgr defrag [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Performs defragmentation.</dd>
<dt><code>kchashmgr setbulk [-onl|-otl|-onr] <var>path</var> <var>key</var> <var>value</var> ...</code></dt>
<dd>Store records at once.</dd>
<dt><code>kchashmgr removebulk [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var> ...</code></dt>
<dd>Remove records at once.</dd>
<dt><code>kchashmgr getbulk [-onl|-otl|-onr] [-sx] [-px] <var>path</var> <var>key</var> ...</code></dt>
<dd>Retrieve records at once.</dd>
<dt><code>kchashmgr check [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Checks consistency.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-otr</code> : opens the database with the truncation option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-apow <var>num</var></code> : specifies the power of the alignment of record size.</li>
<li><code>-fpow <var>num</var></code> : specifies the power of the capacity of the free block pool.</li>
<li><code>-ts</code> : tunes the database with the small option.</li>
<li><code>-tl</code> : tunes the database with the linear option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-st</code> : prints miscellaneous information.</li>
<li><code>-add</code> : performs adding operation.</li>
<li><code>-app</code> : performs appending operation.</li>
<li><code>-rep</code> : performs replacing operation.</li>
<li><code>-inci</code> : performs integer increment operation.</li>
<li><code>-incd</code> : performs real number increment operation.</li>
<li><code>-sx</code> : the input data is evaluated as a hexadecimal data string.</li>
<li><code>-rm</code> : removes the record.</li>
<li><code>-px</code> : the output data is converted into a hexadecimal data string.</li>
<li><code>-pz</code> : does not append line feed at the end of the output.</li>
<li><code>-max <var>num</var></code> : specifies the maximum number of shown records.</li>
<li><code>-pv</code> : prints values of records also.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kctreetest">kctreetest</h2>

<p>The command `<code>kctreetest</code>' is a utility for facility test and performance test of the file tree database.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kctreetest order [-th <var>num</var>] [-rnd] [-set|-get|-getw|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kctreetest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kctreetest wicked [-th <var>num</var>] [-it <var>num</var>] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kctreetest tran [-th <var>num</var>] [-it <var>num</var>] [-hard] [-oat|-oas|-onl|-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-msiz <var>num</var>] [-dfunit <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-set</code> : performs setting operation only.</li>
<li><code>-get</code> : performs getting operation only.</li>
<li><code>-getw</code> : performs getting with a buffer operation only.</li>
<li><code>-rem</code> : performs removing operation only.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-apow <var>num</var></code> : specifies the power of the alignment of record size.</li>
<li><code>-fpow <var>num</var></code> : specifies the power of the capacity of the free block pool.</li>
<li><code>-ts</code> : tunes the database with the small option.</li>
<li><code>-tl</code> : tunes the database with the linear option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-psiz <var>num</var></code> : specifies the size of each page.</li>
<li><code>-msiz <var>num</var></code> : specifies the size of the memory-mapped region.</li>
<li><code>-dfunit <var>num</var></code> : specifies the unit step number of auto defragmentation.</li>
<li><code>-pccap <var>num</var></code> : specifies the capacity size of the page cache.</li>
<li><code>-rcd</code> : use the decimal comparator instead of the lexical one.</li>
<li><code>-rcld</code> : use the lexical descending comparator instead of the ascending one.</li>
<li><code>-rcdd</code> : use the decimal descending comparator instead of the lexical one.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
<li><code>-hard</code> : performs physical synchronization.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kctreemgr">kctreemgr</h2>

<p>The command `<code>kctreemgr</code>' is a utility for test and debugging of the file tree database and its applications.  `<var>path</var>' specifies the path of a database file.  `<var>key</var>' specifies the key of a record.  `<var>value</var>' specifies the value of a record.  `<var>file</var>' specifies the input/output file.</p>

<dl class="api">
<dt><code>kctreemgr create [-otr] [-onl|-otl|-onr] [-apow <var>num</var>] [-fpow <var>num</var>] [-ts] [-tl] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-rcd|-rcld|-rcdd] <var>path</var></code></dt>
<dd>Creates a database file.</dd>
<dt><code>kctreemgr inform [-onl|-otl|-onr] [-st] <var>path</var></code></dt>
<dd>Prints status information.</dd>
<dt><code>kctreemgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] <var>path</var> <var>key</var> <var>value</var></code></dt>
<dd>Stores a record.</dd>
<dt><code>kctreemgr remove [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var></code></dt>
<dd>Removes a record.</dd>
<dt><code>kctreemgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] <var>path</var> <var>key</var></code></dt>
<dd>Prints the value of a record.</dd>
<dt><code>kctreemgr list [-onl|-otl|-onr] [-des] [-max <var>num</var>] [-rm] [-sx] [-pv] [-px] <var>path</var> [<var>key</var>]</code></dt>
<dd>Prints keys of all records, separated by line feeds.</dd>
<dt><code>kctreemgr clear [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Removes all records of a database.</dd>
<dt><code>kctreemgr import [-onl|-otl|-onr] [-sx] <var>path</var> [<var>file</var>]</code></dt>
<dd>Imports records from a TSV file.</dd>
<dt><code>kctreemgr copy [-onl|-otl|-onr] <var>path</var> <var>file</var></code></dt>
<dd>Copies the whole database.</dd>
<dt><code>kctreemgr dump [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Dumps records into a snapshot file.</dd>
<dt><code>kctreemgr load [-otr] [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Loads records from a snapshot file.</dd>
<dt><code>kctreemgr defrag [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Performs defragmentation.</dd>
<dt><code>kctreemgr setbulk [-onl|-otl|-onr] <var>path</var> <var>key</var> <var>value</var> ...</code></dt>
<dd>Store records at once.</dd>
<dt><code>kctreemgr removebulk [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var> ...</code></dt>
<dd>Remove records at once.</dd>
<dt><code>kctreemgr getbulk [-onl|-otl|-onr] [-sx] [-px] <var>path</var> <var>key</var> ...</code></dt>
<dd>Retrieve records at once.</dd>
<dt><code>kctreemgr check [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Checks consistency.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-otr</code> : opens the database with the truncation option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-apow <var>num</var></code> : specifies the power of the alignment of record size.</li>
<li><code>-fpow <var>num</var></code> : specifies the power of the capacity of the free block pool.</li>
<li><code>-ts</code> : tunes the database with the small option.</li>
<li><code>-tl</code> : tunes the database with the linear option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-psiz <var>num</var></code> : specifies the size of each page.</li>
<li><code>-rcd</code> : use the decimal comparator instead of the lexical one.</li>
<li><code>-rcld</code> : use the lexical descending comparator instead of the ascending one.</li>
<li><code>-rcdd</code> : use the decimal descending comparator instead of the lexical one.</li>
<li><code>-st</code> : prints miscellaneous information.</li>
<li><code>-add</code> : performs adding operation.</li>
<li><code>-app</code> : performs appending operation.</li>
<li><code>-rep</code> : performs replacing operation.</li>
<li><code>-inci</code> : performs integer increment operation.</li>
<li><code>-incd</code> : performs real number increment operation.</li>
<li><code>-sx</code> : the input data is evaluated as a hexadecimal data string.</li>
<li><code>-rm</code> : removes the record.</li>
<li><code>-px</code> : the output data is converted into a hexadecimal data string.</li>
<li><code>-pz</code> : does not append line feed at the end of the output.</li>
<li><code>-des</code> : visits records in descending order.</li>
<li><code>-max <var>num</var></code> : specifies the maximum number of shown records.</li>
<li><code>-pv</code> : prints values of records also.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcdirtest">kcdirtest</h2>

<p>The command `<code>kcdirtest</code>' is a utility for facility test and performance test of the directory hash database.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kcdirtest order [-th <var>num</var>] [-rnd] [-set|-get|-getw|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kcdirtest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kcdirtest wicked [-th <var>num</var>] [-it <var>num</var>] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kcdirtest tran [-th <var>num</var>] [-it <var>num</var>] [-hard] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-set</code> : performs setting operation only.</li>
<li><code>-get</code> : performs getting operation only.</li>
<li><code>-getw</code> : performs getting with a buffer operation only.</li>
<li><code>-rem</code> : performs removing operation only.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
<li><code>-hard</code> : performs physical synchronization.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcdirmgr">kcdirmgr</h2>

<p>The command `<code>kcdirmgr</code>' is a utility for test and debugging of the directory hash database and its applications.  `<var>path</var>' specifies the path of a database file.  `<var>key</var>' specifies the key of a record.  `<var>value</var>' specifies the value of a record.  `<var>file</var>' specifies the input/output file.</p>

<dl class="api">
<dt><code>kcdirmgr create [-otr] [-onl|-otl|-onr] [-tc] <var>path</var></code></dt>
<dd>Creates a database file.</dd>
<dt><code>kcdirmgr inform [-onl|-otl|-onr] [-st] <var>path</var></code></dt>
<dd>Prints status information.</dd>
<dt><code>kcdirmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] <var>path</var> <var>key</var> <var>value</var></code></dt>
<dd>Stores a record.</dd>
<dt><code>kcdirmgr remove [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var></code></dt>
<dd>Removes a record.</dd>
<dt><code>kcdirmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] <var>path</var> <var>key</var></code></dt>
<dd>Prints the value of a record.</dd>
<dt><code>kcdirmgr list [-onl|-otl|-onr] [-max <var>num</var>] [-rm] [-sx] [-pv] [-px] <var>path</var> [<var>key</var>]</code></dt>
<dd>Prints keys of all records, separated by line feeds.</dd>
<dt><code>kcdirmgr clear [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Removes all records of a database.</dd>
<dt><code>kcdirmgr import [-onl|-otl|-onr] [-sx] <var>path</var> [<var>file</var>]</code></dt>
<dd>Imports records from a TSV file.</dd>
<dt><code>kcdirmgr copy [-onl|-otl|-onr] <var>path</var> <var>file</var></code></dt>
<dd>Copies the whole database.</dd>
<dt><code>kcdirmgr dump [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Dumps records into a snapshot file.</dd>
<dt><code>kcdirmgr load [-otr] [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Loads records from a snapshot file.</dd>
<dt><code>kcdirmgr defrag [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Performs defragmentation.</dd>
<dt><code>kcdirmgr setbulk [-onl|-otl|-onr] <var>path</var> <var>key</var> <var>value</var> ...</code></dt>
<dd>Store records at once.</dd>
<dt><code>kcdirmgr removebulk [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var> ...</code></dt>
<dd>Remove records at once.</dd>
<dt><code>kcdirmgr getbulk [-onl|-otl|-onr] [-sx] [-px] <var>path</var> <var>key</var> ...</code></dt>
<dd>Retrieve records at once.</dd>
<dt><code>kcdirmgr check [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Checks consistency.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-otr</code> : opens the database with the truncation option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-st</code> : prints miscellaneous information.</li>
<li><code>-add</code> : performs adding operation.</li>
<li><code>-app</code> : performs appending operation.</li>
<li><code>-rep</code> : performs replacing operation.</li>
<li><code>-inci</code> : performs integer increment operation.</li>
<li><code>-incd</code> : performs real number increment operation.</li>
<li><code>-sx</code> : the input data is evaluated as a hexadecimal data string.</li>
<li><code>-rm</code> : removes the record.</li>
<li><code>-px</code> : the output data is converted into a hexadecimal data string.</li>
<li><code>-pz</code> : does not append line feed at the end of the output.</li>
<li><code>-max <var>num</var></code> : specifies the maximum number of shown records.</li>
<li><code>-pv</code> : prints values of records also.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcforesttest">kcforesttest</h2>

<p>The command `<code>kcforesttest</code>' is a utility for facility test and performance test of the directory tree database.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kcforesttest order [-th <var>num</var>] [-rnd] [-set|-get|-getw|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kcforesttest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kcforesttest wicked [-th <var>num</var>] [-it <var>num</var>] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kcforesttest tran [-th <var>num</var>] [-it <var>num</var>] [-hard] [-oat|-oas|-onl|-onl|-otl|-onr] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-pccap <var>num</var>] [-rcd|-rcld|-rcdd] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-set</code> : performs setting operation only.</li>
<li><code>-get</code> : performs getting operation only.</li>
<li><code>-getw</code> : performs getting with a buffer operation only.</li>
<li><code>-rem</code> : performs removing operation only.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-psiz <var>num</var></code> : specifies the size of each page.</li>
<li><code>-pccap <var>num</var></code> : specifies the capacity size of the page cache.</li>
<li><code>-rcd</code> : use the decimal comparator instead of the lexical one.</li>
<li><code>-rcld</code> : use the lexical descending comparator instead of the ascending one.</li>
<li><code>-rcdd</code> : use the decimal descending comparator instead of the lexical one.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
<li><code>-hard</code> : performs physical synchronization.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcforestmgr">kcforestmgr</h2>

<p>The command `<code>kcforestmgr</code>' is a utility for test and debugging of the file tree database and its applications.  `<var>path</var>' specifies the path of a database file.  `<var>key</var>' specifies the key of a record.  `<var>value</var>' specifies the value of a record.  `<var>file</var>' specifies the input/output file.</p>

<dl class="api">
<dt><code>kcforestmgr create [-otr] [-onl|-otl|-onr] [-tc] [-bnum <var>num</var>] [-psiz <var>num</var>] [-rcd|-rcld|-rcdd] <var>path</var></code></dt>
<dd>Creates a database file.</dd>
<dt><code>kcforestmgr inform [-onl|-otl|-onr] [-st] <var>path</var></code></dt>
<dd>Prints status information.</dd>
<dt><code>kcforestmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] <var>path</var> <var>key</var> <var>value</var></code></dt>
<dd>Stores a record.</dd>
<dt><code>kcforestmgr remove [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var></code></dt>
<dd>Removes a record.</dd>
<dt><code>kcforestmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] <var>path</var> <var>key</var></code></dt>
<dd>Prints the value of a record.</dd>
<dt><code>kcforestmgr list [-onl|-otl|-onr] [-des] [-max <var>num</var>] [-rm] [-sx] [-pv] [-px] <var>path</var> [<var>key</var>]</code></dt>
<dd>Prints keys of all records, separated by line feeds.</dd>
<dt><code>kcforestmgr clear [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Removes all records of a database.</dd>
<dt><code>kcforestmgr import [-onl|-otl|-onr] [-sx] <var>path</var> [<var>file</var>]</code></dt>
<dd>Imports records from a TSV file.</dd>
<dt><code>kcforestmgr copy [-onl|-otl|-onr] <var>path</var> <var>file</var></code></dt>
<dd>Copies the whole database.</dd>
<dt><code>kcforestmgr dump [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Dumps records into a snapshot file.</dd>
<dt><code>kcforestmgr load [-otr] [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Loads records from a snapshot file.</dd>
<dt><code>kcforestmgr setbulk [-onl|-otl|-onr] <var>path</var> <var>key</var> <var>value</var> ...</code></dt>
<dd>Store records at once.</dd>
<dt><code>kcforestmgr removebulk [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var> ...</code></dt>
<dd>Remove records at once.</dd>
<dt><code>kcforestmgr getbulk [-onl|-otl|-onr] [-sx] [-px] <var>path</var> <var>key</var> ...</code></dt>
<dd>Retrieve records at once.</dd>
<dt><code>kcforestmgr check [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Checks consistency.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-otr</code> : opens the database with the truncation option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-tc</code> : tunes the database with the compression option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
<li><code>-psiz <var>num</var></code> : specifies the size of each page.</li>
<li><code>-rcd</code> : use the decimal comparator instead of the lexical one.</li>
<li><code>-rcld</code> : use the lexical descending comparator instead of the ascending one.</li>
<li><code>-rcdd</code> : use the decimal descending comparator instead of the lexical one.</li>
<li><code>-st</code> : prints miscellaneous information.</li>
<li><code>-add</code> : performs adding operation.</li>
<li><code>-app</code> : performs appending operation.</li>
<li><code>-rep</code> : performs replacing operation.</li>
<li><code>-inci</code> : performs integer increment operation.</li>
<li><code>-incd</code> : performs real number increment operation.</li>
<li><code>-sx</code> : the input data is evaluated as a hexadecimal data string.</li>
<li><code>-rm</code> : removes the record.</li>
<li><code>-px</code> : the output data is converted into a hexadecimal data string.</li>
<li><code>-pz</code> : does not append line feed at the end of the output.</li>
<li><code>-des</code> : visits records in descending order.</li>
<li><code>-max <var>num</var></code> : specifies the maximum number of shown records.</li>
<li><code>-pv</code> : prints values of records also.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcpolytest">kcpolytest</h2>

<p>The command `<code>kcpolytest</code>' is a utility for facility test and performance test of the polymorphic database.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kcpolytest order [-th <var>num</var>] [-rnd] [-set|-get|-getw|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kcpolytest queue [-th <var>num</var>] [-it <var>num</var>] [-rnd] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs queuing operations.</dd>
<dt><code>kcpolytest wicked [-th <var>num</var>] [-it <var>num</var>] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs mixed operations selected at random.</dd>
<dt><code>kcpolytest tran [-th <var>num</var>] [-it <var>num</var>] [-hard] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs test of transaction.</dd>
<dt><code>kcpolytest mapred [-rnd] [-ru] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] [-tmp <var>str</var>] [-dbnum <var>num</var>] [-clim <var>num</var>] [-cbnum <var>num</var>] [-xnl] [-xpm] [-xpr] [-xpf] [-xnc] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs MapReduce operations.</dd>
<dt><code>kcpolytest index [-th <var>num</var>] [-rnd] [-set|-get|-rem|-etc] [-tran] [-oat|-oas|-onl|-onl|-otl|-onr] [-lv] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs indexing operations.</dd>
<dt><code>kcpolytest misc <var>path</var></code></dt>
<dd>Performs miscellaneous tests.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-th <var>num</var></code> : specifies the number of worker threads.</li>
<li><code>-rnd</code> : performs random test.</li>
<li><code>-set</code> : performs setting operation only.</li>
<li><code>-get</code> : performs getting operation only.</li>
<li><code>-getw</code> : performs getting with a buffer operation only.</li>
<li><code>-rem</code> : performs removing operation only.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-lv</code> : reports all errors.</li>
<li><code>-it <var>num</var></code> : specifies the number of repetition.</li>
<li><code>-hard</code> : performs physical synchronization.</li>
<li><code>-ru</code> : reuses the existing database.</li>
<li><code>-tmp <var>str</var></code> : specifies the path of a directory for temporary storage.</li>
<li><code>-dbnum <var>num</var></code> : specifies the number of temporary databases.</li>
<li><code>-clim <var>num</var></code> : specifies the limit size of cache memory.</li>
<li><code>-cbnum <var>num</var></code> : specifies the bucket number of cache memory.</li>
<li><code>-xnl</code> : executes with the no locking option.</li>
<li><code>-xpm</code> : executes with the parallel mapper option.</li>
<li><code>-xpr</code> : executes with the parallel reducer option.</li>
<li><code>-xpf</code> : executes with the parallel flusher option.</li>
<li><code>-xnc</code> : executes with the no compression option.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kcpolymgr">kcpolymgr</h2>

<p>The command `<code>kcpolymgr</code>' is a utility for test and debugging of the polymorphic database and its applications.  `<var>path</var>' specifies the path of a database file.  `<var>key</var>' specifies the key of a record.  `<var>value</var>' specifies the value of a record.  `<var>file</var>' specifies the input/output file.  `<var>src</var>' specifies other database files.</p>

<dl class="api">
<dt><code>kcpolymgr create [-otr] [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Creates a database file.</dd>
<dt><code>kcpolymgr inform [-onl|-otl|-onr] [-st] <var>path</var></code></dt>
<dd>Prints status information.</dd>
<dt><code>kcpolymgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] <var>path</var> <var>key</var> <var>value</var></code></dt>
<dd>Stores a record.</dd>
<dt><code>kcpolymgr remove [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var></code></dt>
<dd>Removes a record.</dd>
<dt><code>kcpolymgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] <var>path</var> <var>key</var></code></dt>
<dd>Prints the value of a record.</dd>
<dt><code>kcpolymgr list [-onl|-otl|-onr] [-mp|-mr|-ms] [-des] [-max <var>num</var>] [-rm] [-sx] [-pv] [-px] <var>path</var> [<var>key</var>]</code></dt>
<dd>Prints keys of all records, separated by line feeds.</dd>
<dt><code>kcpolymgr clear [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Removes all records of a database.</dd>
<dt><code>kcpolymgr import [-onl|-otl|-onr] [-sx] <var>path</var> [<var>file</var>]</code></dt>
<dd>Imports records from a TSV file.</dd>
<dt><code>kcpolymgr copy [-onl|-otl|-onr] <var>path</var> <var>file</var></code></dt>
<dd>Copies the whole database.</dd>
<dt><code>kcpolymgr dump [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Dumps records into a snapshot file.</dd>
<dt><code>kcpolymgr load [-otr] [-onl|-otl|-onr] <var>path</var> [<var>file</var>]</code></dt>
<dd>Loads records from a snapshot file.</dd>
<dt><code>kcpolymgr merge [-onl|-otl|-onr] [-add|-app|-rep] <var>path</var> <var>src</var>...</code></dt>
<dd>Merge records from other databases.</dd>
<dt><code>kcpolymgr setbulk [-onl|-otl|-onr] <var>path</var> <var>key</var> <var>value</var> ...</code></dt>
<dd>Store records at once.</dd>
<dt><code>kcpolymgr removebulk [-onl|-otl|-onr] [-sx] <var>path</var> <var>key</var> ...</code></dt>
<dd>Remove records at once.</dd>
<dt><code>kcpolymgr getbulk [-onl|-otl|-onr] [-sx] [-px] <var>path</var> <var>key</var> ...</code></dt>
<dd>Retrieve records at once.</dd>
<dt><code>kcpolymgr check [-onl|-otl|-onr] <var>path</var></code></dt>
<dd>Checks consistency.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-otr</code> : opens the database with the truncation option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-st</code> : prints miscellaneous information.</li>
<li><code>-add</code> : performs adding operation.</li>
<li><code>-app</code> : performs appending operation.</li>
<li><code>-rep</code> : performs replacing operation.</li>
<li><code>-inci</code> : performs integer increment operation.</li>
<li><code>-incd</code> : performs real number increment operation.</li>
<li><code>-sx</code> : the input data is evaluated as a hexadecimal data string.</li>
<li><code>-rm</code> : removes the record.</li>
<li><code>-px</code> : the output data is converted into a hexadecimal data string.</li>
<li><code>-pz</code> : performs not append line feed at the end of the output.</li>
<li><code>-mp</code> : performs prefix matching instead of usual scan.</li>
<li><code>-mr</code> : performs regular expression matching instead of usual scan.</li>
<li><code>-ms</code> : performs similar matching instead of usual scan.</li>
<li><code>-des</code> : visits records in descending order.</li>
<li><code>-max <var>num</var></code> : specifies the maximum number of shown records.</li>
<li><code>-pv</code> : prints values of records also.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

<h2 id="kclangctest">kclangctest</h2>

<p>The command `<code>kclangctest</code>' is a utility for facility test and performance test of the C language binding.  This command is used in the following format.  `<var>path</var>' specifies the path of a database file.  `<var>rnum</var>' specifies the number of iterations.</p>

<dl class="api">
<dt><code>kclangctest order [-rnd] [-etc] [-tran] [-oat|-oas|-onl|-otl|-onr] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs in-order tests.</dd>
<dt><code>kclangctest index [-rnd] [-etc] [-oat|-oas|-onl|-otl|-onr] <var>path</var> <var>rnum</var></code></dt>
<dd>Performs indexing operations.</dd>
<dt><code>kclangctest map [-rnd] [-etc] [-bnum <var>num</var>] <var>rnum</var></code></dt>
<dd>Performs test of memory-saving hash map.</dd>
<dt><code>kclangctest list [-rnd] [-etc] <var>rnum</var></code></dt>
<dd>Performs test of memory-saving array list.</dd>
</dl>

<p>Options feature the following.</p>

<ul class="options">
<li><code>-rnd</code> : performs random test.</li>
<li><code>-etc</code> : performs miscellaneous operations.</li>
<li><code>-tran</code> : performs transaction.</li>
<li><code>-oat</code> : opens the database with the auto transaction option.</li>
<li><code>-oas</code> : opens the database with the auto synchronization option.</li>
<li><code>-onl</code> : opens the database with the no locking option.</li>
<li><code>-otl</code> : opens the database with the try locking option.</li>
<li><code>-onr</code> : opens the database with the no auto repair option.</li>
<li><code>-bnum <var>num</var></code> : specifies the number of buckets of the hash table.</li>
</ul>

<p>This command returns 0 on success, another on failure.</p>

<hr />

</body>

</html>

<!-- END OF FILE -->