30 |
IDBONOLCK |
IDBONOLCK |
31 |
IDBOLCKNB |
IDBOLCKNB |
32 |
tcidbclose |
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 |
); |
); |
50 |
|
|
51 |
=head1 NAME |
=head1 NAME |
58 |
|
|
59 |
=head2 tcidberrmsg |
=head2 tcidberrmsg |
60 |
|
|
61 |
my $message = Search::TokyoDystopia::tcidberrmsg( $ecode ); |
my $message = tcidberrmsg( $ecode ); |
62 |
|
|
63 |
=head2 tcidbnew |
=head2 tcidbnew |
64 |
|
|
65 |
my $idb = Search::TokyoDystopia::tcidbnew; |
my $idb = tcidbnew; |
66 |
|
|
67 |
=head2 tcidbdel |
=head2 tcidbdel |
68 |
|
|
69 |
Search::TokyoDystopia::tcidbdel( $idb ); |
tcidbdel( $idb ); |
70 |
|
|
71 |
=head2 tcidbecode |
=head2 tcidbecode |
72 |
|
|
73 |
my $ecode = Search::TokyoDystopia::tcidbecode( $idb ); |
my $ecode = tcidbecode( $idb ); |
74 |
|
|
75 |
=head2 tcidbtune |
=head2 tcidbtune |
76 |
|
|
77 |
my $success = Search::TokyoDystopia::tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE || IDBTDEFLATE ); |
my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE | IDBTDEFLATE ); |
78 |
|
|
79 |
=cut |
=cut |
80 |
|
|
86 |
|
|
87 |
=head2 tcidbsetcache |
=head2 tcidbsetcache |
88 |
|
|
89 |
my $success = Search::TokyoDystopia::tcidbsetcache( $idb, $icsiz, $lcnum ); |
my $success = tcidbsetcache( $idb, $icsiz, $lcnum ); |
90 |
|
|
91 |
=head2 tcidbsetfwmmax |
=head2 tcidbsetfwmmax |
92 |
|
|
93 |
my $success = Search::TokyoDystopia::tcidbsetfwmmax( $idb, $fwnum ); |
my $success = tcidbsetfwmmax( $idb, $fwnum ); |
94 |
|
|
95 |
=head2 tcidbopen |
=head2 tcidbopen |
96 |
|
|
97 |
Search::TokyoDystopia::tcidbopen( $idb, 'casket', IDBOTRUNC ), 1, 'tcidbopen' ); |
my $success = tcidbopen( $idb, 'casket', IDBOWRITER | IDBOCREAT ); |
98 |
|
|
99 |
=cut |
=cut |
100 |
|
|
107 |
IDBOLCKNB => 1 << 5, |
IDBOLCKNB => 1 << 5, |
108 |
}; |
}; |
109 |
|
|
110 |
|
=head2 tcidbclose |
111 |
|
|
112 |
|
my $success = tcidbclose( $idb ); |
113 |
|
|
114 |
|
=head2 tcidbput |
115 |
|
|
116 |
|
my $success = tcidbput( $idb, $id, $text ); |
117 |
|
|
118 |
|
=head2 tcidbout |
119 |
|
|
120 |
|
my $success = tcidbout( $idb, $id ); |
121 |
|
|
122 |
|
=head2 tcidbget |
123 |
|
|
124 |
|
my $text = tcidbget( $idb, $id ); |
125 |
|
|
126 |
|
=head2 tcidbsearch |
127 |
|
|
128 |
|
my $ids = tcidbsearch( $idb, $word, IDBSSUBSTR ); |
129 |
|
|
130 |
|
=cut |
131 |
|
|
132 |
|
use constant { |
133 |
|
IDBSSUBSTR => 0, # substring matching |
134 |
|
IDBSPREFIX => 1, # prefix matching |
135 |
|
IDBSSUFFIX => 2, # suffix matching |
136 |
|
IDBSFULL => 3, # full matching |
137 |
|
IDBSTOKEN => 4, # token matching |
138 |
|
IDBSTOKPRE => 5, # token prefix matching |
139 |
|
IDBSTOKSUF => 6, # token suffix matching |
140 |
|
}; |
141 |
|
|
142 |
|
=head2 tcidbsearch2 |
143 |
|
|
144 |
|
my $ids = tcidbsearch2( $idb, $expr ); |
145 |
|
|
146 |
|
=head2 tcidbiterinit |
147 |
|
|
148 |
|
my $success = tcidbiterinit( $idb ); |
149 |
|
|
150 |
|
=head2 tcidbiternext |
151 |
|
|
152 |
|
my $id = tcidbiternext( $idb ); |
153 |
|
|
154 |
|
=head2 tcidbsync |
155 |
|
|
156 |
|
my $success = tcidbsync( $idb ); |
157 |
|
|
158 |
|
=head2 tcidboptimize |
159 |
|
|
160 |
|
my $success = tcidboptimize( $idb ); |
161 |
|
|
162 |
|
=cut |
163 |
|
|
164 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
165 |
|
|
166 |
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 |