SOLR-1352 . Multithreaded implementation (documentation fix)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@898211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2010-01-12 07:53:59 +00:00
parent 9f74e4337b
commit 6956eaa1b4
4 changed files with 56 additions and 1 deletions

View File

@ -35,6 +35,8 @@ New Features
* SOLR-1678 : Move onError handling to DIH framework (noble) * SOLR-1678 : Move onError handling to DIH framework (noble)
* SOLR-1352 : Multi-threaded implementation of DIH (noble)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -1,7 +1,27 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.handler.dataimport; package org.apache.solr.handler.dataimport;
/**Context implementation used when run multi threaded.
*
* @since Solr 1.5
*
*/
public class ThreadedContext extends ContextImpl{ public class ThreadedContext extends ContextImpl{
private DocBuilder.EntityRunner entityRunner; private DocBuilder.EntityRunner entityRunner;
private boolean limitedContext = false; private boolean limitedContext = false;

View File

@ -1,3 +1,19 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.handler.dataimport; package org.apache.solr.handler.dataimport;
import static org.apache.solr.handler.dataimport.EntityProcessorBase.ON_ERROR; import static org.apache.solr.handler.dataimport.EntityProcessorBase.ON_ERROR;
@ -14,6 +30,7 @@ import java.util.Collections;
/** /**
* Each Entity may have only a single EntityProcessor . But the same entity can be run by * Each Entity may have only a single EntityProcessor . But the same entity can be run by
* multiple EntityProcessorWrapper (1 per thread) . thhis helps running transformations in multiple threads * multiple EntityProcessorWrapper (1 per thread) . thhis helps running transformations in multiple threads
* @since Solr 1.5
*/ */
public class ThreadedEntityProcessorWrapper extends EntityProcessorWrapper { public class ThreadedEntityProcessorWrapper extends EntityProcessorWrapper {

View File

@ -1,3 +1,19 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.handler.dataimport; package org.apache.solr.handler.dataimport;
import org.junit.Test; import org.junit.Test;