The InverseRangeIndex sample is provided for a quick introduction to the Inverse Range Index feature. It consists of shell and batch scripts designed to start a simple grid with very little customization needed. The sample shows how to use WebSphere eXtreme Scale for indexing Range style data that can be looked up efficiently. This sample can be run with WebSphere eXtreme Scale or IBM DataPower XC10 Appliance.

If you have data contains range attributes, you can use Inverse Range index to index over range attributes and use index to search data by range criteria. A range attribute is defined as a segment with start and end value. Index searching means to find data that has the range that contains the range criteria.

Consider the following Product promotion data:

"Product", "Condition" and "Country" are non-range attributes. Where as "Start Promotion" and "End Promotion" are one set of range style attribute for Promotion Date. Similarly "Min. RAM" and "Max. RAM" are another set of range attribute for RAM.

Product

Start Promotion

End Promotion

Min. RAM

Max. Ram

Condition

Country

Price

SmartPhone_1

01/01/2007

12/31/2008

2

4

Good

US

$550

SmartPhone_1

01/01/2009

12/31/2011

2

4

Good

US

$850

TouchPad_1

01/01/2008

12/31/2010

2

4

Good

US

$799

TouchPad_1

01/01/2011

12/31/2012

2

4

Good

US

$999

As per the preceding data Index searching for the price of SmartPhone_1 on 06/01/2007 with 4GB RAM that is in Good condition will be sold in US is $550.

Directory Structure-------------------This sample should be extracted into the <installRoot>/ObjectGrid/samples directory. The resulting directory structure should look as follows:<installRoot>/ObjectGrid/samples/InverseRangeIndex/

* Substitute the path to the eXtreme Scale installation root directory or the root file path of the extracted eXtreme Scale trial <installRoot>

This sample includes a client subdirectory which demonstrates how to use WebSphere eXtreme Scale for indexing Range style data that can be looked up efficiently.