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 <ins
tallRoot>/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.
Running the sample
------------------
1. Open a terminal or command-line window:
Windows: set JAVA_HOME=<java home>
UNIX: export JAVA_HOME=<java home>
2. CD <installRoot>/ObjectGrid/samples/InverseRangenIndex
3. Start a catalog server:
Windows: start runcat.bat
UNIX: ./runcat.sh &
Wait several seconds for the message:
CWOBJ1001I: ObjectGrid Server cs0 is ready to process requests.
4. Start a container server:
Windows: start runcontainer.bat server0
UNIX: ./runcontainer.sh server0 &
Wait for several seconds for the message:
CWOBJ1001I: ObjectGrid Server server0 is ready to process requests.
5. Run the test client for Product Data:
Windows: runProductClient.bat
UNIX: ./runProductClient.sh
The test client shows several operations on the grid including an insert and perform lookup in
index on a Simple Range Index.
6. Run the test client for Policy Data:
Windows: runPolicyClient.bat
UNIX: ./runPolicyClient.sh
The test client shows several operations on the grid including an insert and perform lookup in index on a Multi Range Index.
Etiquetas: 
criteria
learn
range
index
indexing
plugin
search
inverserangeindex
download
sample