1KCHASHMGR(1)                     Kyoto Cabinet                    KCHASHMGR(1)
2
3
4

NAME

6       kchashmgr - command line interface to manage the file hash database
7
8

DESCRIPTION

10       The command `kchashmgr' is a utility for test and debugging of the file
11       hash database and its applications.  `path' specifies  the  path  of  a
12       database file.  `key' specifies the key of a record.  `value' specifies
13       the value of a record.  `file' specifies the input/output file.
14
15              kchashmgr create [-otr] [-onl|-otl|-onr] [-apow num] [-fpow num]
16              [-ts] [-tl] [-tc] [-bnum num] path
17                     Creates a database file.
18              kchashmgr inform [-onl|-otl|-onr] [-st] path
19                     Prints status information.
20              kchashmgr   set   [-onl|-otl|-onr]  [-add|-app|-rep|-inci|-incd]
21              [-sx] path key value
22                     Stores a record.
23              kchashmgr remove [-onl|-otl|-onr] [-sx] path key
24                     Removes a record.
25              kchashmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path key
26                     Prints the value of a record.
27              kchashmgr list [-onl|-otl|-onr] [-max  num]  [-rm]  [-sx]  [-pv]
28              [-px] path [key]
29                     Prints keys of all records, separated by line feeds.
30              kchashmgr clear [-onl|-otl|-onr] path
31                     Removes all records of a database.
32              kchashmgr import [-onl|-otl|-onr] [-sx] path [file]
33                     Imports records from a TSV file.
34              kchashmgr copy [-onl|-otl|-onr] path file
35                     Copies the whole database.
36              kchashmgr dump [-onl|-otl|-onr] path [file]
37                     Dumps records into a snapshot file.
38              kchashmgr load [-otr] [-onl|-otl|-onr] path [file]
39                     Loads records from a snapshot file.
40              kchashmgr defrag [-onl|-otl|-onr] path
41                     Performs defragmentation.
42              kchashmgr setbulk [-onl|-otl|-onr] path key value ...
43                     Store records at once.
44              kchashmgr removebulk [-onl|-otl|-onr] [-sx] path key ...
45                     Remove records at once.
46              kchashmgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ...
47                     Retrieve records at once.
48              kchashmgr check [-onl|-otl|-onr] path
49                     Checks consistency.
50
51       Options feature the following.
52
53              -otr : opens the database with the truncation option.
54              -onl : opens the database with the no locking option.
55              -otl : opens the database with the try locking option.
56              -onr : opens the database with the no auto repair option.
57              -apow num : specifies the power of the alignment of record size.
58              -fpow  num  :  specifies  the  power of the capacity of the free
59              block pool.
60              -ts : tunes the database with the small option.
61              -tl : tunes the database with the linear option.
62              -tc : tunes the database with the compression option.
63              -bnum num : specifies the number of buckets of the hash table.
64              -st : prints miscellaneous information.
65              -add : performs adding operation.
66              -app : performs appending operation.
67              -rep : performs replacing operation.
68              -inci : performs integer increment operation.
69              -incd : performs real number increment operation.
70              -sx : the input data is evaluated as a hexadecimal data string.
71              -rm : removes the record.
72              -px : the output data  is  converted  into  a  hexadecimal  data
73              string.
74              -pz : does not append line feed at the end of the output.
75              -max num : specifies the maximum number of shown records.
76              -pv : prints values of records also.
77
78       This command returns 0 on success, another on failure.
79
80

SEE ALSO

82       kchashtest(1)
83
84
85
86Man Page                          2012-05-24                      KCHASHMGR(1)
Impressum