On Tue, 2006-05-09 at 13:21 -0400, Yonik Seeley wrote: > > Did anybody know what needs to be synchronized and what > > does not need to > > be synchronized? > > Needs to be considered on a case-by-case basis IMO. > > > Should I summarize the uses and post it here for > > discussion?
> Sure! Here we go. I think it it safe to go ArrayList on all but RAMFile. The IndexWriter is already synchronized, right? StandardTokenizer: private java.util.Vector jj_expentries Document: List fields = new Vector(); IndexWriter: addIndexes(IndexReader[]) Vector segmentsToDelete deleteFiles(Vector) Vector deletable deleteSegments(Vector) Vector deletable mergeSegments(int, int) Vector segmentsToDelete readDeleteableFiles() Vector results SegmentMerger: private Vector readers TermVectorWriter: terms = new Vector(); MultiFieldQueryParser: get(AnyKindOf)Query Vector clauses QueryParser: private java.util.Vector jj_expentries Query(String) Vector caluses getFieldQuery(String, String) Vector v; // tokens from stream BooleanQuery: private Vector clauses BooleanQuery.BooleanWeight: private Vector weights Hits: private Vector hitDocs MultiPhraseQuery: private Vector positions PhraseQuery: private Vector positions private Vector terms RAMFile: private Vector buffers // --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]