public static final class IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter extends DirectoryTaxonomyWriter
DirectoryTaxonomyWriter which sets the underlying
IndexWriter's IndexDeletionPolicy to
SnapshotDeletionPolicy.DirectoryTaxonomyWriter.DiskOrdinalMap, DirectoryTaxonomyWriter.MemoryOrdinalMap, DirectoryTaxonomyWriter.OrdinalMapINDEX_EPOCH| Constructor and Description |
|---|
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory d) |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode) |
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode,
TaxonomyWriterCache cache) |
| Modifier and Type | Method and Description |
|---|---|
protected IndexWriterConfig |
createIndexWriterConfig(IndexWriterConfig.OpenMode openMode) |
SnapshotDeletionPolicy |
getDeletionPolicy()
Returns the
SnapshotDeletionPolicy used by the underlying IndexWriter. |
IndexWriter |
getIndexWriter()
Returns the
IndexWriter used by this DirectoryTaxonomyWriter. |
protected IndexWriter |
openIndexWriter(Directory directory,
IndexWriterConfig config) |
addCategory, addTaxonomy, close, closeResources, commit, defaultTaxonomyWriterCache, ensureOpen, findCategory, getCommitData, getDirectory, getParent, getSize, getTaxonomyEpoch, prepareCommit, replaceTaxonomy, rollback, setCacheMissesUntilFill, setCommitDatapublic IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache) throws IOException
public IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode) throws IOException
public IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter(Directory d) throws IOException
protected IndexWriterConfig createIndexWriterConfig(IndexWriterConfig.OpenMode openMode)
createIndexWriterConfig in class DirectoryTaxonomyWriterprotected IndexWriter openIndexWriter(Directory directory, IndexWriterConfig config) throws IOException
openIndexWriter in class DirectoryTaxonomyWriterIOExceptionpublic SnapshotDeletionPolicy getDeletionPolicy()
SnapshotDeletionPolicy used by the underlying IndexWriter.public IndexWriter getIndexWriter()
IndexWriter used by this DirectoryTaxonomyWriter.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.