Ignore:
Timestamp:
2012-02-28T13:59:00+13:00 (12 years ago)
Author:
kjdon
Message:

merged 64_bit_Greenstone branch into trunk, rev 25139

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mg/src/text/backend.h

    r16583 r25147  
    4040  {
    4141    File *InvfFile;
    42     unsigned long N;
    43     unsigned long 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 */
    4444    struct invf_file_header ifh;
    4545  }
     
    5151    File *TextIdxFile;
    5252    File *TextIdxWgtFile;
    53     long current_pos;
     53    mg_s_long current_pos;
    5454    struct
    5555      {
    56     unsigned long Start;
     56    mg_u_long Start;
    5757    float Weight;
    5858      }
     
    7878    compression_dict_header cdh;
    7979    comp_frags_header *cfh[2];
    80     unsigned long MemForCompDict;
     80    mg_u_long MemForCompDict;
    8181    u_char ***values[2];
    8282    u_char *escape[2];
    8383    huff_data *chars_huff[2];
    84     u_long **chars_vals[2];
     84    mg_u_long **chars_vals[2];
    8585    huff_data *lens_huff[2];
    86     u_long **lens_vals[2];
     86    mg_u_long **lens_vals[2];
    8787    auxiliary_dict *ad;
    8888    int fast_loaded;
     
    9696    struct stem_idx_header sih;
    9797    u_char **index;
    98     unsigned long *pos;
     98    mg_u_long *pos;
    9999    int active;
    100100    u_char *buffer;
    101     unsigned long MemForStemIdx;
     101    mg_u_long MemForStemIdx;
    102102  }
    103103stemmed_idx;
     
    109109    struct stem_dict_header sdh;
    110110    u_char **index;
    111     unsigned long *pos;
     111    mg_u_long *pos;
    112112    int active;
    113113    u_char *buffer;
    114     unsigned long MemForStemDict;
     114    mg_u_long MemForStemDict;
    115115
    116116    /* [RPAP - Jan 97: Stem Index Change] */
     
    126126    double L;
    127127    double B;
    128     unsigned long *DocWeights;
     128    mg_u_long *DocWeights;
    129129    char bits;
    130130    float *table;
    131     unsigned long mask;
    132     unsigned long MemForWeights;
    133     unsigned long num_of_docs;
     131    mg_u_long mask;
     132    mg_u_long MemForWeights;
     133    mg_u_long num_of_docs;
    134134  }
    135135approx_weights_data;
     
    140140    int QueryFreqs;
    141141    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;
    144144    int Sort;       
    145145    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 */
    148148    int StopAtMaxAccum; /* Stop at maximum accumulator or not */
    149     long HashTblSize;
     149    mg_s_long HashTblSize;
    150150    char *skip_dump;
    151151  }
     
    156156typedef struct BooleanQueryInfo
    157157  {
    158     long MaxDocsToRetrieve;
     158    mg_s_long MaxDocsToRetrieve;
    159159  }
    160160BooleanQueryInfo;
     
    191191    File *File_invf;
    192192    File *File_weight_approx;
    193     unsigned long mem_in_use, max_mem_in_use;
    194     unsigned long num_of_ptrs, tot_num_of_ptrs;
    195     unsigned long num_of_terms, tot_num_of_terms;
    196     unsigned long num_of_accum, tot_num_of_accum;
    197     unsigned long num_of_ans, tot_num_of_ans;
    198     unsigned long hops_taken, tot_hops_taken;
    199     unsigned long text_idx_lookups, tot_text_idx_lookups;
    200     unsigned long 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;
    201201    unsigned doc_pos;
    202202    unsigned buf_in_use;
     
    226226query_data *InitQuerySystem (char *dir, char *name, char *textname, InitQueryTimes * iqt);
    227227
    228 void ChangeMemInUse (query_data * qd, long delta);
     228void ChangeMemInUse (query_data * qd, mg_s_long delta);
    229229
    230230void FinishQuerySystem (query_data * qd);
     
    251251float GetDocWeight (query_data * qd);
    252252
    253 long GetDocCompLength (query_data * qd);
    254 
    255 u_char *GetDocText (query_data * qd, unsigned long *len);
     253mg_s_long GetDocCompLength (query_data * qd);
     254
     255u_char *GetDocText (query_data * qd, mg_u_long *len);
    256256
    257257DocEntry *GetDocChain (query_data * qd);
Note: See TracChangeset for help on using the changeset viewer.