Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 650417858 for ; Thu, 11 Aug 2011 03:40:04 +0000 (UTC) Received: (qmail 63362 invoked by uid 500); 11 Aug 2011 03:40:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 63129 invoked by uid 500); 11 Aug 2011 03:40:01 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 63101 invoked by uid 99); 11 Aug 2011 03:39:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 03:39:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 03:39:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 92A05B7EEA for ; Thu, 11 Aug 2011 03:39:27 +0000 (UTC) Date: Thu, 11 Aug 2011 03:39:27 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <278764907.26585.1313033967597.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <869196706.23433.1312224909710.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CASSANDRA-2982) Refactor secondary index api MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-2982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082884#comment-13082884 ] Jonathan Ellis edited comment on CASSANDRA-2982 at 8/11/11 3:37 AM: -------------------------------------------------------------------- +1 v3 was (Author: jbellis): +1 > Refactor secondary index api > ---------------------------- > > Key: CASSANDRA-2982 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2982 > Project: Cassandra > Issue Type: Sub-task > Components: Core > Reporter: T Jake Luciani > Assignee: T Jake Luciani > Fix For: 1.0 > > Attachments: 2982-v1.txt, 2982-v2.txt, CASSANDRA-2982-v3.patch > > > Secondary indexes currently make some bad assumptions about the underlying indexes. > 1. That they are always stored in other column families. > 2. That there is a unique index per column > In the case of CASSANDRA-2915 neither of these are true. The new api should abstract the search concepts and allow any search api to plug in. > Once the code is refactored and basically pluggable we can remove the IndexType enum and use class names similar to how we handle partitioners and comparators. > Basic api is to add a SecondaryIndexManager that handles different index types per CF and a SecondaryIndex base class that handles a particular type implementation. > This requires major changes to ColumnFamilyStore and Table.IndexBuilder -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira