[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


how to simulate database indexing

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

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

Accepted Solution

CEHJ earned 336 total points
ID: 13801801
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

aozarov earned 332 total points
ID: 13803326
Read (Implementations and indexing) at http://en.wikipedia.org/wiki/Databases
For BTree code you can play with: http://www.virtualmachinery.com/btreeprod.htm
(they also have nice tutorial about BTrees -> http://www.virtualmachinery.com/btreeguide.htm)
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 332 total points
ID: 13803752

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

872 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