Jump to: navigation, search

EmfIndex Comparison

Revision as of 03:19, 2 September 2009 by B.kolb.kolbware.de (Talk | contribs)

This page is intended to compare the two index implementations form different viewpoints such as

  • API
  • Performence
  • Memory Consumption
  • How to build a convinient Query API on top of the low level API

API

Indexing API

The current proposal form itemis introduces the concept of Indexers. An Indexer extracts the data from a Model and stores it in the index:

final Resource r = ...;
final ResourceIndexerImpl resourceIndexer = new ResourceIndexerImpl();
index.executeUpdateCommand(new UpdateCommand<Boolean>() {
	public Boolean execute(IndexUpdater indexUpdater, QueryExecutor queryExecutor, Index indexStore) {
		resourceIndexer.resourceChanged(r, indexUpdater);
		return true;
	}
});

Query API

Descriptors