Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EmfIndex Comparison"

Line 6: Line 6:
 
*How to build a convinient Query API on top of the low level API<br>
 
*How to build a convinient Query API on top of the low level API<br>
  
= API =
+
= API =
  
== Indexing 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:
+
The current proposal form itemis introduces the concept of Indexers. An Indexer extracts the data from a Model and stores it in the index:  
<pre>
+
<source lang="java">
</pre>
+
final Resource r = ...;
== Query API ==
+
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;
 +
}
 +
});
 +
</source>
 +
 +
== Query API ==
  
 
== Descriptors ==
 
== Descriptors ==

Revision as of 03:19, 2 September 2009

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

Back to the top