29 |
IDBOTRUNC |
IDBOTRUNC |
30 |
IDBONOLCK |
IDBONOLCK |
31 |
IDBOLCKNB |
IDBOLCKNB |
32 |
|
tcidbclose |
33 |
|
tcidbput |
34 |
|
tcidbout |
35 |
|
tcidbget |
36 |
|
tcidbsearch |
37 |
|
tcidbsearch2 |
38 |
|
IDBSSUBSTR |
39 |
|
IDBSPREFIX |
40 |
|
IDBSSUFFIX |
41 |
|
IDBSFULL |
42 |
|
IDBSTOKEN |
43 |
|
IDBSTOKPRE |
44 |
|
IDBSTOKSUF |
45 |
|
tcidbiterinit |
46 |
|
tcidbiternext |
47 |
|
tcidbsync |
48 |
|
tcidboptimize |
49 |
|
tcidbvanish |
50 |
|
tcidbcopy |
51 |
|
tcidbpath |
52 |
); |
); |
53 |
|
|
54 |
=head1 NAME |
=head1 NAME |
61 |
|
|
62 |
=head2 tcidberrmsg |
=head2 tcidberrmsg |
63 |
|
|
64 |
my $message = Search::TokyoDystopia::tcidberrmsg( $ecode ); |
my $message = tcidberrmsg( $ecode ); |
65 |
|
|
66 |
=head2 tcidbnew |
=head2 tcidbnew |
67 |
|
|
68 |
my $idb = Search::TokyoDystopia::tcidbnew; |
my $idb = tcidbnew; |
69 |
|
|
70 |
=head2 tcidbdel |
=head2 tcidbdel |
71 |
|
|
72 |
Search::TokyoDystopia::tcidbdel( $idb ); |
tcidbdel( $idb ); |
73 |
|
|
74 |
=head2 tcidbecode |
=head2 tcidbecode |
75 |
|
|
76 |
my $ecode = Search::TokyoDystopia::tcidbecode( $idb ); |
my $ecode = tcidbecode( $idb ); |
77 |
|
|
78 |
=head2 tcidbtune |
=head2 tcidbtune |
79 |
|
|
80 |
my $success = Search::TokyoDystopia::tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE || IDBTDEFLATE ); |
my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE | IDBTDEFLATE ); |
81 |
|
|
82 |
=cut |
=cut |
83 |
|
|
89 |
|
|
90 |
=head2 tcidbsetcache |
=head2 tcidbsetcache |
91 |
|
|
92 |
my $success = Search::TokyoDystopia::tcidbsetcache( $idb, $icsiz, $lcnum ); |
my $success = tcidbsetcache( $idb, $icsiz, $lcnum ); |
93 |
|
|
94 |
=head2 tcidbsetfwmmax |
=head2 tcidbsetfwmmax |
95 |
|
|
96 |
my $success = Search::TokyoDystopia::tcidbsetfwmmax( $idb, $fwnum ); |
my $success = tcidbsetfwmmax( $idb, $fwnum ); |
97 |
|
|
98 |
=head2 tcidbopen |
=head2 tcidbopen |
99 |
|
|
100 |
Search::TokyoDystopia::tcidbopen( $idb, 'casket', IDBOTRUNC ), 1, 'tcidbopen' ); |
my $success = tcidbopen( $idb, 'casket', IDBOWRITER | IDBOCREAT ); |
101 |
|
|
102 |
=cut |
=cut |
103 |
|
|
110 |
IDBOLCKNB => 1 << 5, |
IDBOLCKNB => 1 << 5, |
111 |
}; |
}; |
112 |
|
|
113 |
|
=head2 tcidbclose |
114 |
|
|
115 |
|
my $success = tcidbclose( $idb ); |
116 |
|
|
117 |
|
=head2 tcidbput |
118 |
|
|
119 |
|
my $success = tcidbput( $idb, $id, $text ); |
120 |
|
|
121 |
|
=head2 tcidbout |
122 |
|
|
123 |
|
my $success = tcidbout( $idb, $id ); |
124 |
|
|
125 |
|
=head2 tcidbget |
126 |
|
|
127 |
|
my $text = tcidbget( $idb, $id ); |
128 |
|
|
129 |
|
=head2 tcidbsearch |
130 |
|
|
131 |
|
my $ids = tcidbsearch( $idb, $word, IDBSSUBSTR ); |
132 |
|
|
133 |
|
=cut |
134 |
|
|
135 |
|
use constant { |
136 |
|
IDBSSUBSTR => 0, # substring matching |
137 |
|
IDBSPREFIX => 1, # prefix matching |
138 |
|
IDBSSUFFIX => 2, # suffix matching |
139 |
|
IDBSFULL => 3, # full matching |
140 |
|
IDBSTOKEN => 4, # token matching |
141 |
|
IDBSTOKPRE => 5, # token prefix matching |
142 |
|
IDBSTOKSUF => 6, # token suffix matching |
143 |
|
}; |
144 |
|
|
145 |
|
=head2 tcidbsearch2 |
146 |
|
|
147 |
|
my $ids = tcidbsearch2( $idb, $expr ); |
148 |
|
|
149 |
|
=head2 tcidbiterinit |
150 |
|
|
151 |
|
my $success = tcidbiterinit( $idb ); |
152 |
|
|
153 |
|
=head2 tcidbiternext |
154 |
|
|
155 |
|
my $id = tcidbiternext( $idb ); |
156 |
|
|
157 |
|
=head2 tcidbsync |
158 |
|
|
159 |
|
my $success = tcidbsync( $idb ); |
160 |
|
|
161 |
|
=head2 tcidboptimize |
162 |
|
|
163 |
|
my $success = tcidboptimize( $idb ); |
164 |
|
|
165 |
|
=head2 tcidbvanish |
166 |
|
|
167 |
|
my $success = tcidbvanish( $idb ); |
168 |
|
|
169 |
|
=head2 tcidbcopy |
170 |
|
|
171 |
|
my $success = tcidbcopy( $idb, '/path/of/copy' ); |
172 |
|
|
173 |
|
=head2 tcidbpath |
174 |
|
|
175 |
|
my $path = tcidbpath( $idb ); |
176 |
|
|
177 |
|
=cut |
178 |
|
|
179 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
180 |
|
|
181 |
Low-level functions often just die when called on invalid (or deleted) database |
Low-level functions often just die when called on invalid (or deleted) database |