Remove unused insert method from secondary index interface

The `insert` method is not used anywhere.  The `replace` method is
used instead.

Change-Id: Ie47253149cacde9a0824e4dee4d80313acd33188
This commit is contained in:
David Pursehouse
2014-07-17 12:12:50 +09:00
parent da5e5e76a1
commit 7bf7e49621
4 changed files with 3 additions and 58 deletions

View File

@@ -38,24 +38,13 @@ public interface ChangeIndex {
/** Close this index. */
public void close();
/**
* Insert a change document into the index.
* <p>
* Results may not be immediately visible to searchers, but should be visible
* within a reasonable amount of time.
*
* @param cd change document
*
* @throws IOException if the change could not be inserted.
*/
public void insert(ChangeData cd) throws IOException;
/**
* Update a change document in the index.
* <p>
* Semantically equivalent to deleting the document and reinserting it with
* new field values. Results may not be immediately visible to searchers, but
* should be visible within a reasonable amount of time.
* new field values. A document that does not already exist is created. Results
* may not be immediately visible to searchers, but should be visible within a
* reasonable amount of time.
*
* @param cd change document
*