public class NotesMigration extends Object
The migration will proceed one root entity type at a time. A root
entity is an entity stored in ReviewDb whose key's
getParentKey()
method returns null. For an example of the entity
hierarchy rooted at Change, see the diagram in
com.google.gerrit.reviewdb.client.Change
.
During a transitional period, each root entity group from ReviewDb may be either written to or both written to and read from NoteDb.
This class controls the state of the migration according to options in
gerrit.config
. In general, any changes to these options should only
be made by adventurous administrators, who know what they're doing, on
non-production data, for the purposes of testing the NoteDb implementation.
Changing options quite likely requires re-running RebuildNoteDb
. For
these reasons, the options remain undocumented.
Modifier and Type | Method and Description |
---|---|
static NotesMigration |
allEnabled() |
static org.eclipse.jgit.lib.Config |
allEnabledConfig() |
boolean |
enabled() |
boolean |
readChanges() |
boolean |
writeChanges() |
public static NotesMigration allEnabled()
public static org.eclipse.jgit.lib.Config allEnabledConfig()
public boolean enabled()
public boolean writeChanges()
public boolean readChanges()