Package com.google.gerrit.index
Class SiteIndexer<K,V,I extends Index<K,V>>
- java.lang.Object
-
- com.google.gerrit.index.SiteIndexer<K,V,I>
-
- Direct Known Subclasses:
AllAccountsIndexer
,AllChangesIndexer
,AllGroupsIndexer
,AllProjectsIndexer
public abstract class SiteIndexer<K,V,I extends Index<K,V>> extends Object
Base class for implementations that can index all entities of a given type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SiteIndexer.Result
Result of an operation to index a subset or all of the entities of a given type.
-
Field Summary
Fields Modifier and Type Field Description protected OutputStream
progressOut
protected int
totalWork
protected PrintWriter
verboseWriter
-
Constructor Summary
Constructors Constructor Description SiteIndexer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addErrorListener(com.google.common.util.concurrent.ListenableFuture<?> future, String desc, org.eclipse.jgit.lib.ProgressMonitor progress, AtomicBoolean ok)
abstract SiteIndexer.Result
indexAll(I index)
Indexes all entities for the provided index.protected PrintWriter
newPrintWriter(OutputStream out)
void
setProgressOut(OutputStream out)
void
setTotalWork(int num)
void
setVerboseOut(OutputStream out)
-
-
-
Field Detail
-
totalWork
protected int totalWork
-
progressOut
protected OutputStream progressOut
-
verboseWriter
protected PrintWriter verboseWriter
-
-
Method Detail
-
setTotalWork
public void setTotalWork(int num)
-
setProgressOut
public void setProgressOut(OutputStream out)
-
setVerboseOut
public void setVerboseOut(OutputStream out)
-
indexAll
public abstract SiteIndexer.Result indexAll(I index)
Indexes all entities for the provided index.
-
addErrorListener
protected final void addErrorListener(com.google.common.util.concurrent.ListenableFuture<?> future, String desc, org.eclipse.jgit.lib.ProgressMonitor progress, AtomicBoolean ok)
-
newPrintWriter
protected PrintWriter newPrintWriter(OutputStream out)
-
-