cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Wiesenbacher (JIRA)" <j...@apache.org>
Subject [jira] Created: (CASSANDRA-2205) Can´t get columns with multiget_slice because of ByteBuffer-key
Date Mon, 21 Feb 2011 11:39:38 GMT
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

       

Mime
View raw message