private void EnsureInitialized(ThreadState state) { if (state.IsActive && state.dwpt == null) { FieldInfos.Builder infos = new FieldInfos.Builder(writer.globalFieldNumberMap); state.dwpt = new DocumentsWriterPerThread(writer.NewSegmentName(), directory, config, infoStream, deleteQueue, infos); } }
private void EnsureInitialized(ThreadState state) { if (state.Active && state.Dwpt == null) { FieldInfos.Builder infos = new FieldInfos.Builder(Writer.GlobalFieldNumberMap); state.Dwpt = new DocumentsWriterPerThread(Writer.NewSegmentName(), Directory, LIWConfig, InfoStream, DeleteQueue, infos); } }