<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; User Favorites: rlebretonnic</title>
		<link><a href='http://www.datastax.com/support-forums/profile/rlebretonnic'>rlebretonnic</a></link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 04:40:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>rlebretonnic on "Hash function for getting key value"</title>
			<link>http://www.datastax.com/support-forums/topic/hash-function-for-getting-key-value#post-8476</link>
			<pubDate>Thu, 17 Jan 2013 08:15:10 +0000</pubDate>
			<dc:creator>rlebretonnic</dc:creator>
			<guid isPermaLink="false">8476@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;OK... Thank for your answer.&#60;br /&#62;
Basically it is a bad idea to mix Thrift and CQL :-)&#60;/p&#62;
&#60;p&#62;I also undestood that Cassandra's strategy is CQL according to the 1.2 documentation...&#60;/p&#62;
&#60;p&#62;Thank again. Regards.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "Hash function for getting key value"</title>
			<link>http://www.datastax.com/support-forums/topic/hash-function-for-getting-key-value#post-8433</link>
			<pubDate>Tue, 15 Jan 2013 21:02:56 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">8433@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Sorry you had trouble finding this info in the docs. Working with pre-CQL-3 applications on &#60;a href=&#34;http://www.datastax.com/docs/1.2/ddl/legacy_table&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.2/ddl/legacy_table&#60;/a&#62; has some information, but it is sketchy. &#60;/p&#62;
&#60;p&#62;The column family you created using the CLI is a compact, legacy table (Thrift-compatible), not a CQL 3 table. CQL 3 uses more metadata than Thrift and the metadata won't be there when you try to access the legacy column family using CQL 3. The way CQL 3 deals with this is twofold: CQL3 picks a default name for the row key if none exists. For the row key, that default name is KEY. When you use CQL 3 to query legacy tables with no column names defined for data within a partition, CQL 3 generates the names (column1 and value1) for the data. Row key and cell names are encoded as byte arrays. &#60;/p&#62;
&#60;p&#62;Please see &#60;a href=&#34;http://www.datastax.com/dev/blog/cql3-for-cassandra-experts&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/cql3-for-cassandra-experts&#60;/a&#62; and &#60;a href=&#34;http://www.datastax.com/dev/blog/thrift-to-cql3&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/thrift-to-cql3&#60;/a&#62; for all the details. &#60;/p&#62;
&#60;p&#62;There is no cqlsh function to do what you want to do.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rlebretonnic on "Hash function for getting key value"</title>
			<link>http://www.datastax.com/support-forums/topic/hash-function-for-getting-key-value#post-8426</link>
			<pubDate>Tue, 15 Jan 2013 15:49:16 +0000</pubDate>
			<dc:creator>rlebretonnic</dc:creator>
			<guid isPermaLink="false">8426@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I look for something I didn'd find in doc.&#60;br /&#62;
I created a column family and inserted some records using CLI.&#60;/p&#62;
&#60;p&#62;Now I request it using cqlsh. A technical column named KEY was added by cassandra. The value stored seems to be a hash value for the key used when creating the row within the CLI interface.&#60;/p&#62;
&#60;p&#62;I can request in cqlsh the column family using :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;select * from &#38;lt;CF&#38;gt; where key=&#38;lt;hash value of my rowkey&#38;gt;

Is there a function for determining the hash value of the key and make a request like :&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;select * from &#38;lt;CF&#38;gt; where key=hash(&#38;lt;rowkey&#38;gt;)&#60;/p&#62;
&#60;p&#62;Regards
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
