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(SolrCore core,
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() |
addDocument, addDocuments, addIndexes, addIndexes, commit, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, flush, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getChildResources, getCommitData, getConfig, getDirectory, getMergingSegments, getNextMerge, getTragicException, hasDeletions, hasPendingMerges, hasUncommittedChanges, isLocked, isOpen, maxDoc, maybeMerge, merge, numDeletedDocs, numDocs, numRamDocs, prepareCommit, ramBytesUsed, setCommitData, tryDeleteDocument, updateBinaryDocValue, updateDocument, updateDocuments, updateDocValues, updateNumericDocValue
public 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, org.apache.lucene.index.IndexDeletionPolicy delPolicy, org.apache.lucene.codecs.Codec codec) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.index.IndexWriter
IOException
public void rollback() throws IOException
rollback
in interface org.apache.lucene.index.TwoPhaseCommit
rollback
in class org.apache.lucene.index.IndexWriter
IOException
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.