metamx/druid — pull request #28 by fjy (2012-11-13 00:34:34+00:00)
Title: Some modifications on how to register things in Druid

I think eventually Registererers will become the endpoint for plugins in Druid. Ideally I hope to be able to register an object like a complex metric or a query type and also register some information about how to serde the object.

I deprecated BaseNode and renamed it to QueryableNode because I found it a bit confusing that many new nodes I was creating could not extend BaseNode (the name implies something a bit more extendable). QueryableNode implements RegisteringNode because I was thinking that we can create new Node interfaces and new concrete Node classes can extend those interfaces. This way common operations can be written that apply to all Nodes of a certain type.