Ignore:
Timestamp:
2010-01-21T15:59:35+13:00 (14 years ago)
Author:
mdewsnip
Message:

Changed lots of occurrences of "GDBM" in comments, variable names and function names, where the code isn't GDBM-specific. Part of making the code less GDBM-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/IncrementalBuildUtils.pm

    r21562 r21564  
    3131#  *               by John Rowe
    3232#  *  @version 2.0 Package version including seperation from calling code and
    33 #  *               modularisation by creating gdbmget, gdbmset and
    34 #  *               get_database_path by John Rowe
     33#  *               modularisation by John Rowe
    3534#  *
    3635#  *  @author John Thompson, DL Consulting Ltd.
     
    153152#  *  1. The Lucene index must be updated. This will involve removing any
    154153#  *     existing value and, if required, adding a new value in its place.
    155 #  *  2. The GDBM database must be updated. Again any existing value will be
     154#  *  2. The info database must be updated. Again any existing value will be
    156155#  *     removed and, if required, a new value added.
    157156#  *  3. Finally a check against the collect.cfg will be done to determine if
     
    165164#  *  A. Establish connection to Lucene
    166165#  *  B. Create a IncrementalDocument object for 'NT1' loading the information
    167 #  *     from the GDBM
     166#  *     from the info database
    168167#  *  C. Check to see if this metadata is used to build a classifier(s) and if
    169168#  *     so create the appropriate ClassifyTreeModel(s)
     
    177176#  *     iii/ Call addDocument() in ClassifyTreeModel(s) as necessary
    178177#  *  F. Complete Lucene transaction
    179 #  *  G. Save IncrementalDocument to GDBM
    180 #  *  Note: ClassifyTreeModel automatically updates GDBM as necessary.
     178#  *  G. Save IncrementalDocument to info database
     179#  *  Note: ClassifyTreeModel automatically updates the info database as necessary.
    181180#  *
    182181#  *  @param  $collection  The name of the collection to update as a string
     
    202201    #    Lucene daemon.
    203202    # B. Create a IncrementalDocument object for 'NT1' loading the information
    204     #    from the GDBM
     203    #    from the info database
    205204    print STDERR "* creating incremental document for $oid\n" unless !$debug;
    206205    my $doc_obj = new IncrementalDocument($collection, $oid);
     
    232231    if (defined($old_value) && $old_value =~ /[\w\d]+/)
    233232      {
    234         print STDERR "* removing '$key'='$old_value' from GDBM database for document $oid\n" unless !$debug;
     233        print STDERR "* removing '$key'='$old_value' from info database for document $oid\n" unless !$debug;
    235234        # i/   Call ??? to remove key-value from Lucene index
    236235        #      Moved elsewhere
     
    247246    if (defined($new_value) && $new_value =~ /[\w\d]+/)
    248247      {
    249         print STDERR "* adding '$key'='$new_value' to GDBM database for document $oid\n" unless !$debug;
     248        print STDERR "* adding '$key'='$new_value' to info database for document $oid\n" unless !$debug;
    250249        # i/   Call ??? to add key-value from Lucene index
    251250        #      Moved elsewhere
     
    265264        &callGS2LuceneEditor($collection, $doc_obj->getDocNum, $key, $old_value, $new_value);
    266265      }
    267     # G. Save IncrementalDocument to GDBM
     266    # G. Save IncrementalDocument to info database
    268267    $doc_obj->saveDocument();
    269268    $doc_obj = 0;
     
    371370# /** callGS2LuceneEditor() **/
    372371
    373 ## Remove a document from the GDBM and Index.
     372## Remove a document from the info database and Index.
    374373#
    375374#  @param  collection  The collection to alter
     
    388387    if ($doc_num > -1)
    389388      {
    390         # Now use the GDBM utils to write a blank string to this oid in the
    391         # database
     389        # Now write a blank string to this oid in the info database
    392390    my $index_text_directory_path = &util::filename_cat($ENV{'GSDLHOME'}, "collect", $collection, "index", "text");
    393391    my $infodb_file_path = &dbutil::get_infodb_file_path("gdbm", $collection, $index_text_directory_path);
Note: See TracChangeset for help on using the changeset viewer.