incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron McCurry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BLUR-221) Add terms call to shell
Date Thu, 12 Sep 2013 12:20:54 GMT

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

Aaron McCurry commented on BLUR-221:
------------------------------------

So this might be a little bit complex for just plain args into the command.

tablename is required
family is required (except for when the column a user wants is a built-in column like rowid
or recordid)
column name is required
starts with could be empty or blank or null and it would start at the beginning
size should probably be fixed internally to something like 100 or 1000

>From a usability stand point I think that a user should be able to minimize the amount
of typing they have to do to make the call.

For example I think that this should be a couple of examples of how to use the command:

#then this starts displaying all the row ids in the system
terms testtable rowid

#This command starts displaying all the terms for column "col1" in family "fam0"in the system
terms testtable fam0.col1

#This command starts displaying all the terms for column "col1" in family "fam0"in the system
starting at "value1"
terms testtable fam0.col1 -s value1

#This command starts displaying all the terms for column "col1" in family "fam0"in the system
starting at "value1" fetch 100 then exit
terms testtable fam0.col1 -s value1 -n 100

So obviously you are going to have to do some parsing of the column name to break it up into
family and column name.  Also I would suggest using the commons-cli to parse the commands,
for an example look at the create table command.

The last bit of the command will be a bit more complex, if you use the "query" command you
will notice a paging mechanism that displays a page at a time and allows the user to quit
or exit the commands output.  So if the output is greater than a single page of results you
should page, hopefully the code that's there can guide you.

Let me know if you have more questions.

Aaron

                
> Add terms call to shell
> -----------------------
>
>                 Key: BLUR-221
>                 URL: https://issues.apache.org/jira/browse/BLUR-221
>             Project: Apache Blur
>          Issue Type: Improvement
>          Components: Blur
>            Reporter: Chris Rohr
>
> It would be nice to have the terms call added to the shell

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message