mirror of https://github.com/apache/lucene.git
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:
parent
9f74e4337b
commit
6956eaa1b4
|
@ -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
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue