EmmanuelOga / hypergraphdb

Automatically exported from code.google.com/p/hypergraphdb
1 stars 0 forks source link

Add support for string value matching #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Functionality similar to SQL LIKE would suffice, but it is probably wise to 
allow a Regex. Basic rooted expressions could use an index to speed things up, 
but that is a secondary priority.

Mongodb has a similar feature, see
http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-RegularExpr
essions

Attached is an initial implementation. It does not use indexes. I'm a bit in 
doubt whether it should be named Predicate or Condition.

Original issue reported on code.google.com by cgbeek...@gmail.com on 16 Jun 2011 at 1:48

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied with a small method change: the hg.regEx factory methods are 
called hg.matches instead.

Original comment by borislav...@gmail.com on 22 Jun 2011 at 6:38