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