public class SolrIndexWriter
extends org.apache.lucene.index.IndexWriter
| 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 |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SolrIndexWriter |
create(String name,
String path,
DirectoryFactory directoryFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
org.apache.lucene.index.IndexDeletionPolicy delPolicy,
org.apache.lucene.codecs.Codec codec) |
protected void |
finalize() |
void |
rollback() |
abortMerges, addDocument, addDocument, addDocuments, addDocuments, addIndexes, addIndexes, close, commit, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, flush, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getCommitData, getConfig, getDirectory, getMergingSegments, getNextMerge, hasDeletions, hasPendingMerges, hasUncommittedChanges, isLocked, maxDoc, maybeMerge, merge, numDeletedDocs, numDocs, numRamDocs, prepareCommit, ramBytesUsed, ramSizeInBytes, segString, segString, segString, setCommitData, tryDeleteDocument, unlock, updateBinaryDocValue, updateDocument, updateDocument, updateDocuments, updateDocuments, updateDocValues, updateNumericDocValue, waitForMergespublic static final AtomicLong numOpens
public static final AtomicLong numCloses
public static final String COMMIT_TIME_MSEC_KEY
public static SolrIndexWriter create(String name, String path, DirectoryFactory directoryFactory, boolean create, IndexSchema schema, SolrIndexConfig config, org.apache.lucene.index.IndexDeletionPolicy delPolicy, org.apache.lucene.codecs.Codec codec) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.index.IndexWriterIOExceptionpublic void rollback()
throws IOException
rollback in interface org.apache.lucene.index.TwoPhaseCommitrollback in class org.apache.lucene.index.IndexWriterIOExceptionCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.