Package org.apache.lucene.replicator
Class IndexAndTaxonomyRevision
java.lang.Object
org.apache.lucene.replicator.IndexAndTaxonomyRevision
- All Implemented Interfaces:
Comparable<Revision>
,Revision
Deprecated.
use org.apache.lucene.replicator.nrt instead
A
Revision
of a single index and taxonomy index files which comprises the list of files
from both indexes. This revision should be used whenever a pair of search and taxonomy indexes
need to be replicated together to guarantee consistency of both on the replicating (client) side.- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.ADirectoryTaxonomyWriter
which sets the underlyingIndexWriter
'sIndexDeletionPolicy
toSnapshotDeletionPolicy
. -
Field Summary
-
Constructor Summary
ConstructorDescriptionIndexAndTaxonomyRevision
(IndexWriter indexWriter, IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter taxoWriter) Deprecated.Constructor over the givenIndexWriter
. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Compares the revision to the given version string.int
Deprecated.Deprecated.Returns the files that comprise this revision, as a mapping from a source to a list of files.Deprecated.Returns a string representation of the version of this revision.Deprecated.Returns anIndexInput
for the given fileName and source.void
release()
Deprecated.Called when this revision can be safely released, i.e.static Map
<String, List<RevisionFile>> revisionFiles
(IndexCommit indexCommit, IndexCommit taxoCommit) Deprecated.Returns a singleton map of the revision files from the givenIndexCommit
.static String
revisionVersion
(IndexCommit indexCommit, IndexCommit taxoCommit) Deprecated.Returns a String representation of a revision's version from the givenIndexCommit
s of the search and taxonomy indexes.toString()
Deprecated.
-
Field Details
-
INDEX_SOURCE
Deprecated.- See Also:
-
TAXONOMY_SOURCE
Deprecated.- See Also:
-
-
Constructor Details
-
IndexAndTaxonomyRevision
public IndexAndTaxonomyRevision(IndexWriter indexWriter, IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter taxoWriter) throws IOException Deprecated.Constructor over the givenIndexWriter
. Uses the lastIndexCommit
found in theDirectory
managed by the given writer.- Throws:
IOException
-
-
Method Details
-
revisionFiles
public static Map<String,List<RevisionFile>> revisionFiles(IndexCommit indexCommit, IndexCommit taxoCommit) throws IOException Deprecated.Returns a singleton map of the revision files from the givenIndexCommit
.- Throws:
IOException
-
revisionVersion
Deprecated.Returns a String representation of a revision's version from the givenIndexCommit
s of the search and taxonomy indexes. -
compareTo
Deprecated.Description copied from interface:Revision
Compares the revision to the given version string. Behaves likeComparable.compareTo(Object)
. -
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<Revision>
-
getVersion
Deprecated.Description copied from interface:Revision
Returns a string representation of the version of this revision. The version is used byRevision.compareTo(String)
as well as to serialize/deserialize revision information. Therefore it must be self descriptive as well as be able to identify one revision from another.- Specified by:
getVersion
in interfaceRevision
-
getSourceFiles
Deprecated.Description copied from interface:Revision
Returns the files that comprise this revision, as a mapping from a source to a list of files.- Specified by:
getSourceFiles
in interfaceRevision
-
open
Deprecated.Description copied from interface:Revision
Returns anIndexInput
for the given fileName and source. It is the caller's responsibility to close theIndexInput
when it has been consumed.- Specified by:
open
in interfaceRevision
- Throws:
IOException
-
release
Deprecated.Description copied from interface:Revision
Called when this revision can be safely released, i.e. where there are no more references to it.- Specified by:
release
in interfaceRevision
- Throws:
IOException
-
toString
Deprecated.
-