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?