Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF query and index(How to index attributes in EMF query?)
EMF query and index [message #684284] Wed, 15 June 2011 11:02 Go to next message
André B hlke is currently offline André B hlkeFriend
Messages: 14
Registered: July 2010
Junior Member
Hi,

EMF query2 provides support for indexing EObject type and references between EObjects. The "EMF index" project provides support for indexing attributes of EObjects, but only has rudimentary query support.

Are there plans to merge the EMF query2 and EMF index projects? In my opinion, query2 should be able to index attributes, and EMF index needs better query support like in EMF query2!

What can I do, if I need attribute indexes in EMF query2?

Thank you in advance!

Greetings,
André

[Updated on: Wed, 15 June 2011 11:04]

Report message to a moderator

Re: EMF query and index [message #684356 is a reply to message #684284] Wed, 15 June 2011 13:21 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi André,

Yes you are right in your points.

There had been discussions going on to merge EMF Index and Query2.
But unfortunately due to some reasons it did not happen.One of the reasons being
lack of community interest.

Right now with Query2 you can index an attribute named 'name'. We can provide some APIs to index
an attribute of user's choice if you want.Right now the Index is called as a 'Slim Index'.

Indexing attributes would mean having a full indexing behaviour.We have this thing in plan for Query2.
But again due to lack of time this has not come as a priority.

cheers,
Saurav


Re: EMF query and index [message #684361 is a reply to message #684356] Wed, 15 June 2011 13:35 Go to previous messageGo to next message
André B hlke is currently offline André B hlkeFriend
Messages: 14
Registered: July 2010
Junior Member
Hi Saurav,

thank you for the instant reply!

We are building an application heavily based on EMF. I wonder how other such projects cannot require comprehensive indexing support.

Making the indexed attribute customisable is a good start, thank you.
I suppose, contributions for making the index less "slim" are welcome. So if we extend the indexes in Query2, I will let you know.

Greetings,
André
Re: EMF query and index [message #684366 is a reply to message #684361] Wed, 15 June 2011 13:44 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi André,

Yes most projects require index.Its just that they sometimes are unaware of the advantage they get by having the index.

It would be good if you wish to extend Query2 indexes and moreover if you would like to contribute them back.
Meanwhile if you need any help just let us know.

Cheers,
Saurav


Re: EMF query and index [message #684454 is a reply to message #684366] Wed, 15 June 2011 15:43 Go to previous messageGo to next message
André B hlke is currently offline André B hlkeFriend
Messages: 14
Registered: July 2010
Junior Member
Hi,

I dream of a world where JDT, PDT, etc. use EMF, so we can merge all indexing/query techniques into one project. Why do we always have to reinvent the stuff?

With EMF as the foundation of Eclipse projects, M2M transformations etc. would be easy to integrate, without discovery steps/MWE workflows etc.
Even the Java Editor might be Xtext based, after the generic part of the JDT Java editor was merged into Xtext.

I think, models drive software development. So why not understand everything we touch with Eclipse as an interconnected EMF based model...

Sorry, if I am somewhat off topic.

Greetings,
André
Re: EMF query and index [message #687204 is a reply to message #684284] Wed, 15 June 2011 12:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
André,

The Xtext folks worked on an index as did the Query2 folks. There was
some effort a while back into merging the two approaches as part of the
EMF index project, but changes to the Query2 team seems to have stalled
that effort. I.e., EMF Index appears to be going nowhere.


Andr wrote:
> Hi,
>
> EMF query2 provides support for indexing EObject type and references
> between EObjects. The "EMF index" project provides support for
> indexing attributes of EObjects, but only has rudimentary query support.
>
> Are there plans to merge the EMF query2 and EMF index projects? In my
> opinion, query2 should be able to index attributes, and EMF index
> needs better query support like in EMF query2!
>
> What can I do, if I need attribute indexes in EMF query2?
>
> Thank for in advance!
>
> Greetings,
> André


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF query and index [message #687209 is a reply to message #684454] Wed, 15 June 2011 17:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Andr,

Yes, that would be very nice. Many people feel this way. :-)

The MoDisco project has a nice Java model...


Andr wrote:
> Hi,
>
> I dream of a world where JDT, PDT, etc. use EMF, so we can merge all
> indexing/query techniques into one project. Why do we always have to
> reinvent the stuff?
>
> With EMF as the foundation of Eclipse projects, M2M transformations
> etc. would be easy to integrate, without discovery steps/MWE workflows
> etc.
> Even the Java Editor might be Xtext based, after the generic part of
> the JDT Java editor was merged into Xtext.
>
> I think, models drive software development. So why not understand
> everything we touch with Eclipse as an interconnected EMF based model...
>
> Sorry, if I am somewhat off topic.
>
> Greetings,
> André


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF query and index [message #687482 is a reply to message #684454] Wed, 15 June 2011 17:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Andr,

Yes, that would be very nice. Many people feel this way. :-)

The MoDisco project has a nice Java model...


Andr wrote:
> Hi,
>
> I dream of a world where JDT, PDT, etc. use EMF, so we can merge all
> indexing/query techniques into one project. Why do we always have to
> reinvent the stuff?
>
> With EMF as the foundation of Eclipse projects, M2M transformations
> etc. would be easy to integrate, without discovery steps/MWE workflows
> etc.
> Even the Java Editor might be Xtext based, after the generic part of
> the JDT Java editor was merged into Xtext.
>
> I think, models drive software development. So why not understand
> everything we touch with Eclipse as an interconnected EMF based model...
>
> Sorry, if I am somewhat off topic.
>
> Greetings,
> André


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:(no subject)
Next Topic:Reuse Modisco's genmodel
Goto Forum:
  


Current Time: Tue Apr 16 08:46:54 GMT 2024

Powered by FUDForum. Page generated in 0.83048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top