[ https://issues.apache.org/jira/browse/METAMODEL-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156750#comment-14156750 ]
ASF GitHub Bot commented on METAMODEL-18: ----------------------------------------- Github user hsaputra commented on a diff in the pull request: https://github.com/apache/incubator-metamodel/pull/2#discussion_r18351728 --- Diff: cassandra/src/main/java/org/apache/metamodel/cassandra/CassandraDataContext.java --- @@ -0,0 +1,205 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.metamodel.cassandra; + +import com.datastax.driver.core.*; +import com.datastax.driver.core.querybuilder.QueryBuilder; +import com.datastax.driver.core.querybuilder.Select; + +import org.apache.metamodel.DataContext; +import org.apache.metamodel.MetaModelException; +import org.apache.metamodel.QueryPostprocessDataContext; +import org.apache.metamodel.data.DataSet; +import org.apache.metamodel.query.FilterItem; +import org.apache.metamodel.schema.*; +import org.apache.metamodel.util.SimpleTableDef; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.Collection; +import java.util.Iterator; +import java.util.List; + +/** + * DataContext implementation for Apache Cassandra database. + * + * When instantiating this DataContext, a keyspace name is provided. In Cassandra, + * the keyspace is the container for your application data, similar to a schema in + * a relational database. Keyspaces are used to group column families together. + * + * This implementation supports either automatic discovery of a schema or manual + * specification of a schema, through the {@link SimpleTableDef} class. + * + * @author Alberto Rodriguez --- End diff -- We do not use @author tag in the MetaModel project so need to remove them > Cassandra DB support for MetaModel > ---------------------------------- > > Key: METAMODEL-18 > URL: https://issues.apache.org/jira/browse/METAMODEL-18 > Project: Metamodel > Issue Type: New Feature > Reporter: Kasper Sørensen > Priority: Critical > > A new module for MetaModel, providing support for Cassandra. > Note that Cassandra in many respects is similar to HBase, and we might run > into some of the same issues. Check METAMODEL-13 for our HBase module JIRA > issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)