Package org.apache.lucene.replicator
Class IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
java.lang.Object
org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter
org.apache.lucene.replicator.IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,TaxonomyWriter,TwoPhaseCommit
- Enclosing class:
IndexAndTaxonomyRevision
public static final class IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
extends DirectoryTaxonomyWriter
A
DirectoryTaxonomyWriter which sets the underlying IndexWriter's IndexDeletionPolicy to SnapshotDeletionPolicy.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter
DirectoryTaxonomyWriter.DiskOrdinalMap, DirectoryTaxonomyWriter.MemoryOrdinalMap, DirectoryTaxonomyWriter.OrdinalMap -
Field Summary
Fields inherited from class org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter
INDEX_EPOCH -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode) SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache) -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexWriterConfigReturns theSnapshotDeletionPolicyused by the underlyingIndexWriter.Returns theIndexWriterused by thisDirectoryTaxonomyWriter.protected IndexWriteropenIndexWriter(Directory directory, IndexWriterConfig config) Methods inherited from class org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter
addCategory, addTaxonomy, close, closeResources, commit, defaultTaxonomyWriterCache, ensureOpen, findCategory, getCache, getDirectory, getLiveCommitData, getParent, getSize, getTaxonomyEpoch, prepareCommit, replaceTaxonomy, rollback, setCacheMissesUntilFill, setLiveCommitData, useNumericDocValuesForOrdinals
-
Constructor Details
-
SnapshotDirectoryTaxonomyWriter
public SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache) throws IOException - Throws:
IOException- See Also:
-
SnapshotDirectoryTaxonomyWriter
public SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode) throws IOException - Throws:
IOException- See Also:
-
SnapshotDirectoryTaxonomyWriter
- Throws:
IOException- See Also:
-
-
Method Details
-
createIndexWriterConfig
- Overrides:
createIndexWriterConfigin classDirectoryTaxonomyWriter
-
openIndexWriter
protected IndexWriter openIndexWriter(Directory directory, IndexWriterConfig config) throws IOException - Overrides:
openIndexWriterin classDirectoryTaxonomyWriter- Throws:
IOException
-
getDeletionPolicy
Returns theSnapshotDeletionPolicyused by the underlyingIndexWriter. -
getIndexWriter
Returns theIndexWriterused by thisDirectoryTaxonomyWriter.
-