accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Newton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1014) query language
Date Fri, 03 Oct 2014 17:56:34 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158248#comment-14158248
] 

Eric Newton commented on ACCUMULO-1014:
---------------------------------------

We can close this.  I was hoping to work on a key-value specific query language that would
understand the typical schemas. But it's probably better to put the effort into specific optimizations
of existing query languages.

> query language
> --------------
>
>                 Key: ACCUMULO-1014
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1014
>             Project: Accumulo
>          Issue Type: Wish
>          Components: client
>            Reporter: Eric Newton
>            Priority: Trivial
>             Fix For: 1.7.0
>
>
> Implement a query language.
> We can do some basic selection/projection and roll-up using iterators.
> I'm thinking something like:
> {noformat}
> using LatLonRow;
> SELECT * 
>  WHERE row MATCHES LatLonRow.ranges('0.0', '0.0', '0.25', '0.25')
>    AND columnFamily == 'mapLevel2'
> ;
> {noformat}
> Given a table structure, we can support the expressiveness of JEXL and the wikisearch
example.
> {noformat}
> using ShardDocument;
> SELECT ShardDocument.document(row)
>  WHERE row MATCHES ShardDocument.ranges('1990-01-01', '2012-11-10')
>    AND ShardDocument.jexl(
>      'author ~= ".*Adams" and body = "don't" and body = 'panic'
>       );
> {noformat}
> I'm sure the syntax is highly suspect, but abuse of the index as well as the indexing
structure ought to be something expressible to mere mortals.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message