On Mon, Mar 8, 2010 at 2:07 PM, Steven A Rowe <sar...@syr.edu> wrote: > On 03/08/2010 at 1:57 PM, Steven A Rowe wrote: >> On 03/08/2010 at 1:13 PM, Michael McCandless wrote: >> > On Sun, Mar 7, 2010 at 1:21 PM, Marvin Humphrey >> > <mar...@rectangular.com> wrote: >> > > On Sat, Mar 06, 2010 at 05:07:18AM -0500, Michael McCandless wrote: >> > > > > What's the flex API for specifying a custom posting format? >> > > > >> > > > You implement a Codecs class, which within it knows about any number >> > > > of Codec impls that it can retrieve by name. >> > > >> > > So you have both a class named "Codec" and a class named "Codecs"? >> > > >> > > Tell me, is this an array of Codecs or a Codecs? >> > > >> > > return codecs; >> > >> > Probably a Codecs instance ;) >> > >> > Yeah it's not ideal... maybe rename Codecs -> CodecProvider? >> > CodecFactory? Codecs purpose is to 1) provide the Codec that'll write >> > a new segment, and 2) lookup codecs by String name (when reading >> > previously written segments). >> >> Some even less likely suggestions :) : CodecMap, CodecBroker, >> CodecSteward, CodecCurator, CodecLibrary, CodecCatalog > > Or how about CodecMaster - master both in the sense of an original from which > copies are made, and in the sense of one having control.
Well... it's not really a master in the first sense (like a master key), ie, we don't copy it. We ask it to give us a Codec. And in the 2nd sense... I don't like that word sense (nor "slave") so I try hard not to use these terms anymore. So far my fav is still CodecProvider ;) Naming is the hardest part!! Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org