Class IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
A DirectoryTaxonomyWriter which sets the underlying IndexWriter's IndexDeletionPolicy to SnapshotDeletionPolicy.
Inheritance
System.Object
IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public class SnapshotDirectoryTaxonomyWriter : DirectoryTaxonomyWriter, ITaxonomyWriter, IDisposable, ITwoPhaseCommit
Constructors
| Improve this Doc View SourceSnapshotDirectoryTaxonomyWriter(Directory, OpenMode)
Declaration
public SnapshotDirectoryTaxonomyWriter(Directory directory, OpenMode openMode = OpenMode.CREATE_OR_APPEND)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | |
OpenMode | openMode |
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
SnapshotDirectoryTaxonomyWriter(Directory, OpenMode, ITaxonomyWriterCache)
Declaration
public SnapshotDirectoryTaxonomyWriter(Directory directory, OpenMode openMode, ITaxonomyWriterCache cache)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | |
OpenMode | openMode | |
ITaxonomyWriterCache | cache |
Exceptions
Type | Condition |
---|---|
System.IO.IOException |
Properties
| Improve this Doc View SourceDeletionPolicy
Gets the SnapshotDeletionPolicy used by the underlying IndexWriter.
Declaration
public virtual SnapshotDeletionPolicy DeletionPolicy { get; }
Property Value
Type | Description |
---|---|
SnapshotDeletionPolicy |
IndexWriter
Gets the IndexWriter used by this DirectoryTaxonomyWriter.
Declaration
public virtual IndexWriter IndexWriter { get; }
Property Value
Type | Description |
---|---|
IndexWriter |
Methods
| Improve this Doc View SourceCreateIndexWriterConfig(OpenMode)
Declaration
protected override IndexWriterConfig CreateIndexWriterConfig(OpenMode openMode)
Parameters
Type | Name | Description |
---|---|---|
OpenMode | openMode |
Returns
Type | Description |
---|---|
IndexWriterConfig |
Overrides
| Improve this Doc View SourceOpenIndexWriter(Directory, IndexWriterConfig)
Declaration
protected override IndexWriter OpenIndexWriter(Directory directory, IndexWriterConfig config)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | |
IndexWriterConfig | config |
Returns
Type | Description |
---|---|
IndexWriter |
Overrides
Implements
System.IDisposable