You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2014/02/04 07:07:38 UTC

git commit: make CqlRecordWriter extensible

Updated Branches:
  refs/heads/trunk b25a63a81 -> 0842681e2


make CqlRecordWriter extensible


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0842681e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0842681e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0842681e

Branch: refs/heads/trunk
Commit: 0842681e214229b5d83283574911d70b5b050586
Parents: b25a63a
Author: Jonathan Ellis <jb...@apache.org>
Authored: Tue Feb 4 00:07:30 2014 -0600
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Tue Feb 4 00:07:30 2014 -0600

----------------------------------------------------------------------
 .../apache/cassandra/hadoop/cql3/CqlRecordWriter.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0842681e/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
index 27d1c70..e354ad6 100644
--- a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
+++ b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
@@ -59,21 +59,21 @@ import org.apache.thrift.transport.TTransport;
  *
  * @see CqlOutputFormat
  */
-final class CqlRecordWriter extends AbstractColumnFamilyRecordWriter<Map<String, ByteBuffer>, List<ByteBuffer>>
+class CqlRecordWriter extends AbstractColumnFamilyRecordWriter<Map<String, ByteBuffer>, List<ByteBuffer>>
 {
     private static final Logger logger = LoggerFactory.getLogger(CqlRecordWriter.class);
 
     // handles for clients for each range running in the threadpool
-    private final Map<Range, RangeClient> clients;
+    protected final Map<Range, RangeClient> clients;
 
     // host to prepared statement id mappings
-    private ConcurrentHashMap<Cassandra.Client, Integer> preparedStatements = new ConcurrentHashMap<Cassandra.Client, Integer>();
+    protected final ConcurrentHashMap<Cassandra.Client, Integer> preparedStatements = new ConcurrentHashMap<Cassandra.Client, Integer>();
 
-    private final String cql;
+    protected final String cql;
 
-    private AbstractType<?> keyValidator;
-    private String [] partitionKeyColumns;
-    private List<String> clusterColumns;
+    protected AbstractType<?> keyValidator;
+    protected String [] partitionKeyColumns;
+    protected List<String> clusterColumns;
 
     /**
      * Upon construction, obtain the map that this writer will use to collect