Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Genezzo::Index::bt2 0.64

    Download button

    No screenshots available
    Downloads: 407  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeffrey I. Cohen | More programs
    Perl Artistic License / FREE
    September 30th, 2006, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Genezzo::Index::bt2 description

    Genezzo::Index::bt2 is a basic btree built of row directory blocks.

    Genezzo::Index::bt2 is a basic btree built of row directory blocks.

    construct comparison/equality callbacks

    my $cmp1 = sub
    {
    my ($k1, $k2) = @_;

    # NOTE: use "spaceship" (-1,0,1) comparison with
    # short-circuit OR (which returns 0 or VALUE, not 0 or 1)
    # to perform multi-column key comparison
    # a la Schwartzian Transform

    return (
    ( ($k1->[0] $k2->[0])
    || ($k1->[1] $k2->[1])) == -1
    );
    };

    my $eq1 = sub
    {
    my ($k1, $k2) = @_;
    return (($k1->[0] == $k2->[0])
    && ($k1->[1] == $k2->[1])
    );
    };

    SYNOPSIS

    use Genezzo::Index::bt?;

    my $tt = Genezzo::Index::btree->new();

    $tt->insert(1, "hi");
    $tt->insert(7, "there");

    This btree algorithm is a bottom-up implementation based upon ideas from Chapter 16 of "Algorithms in C++ (third edition)", by Robert Sedgewick, 1998 and Chapter 15, "Access Paths", of "Transaction Processing: Concepts and Techniques" by Jim Gray and Andreas Reuter, 1993. The pedagogical examples use a fixed number of entries per node, or fixed-size keys in each block, but this implementation has significant extensions to support variable numbers of variably-sized keys in fixed-size disk blocks, with the associated error handling, plus support for reverse scans.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    btree built | directory blocks | Perl module | Genezzo::Index::bt2 | btree | built

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM