<?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; Topic: Composit columns for Name field</title>
		<link>http://www.datastax.com/support-forums/topic/composit-columns-for-name-field</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 04:07:56 +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/topic/composit-columns-for-name-field" rel="self" type="application/rss+xml" />

		<item>
			<title>xedin on "Composit columns for Name field"</title>
			<link>http://www.datastax.com/support-forums/topic/composit-columns-for-name-field#post-3712</link>
			<pubDate>Wed, 25 Jul 2012 09:20:46 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3712@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I suggest you to take a look at this &#60;a href=&#34;http://www.datastax.com/dev/blog/introduction-to-composite-columns-part-1&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/introduction-to-composite-columns-part-1&#60;/a&#62; , which has detailed description of the problem and answers to all 3 of your questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>akhil.bansal on "Composit columns for Name field"</title>
			<link>http://www.datastax.com/support-forums/topic/composit-columns-for-name-field#post-3660</link>
			<pubDate>Wed, 25 Jul 2012 01:47:15 +0000</pubDate>
			<dc:creator>akhil.bansal</dc:creator>
			<guid isPermaLink="false">3660@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks xedin this is what i was looking for.&#60;/p&#62;
&#60;p&#62;1. How does it differs from storing the individual columns at column family level as compared to composite column ?&#60;/p&#62;
&#60;p&#62;2. Does composite column offer any advantage in column retrieval over the data retrieval from individual columns ?&#60;/p&#62;
&#60;p&#62;3. How specifying CompositeType for a column is different from specifying a composite for the column family (comparator)? I have seen lots of syntax on net for composite column where CompositeType is specified for comparator instead of Validate_class for column. And all the articles were for composite columns only.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Composit columns for Name field"</title>
			<link>http://www.datastax.com/support-forums/topic/composit-columns-for-name-field#post-3639</link>
			<pubDate>Tue, 24 Jul 2012 20:04:36 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3639@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Yes, you can use composites in this case, you will need to have CompositeType(UTF8Type, UTF8Type, UTF8Type) which would handle the Suffix, first/last name and CompositeType(Int32Type, UTF8Type, UTF8Type, Int32Type, UTF8Type) for house/street/city/state and country.&#60;/p&#62;
&#60;p&#62;CLI syntax:&#60;/p&#62;
&#60;p&#62;create column family cf with key_validation_class=UTF8Type and comparator=AsciiType and column_metadata=[{column_name:name, validation_class:'CompositeType(UTF8Type, UTF8Type, UTF8Type)'}, {column_name:address, validation_class:'CompositeType(Int32Type, UTF8Type, UTF8Type, Int32Type, UTF8Type)'}];&#60;/p&#62;
&#60;p&#62;But it also depends and how do you want to query the data, if you would query only specific columns (e.g. first name) you can go with secondary indices instead of composites.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>akhil.bansal on "Composit columns for Name field"</title>
			<link>http://www.datastax.com/support-forums/topic/composit-columns-for-name-field#post-3616</link>
			<pubDate>Tue, 24 Jul 2012 16:47:02 +0000</pubDate>
			<dc:creator>akhil.bansal</dc:creator>
			<guid isPermaLink="false">3616@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi, I have a column family for storing customer details. Column Family will have CustomerCode as key and below mentioned fields&#60;/p&#62;
&#60;p&#62;email address&#60;br /&#62;
Name&#60;br /&#62;
First Name&#60;br /&#62;
last name&#60;br /&#62;
Suffix&#60;/p&#62;
&#60;p&#62;Address&#60;br /&#62;
House#&#60;br /&#62;
Street&#60;br /&#62;
City&#60;br /&#62;
State&#60;br /&#62;
Country.&#60;/p&#62;
&#60;p&#62;where name should be the combined values of Suffix, First Name ,last name&#60;br /&#62;
and address should be the combined value of House#, Street, City, State and Country&#60;/p&#62;
&#60;p&#62;Does composite columns be used in this situations ?&#60;/p&#62;
&#60;p&#62;Can you please guide with the syntax for creating this column family where we have two composite columns and each has different number of columns ?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
