mirror of https://github.com/apache/lucene.git
LUCENE-3735: Fix javadocs, sorry!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1239056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f252c064f2
commit
2f159c4059
|
@ -4035,7 +4035,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
||||||
* is merged, not only external ones that are given through
|
* is merged, not only external ones that are given through
|
||||||
* {@link #addIndexes}. If you want only the payloads of the external segments
|
* {@link #addIndexes}. If you want only the payloads of the external segments
|
||||||
* to be processed, you can return <code>null</code> whenever a
|
* to be processed, you can return <code>null</code> whenever a
|
||||||
* {@link DirPayloadProcessor} is requested for the {@link Directory} of the
|
* {@link PayloadProcessorProvider.ReaderPayloadProcessor} is requested for the {@link Directory} of the
|
||||||
* {@link IndexWriter}.
|
* {@link IndexWriter}.
|
||||||
* <p>
|
* <p>
|
||||||
* The default is <code>null</code> which means payloads are processed
|
* The default is <code>null</code> which means payloads are processed
|
||||||
|
|
|
@ -23,20 +23,20 @@ import org.apache.lucene.store.Directory;
|
||||||
import org.apache.lucene.util.BytesRef;
|
import org.apache.lucene.util.BytesRef;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a {@link DirPayloadProcessor} to be used for a {@link Directory}.
|
* Provides a {@link ReaderPayloadProcessor} to be used for a {@link Directory}.
|
||||||
* This allows using different {@link DirPayloadProcessor}s for different
|
* This allows using different {@link ReaderPayloadProcessor}s for different
|
||||||
* directories, for e.g. to perform different processing of payloads of
|
* source {@link AtomicReader}, for e.g. to perform different processing of payloads of
|
||||||
* different directories.
|
* different directories.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>NOTE:</b> to avoid processing payloads of certain directories, you can
|
* <b>NOTE:</b> to avoid processing payloads of certain directories, you can
|
||||||
* return <code>null</code> in {@link #getDirProcessor}.
|
* return <code>null</code> in {@link #getReaderProcessor}.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>NOTE:</b> it is possible that the same {@link DirPayloadProcessor} will be
|
* <b>NOTE:</b> it is possible that the same {@link ReaderPayloadProcessor} will be
|
||||||
* requested for the same {@link Directory} concurrently. Therefore, to avoid
|
* requested for the same {@link Directory} concurrently. Therefore, to avoid
|
||||||
* concurrency issues you should return different instances for different
|
* concurrency issues you should return different instances for different
|
||||||
* threads. Usually, if your {@link DirPayloadProcessor} does not maintain state
|
* threads. Usually, if your {@link ReaderPayloadProcessor} does not maintain state
|
||||||
* this is not a problem. The merge code ensures that the
|
* this is not a problem. The merge code ensures that the
|
||||||
* {@link DirPayloadProcessor} instance you return will be accessed by one
|
* {@link ReaderPayloadProcessor} instance you return will be accessed by one
|
||||||
* thread to obtain the {@link PayloadProcessor}s for different terms.
|
* thread to obtain the {@link PayloadProcessor}s for different terms.
|
||||||
*
|
*
|
||||||
* @lucene.experimental
|
* @lucene.experimental
|
||||||
|
@ -48,7 +48,7 @@ public abstract class PayloadProcessorProvider {
|
||||||
* processing the payloads of different terms differently. If you intent to
|
* processing the payloads of different terms differently. If you intent to
|
||||||
* process all your payloads the same way, then you can ignore the given term.
|
* process all your payloads the same way, then you can ignore the given term.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>NOTE:</b> if you protect your {@link DirPayloadProcessor} from
|
* <b>NOTE:</b> if you protect your {@link ReaderPayloadProcessor} from
|
||||||
* concurrency issues, then you shouldn't worry about any such issues when
|
* concurrency issues, then you shouldn't worry about any such issues when
|
||||||
* {@link PayloadProcessor}s are requested for different terms.
|
* {@link PayloadProcessor}s are requested for different terms.
|
||||||
*/
|
*/
|
||||||
|
@ -72,7 +72,7 @@ public abstract class PayloadProcessorProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a {@link DirPayloadProcessor} for the given {@link Directory},
|
* Returns a {@link ReaderPayloadProcessor} for the given {@link Directory},
|
||||||
* through which {@link PayloadProcessor}s can be obtained for each
|
* through which {@link PayloadProcessor}s can be obtained for each
|
||||||
* {@link Term}, or <code>null</code> if none should be used.
|
* {@link Term}, or <code>null</code> if none should be used.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue