cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Rivero (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5402) Add secondary indexes on multiple columns.
Date Sat, 30 Mar 2013 21:21:16 GMT


Alejandro Rivero commented on CASSANDRA-5402:

To expand on the suggestion; I would expect some kind of column definition as

column_metadata =
        column_name : MyIndexedColumn1,
        validation_class : IntegerType,
        index_type : 99,
        index_name : "MyIdxName:0"},
        column_name : MyIndexedColumn2,
        validation_class : UTF8Type,
        index_type : 99,
        index_name : "MyIdxName:1"}]

And it should produce a secondary index 
MyIdxName with a comparator CompositeType(IntegerType, UTF8Type)

> Add secondary indexes on multiple columns.
> ------------------------------------------
>                 Key: CASSANDRA-5402
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Alejandro Rivero
>              Labels: features, newbie
>   Original Estimate: 336h
>  Remaining Estimate: 336h
> Using as index a CompositeType it seems that it should be possible to build a secondary
index on two or more columns. (If it is already implemented, please consider this issue a
documentation bug :-)
> A possible way to implement this  the old interface is to use the same index_name for
all the involved columns, or perhaps a combination of index_name plus a suffix telling the
position of each column in the corresponding  CompositeType of the index.

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:

View raw message