org.apache.solr.update
Class SolrIndexWriter
java.lang.Object
org.apache.lucene.index.IndexWriter
org.apache.solr.update.SolrIndexWriter
- All Implemented Interfaces:
- Closeable, TwoPhaseCommit
public class SolrIndexWriter
- extends IndexWriter
An IndexWriter that is configured via Solr config mechanisms.
- Since:
- solr 0.9
Methods inherited from class org.apache.lucene.index.IndexWriter |
addDocument, addDocument, addDocuments, addDocuments, addIndexes, addIndexes, close, commit, commit, deleteAll, deleteDocuments, deleteDocuments, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, flush, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getConfig, getDirectory, getMergingSegments, getNextMerge, getPayloadProcessorProvider, hasDeletions, isLocked, maxDoc, maybeMerge, merge, numDeletedDocs, numDocs, numRamDocs, prepareCommit, prepareCommit, ramSizeInBytes, segString, segString, segString, setPayloadProcessorProvider, unlock, updateDocument, updateDocument, updateDocuments, updateDocuments, waitForMerges |
numOpens
public static final AtomicLong numOpens
numCloses
public static final AtomicLong numCloses
COMMIT_TIME_MSEC_KEY
public static final String COMMIT_TIME_MSEC_KEY
- Stored into each Lucene commit to record the
System.currentTimeMillis() when commit was called.
- See Also:
- Constant Field Values
SolrIndexWriter
public SolrIndexWriter(String name,
String path,
DirectoryFactory directoryFactory,
boolean create,
IndexSchema schema,
SolrIndexConfig config,
IndexDeletionPolicy delPolicy,
Codec codec,
boolean forceNewDirectory)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class IndexWriter
- Throws:
IOException
rollback
public void rollback()
throws IOException
- Specified by:
rollback
in interface TwoPhaseCommit
- Overrides:
rollback
in class IndexWriter
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.