public class ChangeIndexer extends Object
Indexing is run in the background, as it may require substantial work to compute some of the fields and/or update the index.
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeIndexer.Factory |
Modifier and Type | Method and Description |
---|---|
void |
delete(ChangeData cd)
Synchronously delete a change.
|
void |
delete(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Change change)
Synchronously delete a change.
|
com.google.common.util.concurrent.CheckedFuture<?,IOException> |
deleteAsync(com.google.gerrit.reviewdb.client.Change.Id id)
Start deleting a change.
|
void |
index(ChangeData cd)
Synchronously index a change.
|
void |
index(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Change change)
Synchronously index a change.
|
com.google.common.util.concurrent.CheckedFuture<?,IOException> |
indexAsync(com.google.gerrit.reviewdb.client.Change.Id id)
Start indexing a change.
|
public com.google.common.util.concurrent.CheckedFuture<?,IOException> indexAsync(com.google.gerrit.reviewdb.client.Change.Id id)
id
- change to index.public void index(ChangeData cd) throws IOException
cd
- change to index.IOException
public void index(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Change change) throws IOException
change
- change to index.db
- review database.IOException
public com.google.common.util.concurrent.CheckedFuture<?,IOException> deleteAsync(com.google.gerrit.reviewdb.client.Change.Id id)
id
- change to delete.public void delete(ChangeData cd) throws IOException
cd
- change to delete.IOException
public void delete(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Change change) throws IOException
change
- change to delete.db
- review database.IOException