You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Markus Wiesenbacher (JIRA)" <ji...@apache.org> on 2011/02/21 13:06:38 UTC

[jira] Resolved: (CASSANDRA-2205) Can´t get columns with multiget_slice because of ByteBuffer-key

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

Markus Wiesenbacher resolved CASSANDRA-2205.
--------------------------------------------

    Resolution: Not A Problem

Sorry, that seems to be an mistake, I am really sorry.

> Can´t get columns with multiget_slice because of ByteBuffer-key
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2205
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2205
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.7.2
>            Reporter: Markus Wiesenbacher
>
> I try to usw use this to get columns/rows with multiget_slice, what doesn´t work:
> [CODE]
> Map<ByteBuffer, List<ColumnOrSuperColumn>> rows = client.multiget_slice (List_rowNames, columnParent, predicate, ConsistencyLevel.ONE);
> for (ByteBuffer rowKey : rows.keySet())
> 	List<ColumnOrSuperColumn> List_rowColumns = rows.get(rowKey);
> [/CODE]
> I guess that´s because rows.keySet does return a copy and so by reference doesn´t work anymore.
> This would work but so I can´t access the key anymore:
> [CODE]
> Map<ByteBuffer, List<ColumnOrSuperColumn>> rows = client.multiget_slice (List_rowNames, columnParent, predicate, ConsistencyLevel.ONE);
> Iterator<ByteBuffer> iter = rows.keySet().iterator();
> while (iter.hasNext())
> 	List<ColumnOrSuperColumn> List_rowColumns = rows.get(iter.next());
> [/CODE]
> Best regards
> wiesi ;)

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