cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Morton (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-2704) provide a typed key value for returned rows via JDBC
Date Thu, 26 May 2011 09:22:49 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aaron Morton updated CASSANDRA-2704:
------------------------------------

    Attachment: 0001-2704.patch

I'd already written the code last night before creating the ticket,and getting distracted
by an unhappy toddler. So I may as well add it. 

The CassandraResultSet already provides the key as a byte[], this patch makes it available
as a typed value like the columns. Handy for times when the key cannot projected into the
result set. 

> provide a typed key value for returned rows via JDBC
> ----------------------------------------------------
>
>                 Key: CASSANDRA-2704
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2704
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.8.0 beta 2
>            Reporter: Aaron Morton
>            Priority: Minor
>         Attachments: 0001-2704.patch
>
>
> o.a.c.c.jdbc.CassandraResultSet provides access to column values as Cassandra type aware
via the TypedColumn. But it only provides a byte[] for the key. It would be handy to have
a TypedKey class that does the same but for the key.
> This would be handy when doing a multi SELECT as the server only returns rows we have
columns for.   

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message