mirror of
https://github.com/apache/lucene.git
synced 2025-02-17 23:45:09 +00:00
add some more todos
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1096737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa1ac87eaa
commit
d631ef1a1c
@ -204,6 +204,7 @@ public abstract class DocumentsWriterPerThreadPool {
|
||||
* Returns an iterator providing access to all {@link ThreadState}
|
||||
* instances.
|
||||
*/
|
||||
// TODO: new Iterator per indexed doc is overkill...?
|
||||
public Iterator<ThreadState> getAllPerThreadsIterator() {
|
||||
return getPerThreadsIterator(this.perThreads.length);
|
||||
}
|
||||
@ -217,6 +218,7 @@ public abstract class DocumentsWriterPerThreadPool {
|
||||
* has been called.
|
||||
*
|
||||
*/
|
||||
// TODO: new Iterator per indexed doc is overkill...?
|
||||
public Iterator<ThreadState> getActivePerThreadsIterator() {
|
||||
return getPerThreadsIterator(numThreadStatesActive);
|
||||
}
|
||||
@ -246,6 +248,7 @@ public abstract class DocumentsWriterPerThreadPool {
|
||||
*/
|
||||
protected ThreadState minContendedThreadState() {
|
||||
ThreadState minThreadState = null;
|
||||
// TODO: new Iterator per indexed doc is overkill...?
|
||||
final Iterator<ThreadState> it = getActivePerThreadsIterator();
|
||||
while (it.hasNext()) {
|
||||
final ThreadState state = it.next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user