cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: Adding Options to Create Statements...
Date Thu, 31 Mar 2016 21:40:09 GMT
No thoughts? Would an upgrade of the driver "fix" this?

On Wed, Mar 30, 2016 at 10:42 AM James Carman <james@carmanconsulting.com>
wrote:

> I am trying to perform the following operation:
>
> public Create createCreate() {
>   Create create =
> SchemaBuilder.createTable("foo").addPartitionColumn("bar",
> varchar()).addClusteringColumn("baz", varchar);
>   if(descending) {
>     create.withOptions().clusteringOrder("baz", Direction.DESC);
>   return create;
> }
>
> I don't want to have to return the Create.Options object from this method
> (as I may need to add other columns).  Is there a way to have the options
> "decorate" the Create directly without having to return the Create.Options?
>
>

Mime
View raw message