public static final class IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter extends DirectoryTaxonomyWriter
DirectoryTaxonomyWriter
which sets the underlying
IndexWriter
's IndexDeletionPolicy
to
SnapshotDeletionPolicy
.DirectoryTaxonomyWriter.DiskOrdinalMap, DirectoryTaxonomyWriter.MemoryOrdinalMap, DirectoryTaxonomyWriter.OrdinalMap
INDEX_EPOCH
Constructor and Description |
---|
SnapshotDirectoryTaxonomyWriter(Directory d) |
SnapshotDirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode) |
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, getDirectory, getLiveCommitData, getParent, getSize, getTaxonomyEpoch, prepareCommit, replaceTaxonomy, rollback, setCacheMissesUntilFill, setLiveCommitData
public SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode, TaxonomyWriterCache cache) throws IOException
public SnapshotDirectoryTaxonomyWriter(Directory directory, IndexWriterConfig.OpenMode openMode) throws IOException
public SnapshotDirectoryTaxonomyWriter(Directory d) throws IOException
IOException
DirectoryTaxonomyWriter.DirectoryTaxonomyWriter(Directory)
protected IndexWriterConfig createIndexWriterConfig(IndexWriterConfig.OpenMode openMode)
createIndexWriterConfig
in class DirectoryTaxonomyWriter
protected IndexWriter openIndexWriter(Directory directory, IndexWriterConfig config) throws IOException
openIndexWriter
in class DirectoryTaxonomyWriter
IOException
public SnapshotDeletionPolicy getDeletionPolicy()
SnapshotDeletionPolicy
used by the underlying IndexWriter
.public IndexWriter getIndexWriter()
IndexWriter
used by this DirectoryTaxonomyWriter
.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.