Any reason we dont have CompositeType data structure for
key_validation_class ( ref:
http://www.datastax.com/docs/0.8/configuration/storage_configuration#key-validation-class)
? I would like to create row_names in the form username:mmddhhmm
( e.g. joe:201206092312 ). I can still do
It's certainly possible to have a CompositeType key_validation_class. What
made you think that you cannot?
On Mon, Jul 9, 2012 at 7:48 AM, prasenjit mukherjee prasen@gmail.comwrote:
Any reason we dont have CompositeType data structure for
key_validation_class ( ref:
http
Thanks a bunch.
On Wed, Feb 29, 2012 at 12:51 PM, juri jurivrlji...@gmail.com wrote:
This is a good example.
https://gist.github.com/1847261
I couldn't make it work with DynamicComposite though.
I have not found any examples of utilizing a CompositeType of
DynamicCompositeType as a row key. Is doing this frowned upon? All the
examples I've seen have been using a CompositeType only for Column names
(or values).
My particular use case involves having the two components in the key being
, Philip Shon wrote:
I have not found any examples of utilizing a CompositeType of
DynamicCompositeType as a row key. Is doing this frowned upon? All the
examples I've seen have been using a CompositeType only for Column names (or
values).
My particular use case involves having the two
@aaronmorton
http://www.thelastpickle.com
On 23/02/2012, at 8:08 PM, Praveen Baratam wrote:
More precisely,
Lets say we have a CF with the following spec.
create column family Test
with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)'
and key_validation_class
-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On 23/02/2012, at 8:08 PM, Praveen Baratam wrote:
More precisely,
Lets say we have a CF with the following spec.
create column family Test
with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type
Developer
@aaronmorton
http://www.thelastpickle.com
On 23/02/2012, at 8:08 PM, Praveen Baratam wrote:
More precisely,
Lets say we have a CF with the following spec.
create column family Test
with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)'
and key_validation_class
More precisely,
Lets say we have a CF with the following spec.
create column family Test
with comparator = 'CompositeType(UTF8Type,UTF8Type,UTF8Type)'
and key_validation_class = 'UTF8Type'
and default_validation_class = 'UTF8Type';
And I have columns such as:
Jack:Name:First
Is this a lib I can just drop into a 0.7 instance of cassandra and use?
I'm not sure what to make of the README about not using it with versions
earlier than 0.8.0-rc1.
https://github.com/riptano/hector-composite
the goal is to start using CompositeTypes in 0.7 (which I can't upgrade
to 0.8
If your version of Cassandra does not support composite you need to
upgrade, If the server is not aware the column is composite it will not be
able to use them to full effect. You likely will not get the sorting and
slicing capabilities you want.
Edward
On Sat, Nov 5, 2011 at 4:44 AM, Guy
It was developed for 0.7x but we then made a few changes so that it
would work with 0.8-rc1 that broke the 0.7 compatibility. The idea at
the time was to do a 0.7 branch for it but it looks like that never
got checked in. If you roll back to the previous commit it should
give you a version that
)
at org.apache.cassandra.db.marshal.TypeParser.parse(TypeParser.java:92)
at org.apache.cassandra.config.CFMetaData.fromAvro(CFMetaData.java:346)
... 6 more
Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical
empty parameter list for CompositeType
)
... 6 more
Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical
empty parameter list for CompositeType
at
org.apache.cassandra.db.marshal.CompositeType.getInstance(CompositeType.java:67)
at
org.apache.cassandra.db.marshal.CompositeType.getInstance(CompositeType.java:61
)
at org.apache.cassandra.db.marshal.TypeParser.parse(TypeParser.java:92)
at org.apache.cassandra.config.CFMetaData.fromAvro(CFMetaData.java:346)
... 6 more
Caused by: org.apache.cassandra.config.ConfigurationException: Nonsensical
empty parameter list for CompositeType
Hey, is there any documentation or examples of how to use the CompositeType? I
can't find anything about it on the wiki or the datastax docs.
Cheers,
Steve
You should give a look at https://github.com/edanuff/CassandraIndexedCollections
This is a rather good starting point for Composites.
2011/8/15 Stephen Pope stephen.p...@quest.com:
Hey, is there any documentation or examples of how to use the CompositeType?
I can't find anything about
where the column name are
these keys
On Fri, Jul 22, 2011 at 12:37 PM, Nate McCall n...@datastax.com wrote:
yes,but why would you use CompositeType if you don't need range query?
If you were doing composite keys anyway (common approach with time
series data for example), you would not have
With the current implementation of CompositeType in Cassandra 0.8.1,
is it recommended practice to try to use a CompositeType as the key?
Or are both, column and key, equally well supported?
The documentation on CompositeType is light, well non-existent really, with
key_validation_class set
If you are using OPP, then you can use CompositeType on both key and
column name; otherwise(Random Partition), just use it for columns.
On 22/07/2011 17:10, Patrick Julien wrote:
With the current implementation of CompositeType in Cassandra 0.8.1,
is it recommended practice to try to use
I can still use it for keys if I don't need ranges then? Because for
what we are doing we can always re-assemble keys
On Fri, Jul 22, 2011 at 11:38 AM, Donal Zang zan...@ihep.ac.cn wrote:
If you are using OPP, then you can use CompositeType on both key and column
name; otherwise(Random
On 22/07/2011 17:56, Patrick Julien wrote:
I can still use it for keys if I don't need ranges then? Because for
what we are doing we can always re-assemble keys
yes,but why would you use CompositeType if you don't need range query?
On Fri, Jul 22, 2011 at 11:38 AM, Donal Zangzan...@ihep.ac.cn
yes,but why would you use CompositeType if you don't need range query?
If you were doing composite keys anyway (common approach with time
series data for example), you would not have to write parsing and
concatenation code. Particularly useful if you had mixed types in the
key.
Exactly. In any case, I just answered my own question. If I need
range, I can just make another column family where the column name are
these keys
On Fri, Jul 22, 2011 at 12:37 PM, Nate McCall n...@datastax.com wrote:
yes,but why would you use CompositeType if you don't need range query
Is this possible? I'm trying to create a Column Family with a CompositeType
comparator, but I keep getting an error:
create column family Transactions with comparator = CompositeType(UTF8Type,
UUIDType) and keys_cached=1 and rows_cached=1000;
Syntax error at position 84: missing EOF
anthony.ikeda@gmail.com
wrote:
Is this possible? I'm trying to create a Column Family with a CompositeType
comparator, but I keep getting an error:
create column family Transactions with comparator = CompositeType(UTF8Type,
UUIDType) and keys_cached=1 and rows_cached=1000;
Syntax
:
Is this possible? I'm trying to create a Column Family with a
CompositeType comparator, but I keep getting an error:
create column family Transactions with comparator =
CompositeType(UTF8Type, UUIDType) and keys_cached=1 and
rows_cached=1000;
Syntax error at position 84: missing EOF at '('
Same issue
27 matches
Mail list logo