try
{
idxSystem.setBatchSize(10);
final int count = TestData.testdata.length;
DefaultZoieVersion zvt = null;
List<DataEvent<String, DefaultZoieVersion>> list = new ArrayList<DataEvent<String, DefaultZoieVersion>>(count);
for (int i = 0; i < count; i++)
{
//list.add(new DataEvent<String>(i, TestData.testdata[i]));
zvt = new DefaultZoieVersion();
zvt.setVersionId(i);
list.add(new DataEvent<String,DefaultZoieVersion>(TestData.testdata[i],zvt));
}
memoryProvider.addEvents(list);
//idxSystem.syncWthVersion(100000, count - 1);
idxSystem.syncWthVersion(100000, zvt);
Future[] futures = new Future<?>[queryRunnables.length];
for(int x = 0 ; x< queryRunnables.length; x++)
{
futures[x] = threadPool.submit(queryRunnables[x]);
}
for(int n = 1; n <= 3; n++)
{
for (int i = 0; i < count; i++)
{
//long version = n * count + i;
//list = new ArrayList<DataEvent<String>>(1);
//list.add(new DataEvent<String>(version, TestData.testdata[i]));
zvt = new DefaultZoieVersion();
long version = n * count + i;
zvt.setVersionId(version);
list = new ArrayList<DataEvent<String,DefaultZoieVersion>>(1);
list.add(new DataEvent<String,DefaultZoieVersion>(TestData.testdata[i], zvt));
memoryProvider.addEvents(list);