|Featured Blog Entries|
WebSphere eXtreme Scale InverseRangeIndex Sample
lisaw 0600016B42 Visits (3790)
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.
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.
This sample should be extracted into the <ins
* 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 <ins
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:
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:
The test client shows several operations on the grid including an insert and perform lookup in index on a Multi Range Index.