Return-Path: X-Original-To: apmail-metamodel-dev-archive@minotaur.apache.org Delivered-To: apmail-metamodel-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93239174D9 for ; Fri, 3 Oct 2014 06:56:08 +0000 (UTC) Received: (qmail 77143 invoked by uid 500); 3 Oct 2014 06:56:08 -0000 Delivered-To: apmail-metamodel-dev-archive@metamodel.apache.org Received: (qmail 77104 invoked by uid 500); 3 Oct 2014 06:56:08 -0000 Mailing-List: contact dev-help@metamodel.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.incubator.apache.org Delivered-To: mailing list dev@metamodel.incubator.apache.org Received: (qmail 77093 invoked by uid 99); 3 Oct 2014 06:56:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 06:56:08 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 03 Oct 2014 06:56:07 +0000 Received: (qmail 76872 invoked by uid 99); 3 Oct 2014 06:55:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 06:55:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A986BA1ECB4; Fri, 3 Oct 2014 06:55:46 +0000 (UTC) From: albertostratio To: dev@metamodel.incubator.apache.org Reply-To: dev@metamodel.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-metamodel pull request: Cassandra DB support for MetaMod... Content-Type: text/plain Message-Id: <20141003065546.A986BA1ECB4@tyr.zones.apache.org> Date: Fri, 3 Oct 2014 06:55:46 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user albertostratio commented on a diff in the pull request: https://github.com/apache/incubator-metamodel/pull/2#discussion_r18383384 --- Diff: full/src/main/java/org/apache/metamodel/DataContextFactory.java --- @@ -649,4 +651,16 @@ public static UpdateableDataContext createCouchDbDataContext(String hostname, In public static QueryPostprocessDataContext createElasticSearchDataContext(Client client, String indexName) { return new ElasticSearchDataContext(client, indexName); } + + /** + * Creates a new Cassandra datacontext. + * @param cluster + * The Cassandra client + * @param keySpaceName + * The Cassandra key space name + * @return a DataContext object that matches the request + */ + public static QueryPostprocessDataContext createCassandraDataContext(Cluster cluster, String keySpaceName) { --- End diff -- Another good point. I have also modified the createElasticSearchDataContext that was returning also a QueryPostprocessDataContext --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---