incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Williams (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BLUR-304) Add a Run or Execute command to the shell
Date Thu, 04 Sep 2014 13:08:52 GMT

     [ https://issues.apache.org/jira/browse/BLUR-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Williams updated BLUR-304:
------------------------------
    Component/s: Blur Shell

> Add a Run or Execute command to the shell
> -----------------------------------------
>
>                 Key: BLUR-304
>                 URL: https://issues.apache.org/jira/browse/BLUR-304
>             Project: Apache Blur
>          Issue Type: New Feature
>          Components: Blur Shell
>            Reporter: Tim Williams
>            Priority: Minor
>
> It'd be helpful to be able to execute a query from a file in the shell.  For example:
> run mytable /path/to/query.json
> I think we could also provide a simple utility that does the writing, to make it easy
to write to a logger... e.g. 
> QueryWriter.toJsonString(BlurQuery q) {
>   ... 
>   TProtocol p = new TJSONProtocol(new TIOStreamTransport(...));
>   q.write(p);
>   ... 
> }
> Then the shell can just inflate the object and run the query, e.g. 
>   BIS in = new BufferedInputStream(new FIS(query.json));
>   TProtocol p = new TJSONProtocol(new TIOStreamTransport(in));
>   TBase<BlurQuery, BlurQuery._Fields> tbase = new BlurQuery();
>   tbase.read(p);
> It'd be helpful for debugging large queries with unique characteristics (e.g. loads of
facets). 



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

Mime
View raw message