- int add_kindex(const char *nm) { return add_bindex(nm,0,sizeof(int)); }
- int add_sindex(const char *nm,int dataSz) {
- int idx = db->new_string_index(nm,dataSz);
- if_err( idx ); if_err( add_index(idx) );
- return 0;
+ int add_ind_index(const char *nm) {
+ int idx = db->new_binary_index(nm,0,sizeof(int),Db::cmprKey);
+ if_err( idx ); if_err( add_index(idx,ktyInd) );
+ return idx;
+ }
+ int add_dir_index(const char *nm,int keySz) {
+ int idx = db->new_binary_index(nm,keySz,sizeof(int),Db::cmprKey);
+ if_err( idx ); if_err( add_index(idx,ktyDir) );
+ return idx;
+ }
+ int add_str_index(const char *nm,int dataSz) {
+ int idx = db->new_string_index(nm, dataSz);
+ if_err( idx ); if_err( add_index(idx,ktyDir) );
+ return idx;