[
https://issues.apache.org/jira/browse/CASSANDRA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994775#comment-12994775
]
Vivek Mishra commented on CASSANDRA-2124:
-----------------------------------------
Eric,
I was looking into implementation of ColumnDecoder.
Available types for decoding:
1. BytesType (to be decoded as String ?)
1.a. AsciiType (to be decoded as String ?)
1.b. UTF8Type (to be decoded as String ?)
2. IntegerType (to be decoded as Integer?)
3. LexicalUUIDType (to be decoded as String ?)
4. LongType (to be decoded as Long ?)
5. TimeUUIDType (to be decoded as Date ?)
6. LocalByPartionerType (Not sure)
Now looking into these types, it looks to me that by default all of them are
decoded toString().
Let me know, if above decoding logic make sense.
While executing a cql query, we need to know it's column family name. So that
we can ask DefaultDecoder to return all column names with correct
decoding(mentioned above). Ways to retrieve this is :
1) Use CqlParser to get Statement and retrieve it from StatementType.(Same way
as it is done in QueryProcessor).
2. Writing a logic to retrieve ColumnFamily name via substring of cql query
does not make any sense.
3. Is there a way to get ColumnFamily Name from CqlResult/CqlRow itself?.
> JDBC driver for CQL
> -------------------
>
> Key: CASSANDRA-2124
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2124
> Project: Cassandra
> Issue Type: New Feature
> Components: API
> Reporter: Eric Evans
> Assignee: Vivek Mishra
> Priority: Minor
> Labels: cql
> Attachments: Cassandra-2124_v1.0, cassandra-0.7.1-2124_v2.0,
> cassandra-0.7.1-2124_v2.1
>
>
> A simple connection class and corresponding pool was created for CQL as a
> part of CASSANDRA-1710, but a JDBC driver (either in addition to, or as a
> replacement for) would also be interesting.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira