You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel Yaskevich (JIRA)" <ji...@apache.org> on 2010/10/19 22:07:29 UTC
[jira] Issue Comment Edited: (CASSANDRA-1615) cli index scan
support
[ https://issues.apache.org/jira/browse/CASSANDRA-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922696#action_12922696 ]
Pavel Yaskevich edited comment on CASSANDRA-1615 at 10/19/10 4:06 PM:
----------------------------------------------------------------------
I have few questions according to this task:
1). What is start_key in IndexClause and how should I set it here? (i read http://wiki.apache.org/cassandra/API and did not get it...)
2). I need to pass SlicePredicate into get_indexed_slices call, so the question is how to determine which columns should I include in it? should I include only columns from conditions?
I see that in executeList() was used the following technique for SlicePredicate:
{code}
// read all columns and superColumns
SlicePredicate predicate = new SlicePredicate();
SliceRange sliceRange = new SliceRange();
sliceRange.setStart(new byte[0]).setFinish(new byte[0]);
predicate.setSlice_range(sliceRange);
{code}
Just want to make sure I understand everything correctly here... Thanks!
was (Author: xedin):
I have few questions according to this task:
1). What is start_key in IndexClause and how should I set it here? (i read http://wiki.apache.org/cassandra/API and did not get it...)
2). I need to pass SlicePredicate into get_indexed_slices call, so the question is how to determine which columns should I include in it? should I include only columns from conditions?
I see that in executeList() was used the following technique for SlicePredicate:
{code}
// read all columns and superColumns
SlicePredicate predicate = new SlicePredicate();
SliceRange sliceRange = new SliceRange();
sliceRange.setStart(new byte[0]).setFinish(new byte[0]);
predicate.setSlice_range(sliceRange);
{code}
Just want to make sure I understand everything correctly here... Thanks!
> cli index scan support
> ----------------------
>
> Key: CASSANDRA-1615
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1615
> Project: Cassandra
> Issue Type: New Feature
> Components: Tools
> Affects Versions: 0.7 beta 1
> Reporter: Jonathan Ellis
> Assignee: Pavel Yaskevich
> Fix For: 0.7.0
>
>
> cli needs to support get_indexed_slices.
> one syntax might be
> {code}
> GET cf WHERE column1=value1 AND column2>value2
> {code}
> (OR is not supported by get_indexed_slices, only AND)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.