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
ConstructorDescriptionSnapshotDirectoryTaxonomyWriter
(Directory directory, IndexWriterConfig.OpenMode openMode) SnapshotDirectoryTaxonomyWriter
(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache) -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexWriterConfig
Returns theSnapshotDeletionPolicy
used by the underlyingIndexWriter
.Returns theIndexWriter
used by thisDirectoryTaxonomyWriter
.protected IndexWriter
openIndexWriter
(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 -
SnapshotDirectoryTaxonomyWriter
public SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode) throws IOException - Throws:
IOException
- See Also:
-
SnapshotDirectoryTaxonomyWriter
- Throws:
IOException
- See Also:
-
-
Method Details
-
createIndexWriterConfig
- Overrides:
createIndexWriterConfig
in classDirectoryTaxonomyWriter
-
openIndexWriter
protected IndexWriter openIndexWriter(Directory directory, IndexWriterConfig config) throws IOException - Overrides:
openIndexWriter
in classDirectoryTaxonomyWriter
- Throws:
IOException
-
getDeletionPolicy
Returns theSnapshotDeletionPolicy
used by the underlyingIndexWriter
. -
getIndexWriter
Returns theIndexWriter
used by thisDirectoryTaxonomyWriter
.
-