private static class Protocol.WriteToLocalIndexThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<SolrInputDocument> |
docs |
private Segment |
segment |
private java.util.concurrent.atomic.AtomicBoolean |
stop |
Constructor and Description |
---|
Protocol.WriteToLocalIndexThread(Segment segment,
java.util.Collection<SolrInputDocument> docs)
Parameters must be not null.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
stopWriting()
Use this to stop writing operation.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private java.util.concurrent.atomic.AtomicBoolean stop
private Segment segment
private java.util.Collection<SolrInputDocument> docs
public Protocol.WriteToLocalIndexThread(Segment segment, java.util.Collection<SolrInputDocument> docs)
segment
- solr segment to writedocs
- solr documents collection to put to segment