Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "ConfigurationNotes" page has been changed by JonHermes.
http://wiki.apache.org/cassandra/ConfigurationNotes?action=diff&rev1=3&rev2=4

--------------------------------------------------

  ==How to add a new CF option post-1906:==
  
  * update cassandra.thrift and src/avro/internodo.genavro to add the new option
+ 
  * ant gen-thrift-java, ant avro-generate
+ 
  * set a static final T DEFAULT_ for it if there should be one
+ 
  * set the default in init()
+ 
  * define CFMD foo(T prop) { foo = prop; return this } for the builder
+ 
  * define T getFoo() {return foo;} since all optional params are private
+ 
- * update deflate() and inflate() to handle the new option ->CfDef and CfDef->
+ * update deflate() and inflate() to handle the new option ->!CfDef and 
!CfDef->
+ 
  * update equals(), hashcode(), and tostring() to build with the new prop
+ 
  * update applyImplicitDefaults()
+ 
  * update convertTo{Thrift/Avro}()
+ 
  * update apply()... this is the important method.
  
  Done. Then, whenever you need the option in code, use 
DD.getCFMD(ksname,cfname).getFoo();

Reply via email to