- Timestamp:
- 2012-02-28T13:59:00+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/mg/src/text/backend.h
r16583 r25147 40 40 { 41 41 File *InvfFile; 42 unsignedlong N;43 unsignedlong Nstatic; /* N parameter for decoding inverted file entries */42 mg_u_long N; 43 mg_u_long Nstatic; /* N parameter for decoding inverted file entries */ 44 44 struct invf_file_header ifh; 45 45 } … … 51 51 File *TextIdxFile; 52 52 File *TextIdxWgtFile; 53 long current_pos;53 mg_s_long current_pos; 54 54 struct 55 55 { 56 unsignedlong Start;56 mg_u_long Start; 57 57 float Weight; 58 58 } … … 78 78 compression_dict_header cdh; 79 79 comp_frags_header *cfh[2]; 80 unsignedlong MemForCompDict;80 mg_u_long MemForCompDict; 81 81 u_char ***values[2]; 82 82 u_char *escape[2]; 83 83 huff_data *chars_huff[2]; 84 u_long **chars_vals[2];84 mg_u_long **chars_vals[2]; 85 85 huff_data *lens_huff[2]; 86 u_long **lens_vals[2];86 mg_u_long **lens_vals[2]; 87 87 auxiliary_dict *ad; 88 88 int fast_loaded; … … 96 96 struct stem_idx_header sih; 97 97 u_char **index; 98 unsignedlong *pos;98 mg_u_long *pos; 99 99 int active; 100 100 u_char *buffer; 101 unsignedlong MemForStemIdx;101 mg_u_long MemForStemIdx; 102 102 } 103 103 stemmed_idx; … … 109 109 struct stem_dict_header sdh; 110 110 u_char **index; 111 unsignedlong *pos;111 mg_u_long *pos; 112 112 int active; 113 113 u_char *buffer; 114 unsignedlong MemForStemDict;114 mg_u_long MemForStemDict; 115 115 116 116 /* [RPAP - Jan 97: Stem Index Change] */ … … 126 126 double L; 127 127 double B; 128 unsignedlong *DocWeights;128 mg_u_long *DocWeights; 129 129 char bits; 130 130 float *table; 131 unsignedlong mask;132 unsignedlong MemForWeights;133 unsignedlong num_of_docs;131 mg_u_long mask; 132 mg_u_long MemForWeights; 133 mg_u_long num_of_docs; 134 134 } 135 135 approx_weights_data; … … 140 140 int QueryFreqs; 141 141 int Exact; /* use exact weights for ranking or not */ 142 long MaxDocsToRetrieve; /* may be -1 for all */143 long MaxParasToRetrieve;142 mg_s_long MaxDocsToRetrieve; /* may be -1 for all */ 143 mg_s_long MaxParasToRetrieve; 144 144 int Sort; 145 145 char AccumMethod; /* 'A' = array, 'S' = splay tree, 'H' = hash_table */ 146 long MaxAccums; /* may be -1 for all */147 long MaxTerms; /* may be -1 for all */146 mg_s_long MaxAccums; /* may be -1 for all */ 147 mg_s_long MaxTerms; /* may be -1 for all */ 148 148 int StopAtMaxAccum; /* Stop at maximum accumulator or not */ 149 long HashTblSize;149 mg_s_long HashTblSize; 150 150 char *skip_dump; 151 151 } … … 156 156 typedef struct BooleanQueryInfo 157 157 { 158 long MaxDocsToRetrieve;158 mg_s_long MaxDocsToRetrieve; 159 159 } 160 160 BooleanQueryInfo; … … 191 191 File *File_invf; 192 192 File *File_weight_approx; 193 unsignedlong mem_in_use, max_mem_in_use;194 unsignedlong num_of_ptrs, tot_num_of_ptrs;195 unsignedlong num_of_terms, tot_num_of_terms;196 unsignedlong num_of_accum, tot_num_of_accum;197 unsignedlong num_of_ans, tot_num_of_ans;198 unsignedlong hops_taken, tot_hops_taken;199 unsignedlong text_idx_lookups, tot_text_idx_lookups;200 unsignedlong max_buffers;193 mg_u_long mem_in_use, max_mem_in_use; 194 mg_u_long num_of_ptrs, tot_num_of_ptrs; 195 mg_u_long num_of_terms, tot_num_of_terms; 196 mg_u_long num_of_accum, tot_num_of_accum; 197 mg_u_long num_of_ans, tot_num_of_ans; 198 mg_u_long hops_taken, tot_hops_taken; 199 mg_u_long text_idx_lookups, tot_text_idx_lookups; 200 mg_u_long max_buffers; 201 201 unsigned doc_pos; 202 202 unsigned buf_in_use; … … 226 226 query_data *InitQuerySystem (char *dir, char *name, char *textname, InitQueryTimes * iqt); 227 227 228 void ChangeMemInUse (query_data * qd, long delta);228 void ChangeMemInUse (query_data * qd, mg_s_long delta); 229 229 230 230 void FinishQuerySystem (query_data * qd); … … 251 251 float GetDocWeight (query_data * qd); 252 252 253 long GetDocCompLength (query_data * qd);254 255 u_char *GetDocText (query_data * qd, unsignedlong *len);253 mg_s_long GetDocCompLength (query_data * qd); 254 255 u_char *GetDocText (query_data * qd, mg_u_long *len); 256 256 257 257 DocEntry *GetDocChain (query_data * qd);
Note:
See TracChangeset
for help on using the changeset viewer.