{"action":"created","comment":{"url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/comments/25812580","id":25812580,"diff_hunk":"@@ -1,144 +0,0 @@\n-package com.datastax.spark.connector.japi.rdd;\n-\n-import com.datastax.spark.connector.SelectableColumnRef;\n-import com.datastax.spark.connector.cql.CassandraConnector;\n-import com.datastax.spark.connector.japi.CassandraJavaUtil;\n-import com.datastax.spark.connector.NamedColumnRef;\n-import com.datastax.spark.connector.rdd.CassandraRDD;\n-import com.datastax.spark.connector.rdd.ReadConf;\n-import com.datastax.spark.connector.util.JavaApiHelper;\n-import org.apache.spark.api.java.JavaPairRDD;\n-import scala.Tuple2;\n-import scala.reflect.ClassTag;\n-\n-import static com.datastax.spark.connector.util.JavaApiHelper.getClassTag;\n-import static com.datastax.spark.connector.util.JavaApiHelper.toScalaSeq;\n-\n-/**\n- * A Java API wrapper over {@link com.datastax.spark.connector.rdd.CassandraRDD} of tuples to provide Spark Cassandra\n- * Connector functionality in Java.\n- *\n- * <p>The wrapper can be obtained by one of the methods of {@link com.datastax.spark.connector.japi.SparkContextJavaFunctions}\n- * or {@link com.datastax.spark.connector.japi.StreamingContextJavaFunctions}.</p>\n- */\n-public class CassandraJavaPairRDD<K, V> extends JavaPairRDD<K, V> {\n-    public CassandraJavaPairRDD(CassandraRDD<Tuple2<K, V>> rdd, Class<K> keyClass, Class<V> valueClass) {\n-        super(rdd, getClassTag(keyClass), getClassTag(valueClass));\n-    }\n-\n-    public CassandraJavaPairRDD(CassandraRDD<Tuple2<K, V>> rdd, ClassTag<K> keyClassTag, ClassTag<V> valueClassTag) {\n-        super(rdd, keyClassTag, valueClassTag);\n-    }\n-\n-    @Override\n-    public CassandraRDD<Tuple2<K, V>> rdd() {\n-        return (CassandraRDD<Tuple2<K, V>>) super.rdd();\n-    }\n-\n-    /**\n-     * Narrows down the selected set of columns.\n-     *\n-     * <p>Use this for better performance, when you don't need all the columns in the result RDD. When called multiple\n-     * times, it selects the subset of the already selected columns, so after a column was removed by the previous\n-     * {@code select} call, it is not possible to add it back.</p>\n-     */\n-    public CassandraJavaPairRDD<K, V> select(String... columnNames) {\n-        // explicit type argument is intentional and required here\n-        //noinspection RedundantTypeArguments\n-        CassandraRDD<Tuple2<K, V>> newRDD = rdd().select(JavaApiHelper.<SelectableColumnRef>toScalaSeq(CassandraJavaUtil.convert(columnNames)));\n-        return new CassandraJavaPairRDD<>(newRDD, kClassTag(), vClassTag());\n-    }\n-\n-    /**\n-     * Narrows down the selected set of columns.\n-     *\n-     * <p>Use this for better performance, when you don't need all the columns in the result RDD. When called multiple\n-     * times, it selects the subset of the already selected columns, so after a column was removed by the previous\n-     * {@code select} call, it is not possible to add it back.</p>\n-     */\n-    public CassandraJavaPairRDD<K, V> select(SelectableColumnRef... selectionColumns) {\n-        // explicit type argument is intentional and required here\n-        //noinspection RedundantTypeArguments\n-        CassandraRDD<Tuple2<K, V>> newRDD = rdd().select(JavaApiHelper.<SelectableColumnRef>toScalaSeq(selectionColumns));\n-        return new CassandraJavaPairRDD<>(newRDD, kClassTag(), vClassTag());\n-    }\n-\n-    /**\n-     * Adds a CQL {@code WHERE} predicate(s) to the query.\n-     *\n-     * <p>Useful for leveraging secondary indexes in Cassandra. Implicitly adds an {@code ALLOW FILTERING} clause to the\n-     * {@code WHERE} clause, however beware that some predicates might be rejected by Cassandra, particularly in cases\n-     * when they filter on an unindexed, non-clustering column.</p>\n-     */\n-    public CassandraJavaPairRDD<K, V> where(String cqlWhereClause, Object... args) {\n-        CassandraRDD<Tuple2<K, V>> newRDD = rdd().where(cqlWhereClause, toScalaSeq(args));\n-        return new CassandraJavaPairRDD<>(newRDD, kClassTag(), vClassTag());\n-    }\n-\n-    /**\n-     * Forces the rows within a selected Cassandra partition to be returned in ascending order\n-     * (if possible).\n-     */\n-    public CassandraJavaPairRDD<K, V> withAscOrder() {\n-        CassandraRDD<Tuple2<K, V>> newRDD = rdd().withAscOrder();\n-        return new CassandraJavaPairRDD<>(newRDD, kClassTag(), vClassTag());\n-    }\n-\n-    /**\n-     * Forces the rows within a selected Cassandra partition to be returned in descending order\n-     * (if possible).\n-     */\n-    public CassandraJavaPairRDD<K, V> withDescOrder() {\n-        CassandraRDD<Tuple2<K, V>> newRDD = rdd().withAscOrder();\n-        return new CassandraJavaPairRDD<>(newRDD, kClassTag(), vClassTag());\n-    }\n-\n-    /**\n-     * Adds the limit clause to CQL select statement. The limit will be applied for each created\n-     * Spark partition. In other words, unless the data are fetched from a single Cassandra partition\n-     * the number of results is unpredictable.\n-     * <p/>\n-     * The main purpose of passing limit clause is to fetch top n rows from a single Cassandra\n-     * partition when the table is designed so that it uses clustering keys and a partition key\n-     * predicate is passed to the where clause.\n-     */\n-    public CassandraJavaPairRDD<K, V> limit(Long rowsNumber) {","path":"spark-cassandra-connector-java/src/main/java/com/datastax/spark/connector/japi/rdd/CassandraJavaPairRDD.java","position":105,"original_position":105,"commit_id":"77cfa360049a99588a29ffb4e70c8510e96fa06f","original_commit_id":"77cfa360049a99588a29ffb4e70c8510e96fa06f","user":{"login":"jacek-lewandowski","id":6516951,"avatar_url":"https://avatars.githubusercontent.com/u/6516951?v=3","gravatar_id":"","url":"https://api.github.com/users/jacek-lewandowski","html_url":"https://github.com/jacek-lewandowski","followers_url":"https://api.github.com/users/jacek-lewandowski/followers","following_url":"https://api.github.com/users/jacek-lewandowski/following{/other_user}","gists_url":"https://api.github.com/users/jacek-lewandowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jacek-lewandowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacek-lewandowski/subscriptions","organizations_url":"https://api.github.com/users/jacek-lewandowski/orgs","repos_url":"https://api.github.com/users/jacek-lewandowski/repos","events_url":"https://api.github.com/users/jacek-lewandowski/events{/privacy}","received_events_url":"https://api.github.com/users/jacek-lewandowski/received_events","type":"User","site_admin":false},"body":"missing method","created_at":"2015-03-04T20:50:54Z","updated_at":"2015-03-04T20:50:54Z","html_url":"https://github.com/datastax/spark-cassandra-connector/pull/573#discussion_r25812580","pull_request_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573","_links":{"self":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/comments/25812580"},"html":{"href":"https://github.com/datastax/spark-cassandra-connector/pull/573#discussion_r25812580"},"pull_request":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573"}}},"pull_request":{"url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573","id":30498010,"html_url":"https://github.com/datastax/spark-cassandra-connector/pull/573","diff_url":"https://github.com/datastax/spark-cassandra-connector/pull/573.diff","patch_url":"https://github.com/datastax/spark-cassandra-connector/pull/573.patch","issue_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/573","number":573,"state":"open","locked":false,"title":"SPARKC-22 Upgrade to Scala 2.11 and Add cross build.","user":{"login":"helena","id":406103,"avatar_url":"https://avatars.githubusercontent.com/u/406103?v=3","gravatar_id":"","url":"https://api.github.com/users/helena","html_url":"https://github.com/helena","followers_url":"https://api.github.com/users/helena/followers","following_url":"https://api.github.com/users/helena/following{/other_user}","gists_url":"https://api.github.com/users/helena/gists{/gist_id}","starred_url":"https://api.github.com/users/helena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helena/subscriptions","organizations_url":"https://api.github.com/users/helena/orgs","repos_url":"https://api.github.com/users/helena/repos","events_url":"https://api.github.com/users/helena/events{/privacy}","received_events_url":"https://api.github.com/users/helena/received_events","type":"User","site_admin":false},"body":"The squashed version, want it reviewed because there were so many changes in master, big refactors, that my rebase has issues in the java api now.","created_at":"2015-03-04T19:51:01Z","updated_at":"2015-03-04T20:50:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6916ccc400458fc638521702a621d51ca2186824","assignee":{"login":"jacek-lewandowski","id":6516951,"avatar_url":"https://avatars.githubusercontent.com/u/6516951?v=3","gravatar_id":"","url":"https://api.github.com/users/jacek-lewandowski","html_url":"https://github.com/jacek-lewandowski","followers_url":"https://api.github.com/users/jacek-lewandowski/followers","following_url":"https://api.github.com/users/jacek-lewandowski/following{/other_user}","gists_url":"https://api.github.com/users/jacek-lewandowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jacek-lewandowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacek-lewandowski/subscriptions","organizations_url":"https://api.github.com/users/jacek-lewandowski/orgs","repos_url":"https://api.github.com/users/jacek-lewandowski/repos","events_url":"https://api.github.com/users/jacek-lewandowski/events{/privacy}","received_events_url":"https://api.github.com/users/jacek-lewandowski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573/commits","review_comments_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573/comments","review_comment_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/573/comments","statuses_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/statuses/77cfa360049a99588a29ffb4e70c8510e96fa06f","head":{"label":"datastax:SPARKC-22-scala-upgrade-crossbuild4","ref":"SPARKC-22-scala-upgrade-crossbuild4","sha":"77cfa360049a99588a29ffb4e70c8510e96fa06f","user":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"repo":{"id":21280887,"name":"spark-cassandra-connector","full_name":"datastax/spark-cassandra-connector","owner":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datastax/spark-cassandra-connector","description":"If you write a Spark application that needs access to Cassandra, this library is for you","fork":false,"url":"https://api.github.com/repos/datastax/spark-cassandra-connector","forks_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/forks","keys_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/teams","hooks_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/hooks","issue_events_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/events{/number}","events_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/events","assignees_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/assignees{/user}","branches_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/branches{/branch}","tags_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/tags","blobs_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/languages","stargazers_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/stargazers","contributors_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/contributors","subscribers_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/subscribers","subscription_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/subscription","commits_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/contents/{+path}","compare_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/merges","archive_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/downloads","issues_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues{/number}","pulls_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/labels{/name}","releases_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/releases{/id}","created_at":"2014-06-27T15:45:54Z","updated_at":"2015-03-04T14:57:11Z","pushed_at":"2015-03-04T20:29:32Z","git_url":"git://github.com/datastax/spark-cassandra-connector.git","ssh_url":"git@github.com:datastax/spark-cassandra-connector.git","clone_url":"https://github.com/datastax/spark-cassandra-connector.git","svn_url":"https://github.com/datastax/spark-cassandra-connector","homepage":"","size":6866,"stargazers_count":420,"watchers_count":420,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":16,"forks":115,"open_issues":16,"watchers":420,"default_branch":"master"}},"base":{"label":"datastax:master","ref":"master","sha":"8b460c505c634da59fd32da3b8f3e394bceac997","user":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"repo":{"id":21280887,"name":"spark-cassandra-connector","full_name":"datastax/spark-cassandra-connector","owner":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datastax/spark-cassandra-connector","description":"If you write a Spark application that needs access to Cassandra, this library is for you","fork":false,"url":"https://api.github.com/repos/datastax/spark-cassandra-connector","forks_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/forks","keys_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/teams","hooks_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/hooks","issue_events_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/events{/number}","events_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/events","assignees_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/assignees{/user}","branches_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/branches{/branch}","tags_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/tags","blobs_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/languages","stargazers_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/stargazers","contributors_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/contributors","subscribers_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/subscribers","subscription_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/subscription","commits_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/contents/{+path}","compare_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/merges","archive_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/downloads","issues_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues{/number}","pulls_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/labels{/name}","releases_url":"https://api.github.com/repos/datastax/spark-cassandra-connector/releases{/id}","created_at":"2014-06-27T15:45:54Z","updated_at":"2015-03-04T14:57:11Z","pushed_at":"2015-03-04T20:29:32Z","git_url":"git://github.com/datastax/spark-cassandra-connector.git","ssh_url":"git@github.com:datastax/spark-cassandra-connector.git","clone_url":"https://github.com/datastax/spark-cassandra-connector.git","svn_url":"https://github.com/datastax/spark-cassandra-connector","homepage":"","size":6866,"stargazers_count":420,"watchers_count":420,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":16,"forks":115,"open_issues":16,"watchers":420,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573"},"html":{"href":"https://github.com/datastax/spark-cassandra-connector/pull/573"},"issue":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/573"},"comments":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/issues/573/comments"},"review_comments":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573/comments"},"review_comment":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/pulls/573/commits"},"statuses":{"href":"https://api.github.com/repos/datastax/spark-cassandra-connector/statuses/77cfa360049a99588a29ffb4e70c8510e96fa06f"}}}}