Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Read() and Take() based on condition.

One can read or take from the space based on a template but is it possible to take an entry for a scenario say:

Take all entries where starttime > 999999

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2260]{quote}

asked 2006-06-28 22:58:00 -0500

cylus's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Cylus, You can use SQLQuery for this.

See: http://www.gigaspaces.com/docs/manual...

Your code will look something like: {code} SQLQuery query = new SQLQuery(new MyEntry(),"m_integer>500";); Entry result[] = space.readMultiple(query, null,Integer.MAX_VALUE);{code}

Just think about this as a JavaSpaces query with a WHERE clause.

  • Gad

answered 2006-07-03 14:31:00 -0500

gbarnea's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2006-06-28 22:58:00 -0500

Seen: 62 times

Last updated: Jul 03 '06