how to simulate database indexing

Posted on 2005-04-17
Last Modified: 2010-03-31

what is database indexing methods and how to simulate it using java
Question by:Klinezs
    LVL 86

    Accepted Solution

    The easiest way to simulate it is to use a Map:

    Map index = new HashMap();
    map.put("1", "first name");
    map.put("2", "second name");

    LVL 15

    Assisted Solution

    Read (Implementations and indexing) at
    For BTree code you can play with:
    (they also have nice tutorial about BTrees ->
    LVL 30

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    squareUp  challenge 22 81
    userCompare  challenge 3 54
    count11 challenge 6 33
    pairs challenge 5 29
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now