public class SolrIndexWriter extends IndexWriter
IndexWriter.IndexReaderWarmer| Modifier and Type | Field and Description |
|---|---|
static String |
COMMIT_TIME_MSEC_KEY
Stored into each Lucene commit to record the
System.currentTimeMillis() when commit was called.
|
static AtomicLong |
numCloses |
static AtomicLong |
numOpens |
MAX_DOCS, MAX_POSITION, MAX_TERM_LENGTH, SOURCE, SOURCE_ADDINDEXES_READERS, SOURCE_FLUSH, SOURCE_MERGE, WRITE_LOCK_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SolrIndexWriter |
create(SolrCore core,
String name,
String path,
DirectoryFactory directoryFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy,
Codec codec) |
protected void |
finalize() |
void |
rollback() |
addDocument, addDocuments, addIndexes, addIndexes, advanceSegmentInfosVersion, commit, decRefDeleter, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, flush, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getCommitData, getConfig, getDirectory, getMergingSegments, getNextMerge, getTragicException, hasDeletions, hasPendingMerges, hasUncommittedChanges, incRefDeleter, isLocked, isOpen, maxDoc, maybeMerge, merge, numDeletedDocs, numDocs, numRamDocs, prepareCommit, ramBytesUsed, setCommitData, setCommitData, tryDeleteDocument, updateBinaryDocValue, updateDocument, updateDocuments, updateDocValues, updateNumericDocValueclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcespublic static final AtomicLong numOpens
public static final AtomicLong numCloses
public static final String COMMIT_TIME_MSEC_KEY
public static SolrIndexWriter create(SolrCore core, String name, String path, DirectoryFactory directoryFactory, boolean create, IndexSchema schema, SolrIndexConfig config, IndexDeletionPolicy delPolicy, Codec codec) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexWriterIOExceptionpublic void rollback()
throws IOException
rollback in interface TwoPhaseCommitrollback in class IndexWriterIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.