org.eclipse.jgit.lib.BatchRefUpdate for Reftable based RefDatabase.
| Modifier and Type | Field and Description |
|---|---|
| private final Lock | |
| private final ReftableDatabase | |
| private final Repository |
| Access | Constructor and Description |
|---|---|
| protected | ReftableBatchRefUpdate(RefDatabase
The RefDatabase refDb, ReftableDatabase The ReftableDatabase reftableDb, Lock A lock protecting the refdatabase's state lock, Repository The repository on which this update will run repository)Initialize. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | applyUpdates(List<Ref>
the new refs to create newRefs, List<ReceiveCommand> the pending receive commands to be executed pending)Implements the storage-specific part of the update. |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public void | execute(RevWalk
a RevWalk to parse tags in case the storage system wants to
store them pre-peeled, a common performance optimization. rw, ProgressMonitor progress monitor to receive update status on. pm, List<String> a list of option strings; set null to execute without options)Overrides org. Execute this batch update. |
| private List | |
| private static boolean | |
| private static List | |
| private String | |
| protected void | write(ReftableWriter
the writer on which we should write. writer, List<Ref> the ref data to write.. newRefs, List<ReceiveCommand> the log data to write. pending)Writes the refs to the writer, and calls finish. |
| private void |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| refDb | back to summary |
|---|---|
| private final ReftableDatabase refDb | |
| repository | back to summary |
|---|---|
| private final Repository repository | |
| ReftableBatchRefUpdate | back to summary |
|---|---|
| protected ReftableBatchRefUpdate(RefDatabase refDb, ReftableDatabase reftableDb, Lock lock, Repository repository) Initialize.
| |
| applyUpdates | back to summary |
|---|---|
| protected abstract void applyUpdates(List<Ref> newRefs, List<ReceiveCommand> pending) throws IOException Implements the storage-specific part of the update.
| |
| checkConflicting | back to summary |
|---|---|
| private boolean checkConflicting(List<ReceiveCommand> pending) throws IOException | |
| checkExpected | back to summary |
|---|---|
| private boolean checkExpected(List<ReceiveCommand> pending) throws IOException | |
| checkNonFastForwards | back to summary |
|---|---|
| private boolean checkNonFastForwards(RevWalk rw, List<ReceiveCommand> pending) throws IOException | |
| checkObjectExistence | back to summary |
|---|---|
| private boolean checkObjectExistence(RevWalk rw, List<ReceiveCommand> pending) throws IOException | |
| execute | back to summary |
|---|---|
| public void execute(RevWalk rw, ProgressMonitor pm, List<String> options) Overrides org. Doc from org. Execute this batch update. The default implementation of this method performs a sequential reference update over each reference.
Implementations must respect the atomicity requirements of the underlying
database as described in
| |
| getPending | back to summary |
|---|---|
| private List | |
| matchOld | back to summary |
|---|---|
| private static boolean matchOld(ReceiveCommand cmd, Ref ref) | |
| toNewRefs | back to summary |
|---|---|
| private static List | |
| toResultString | back to summary |
|---|---|
| private String toResultString(ReceiveCommand cmd) | |
| write | back to summary |
|---|---|
| protected void write(ReftableWriter writer, List<Ref> newRefs, List<ReceiveCommand> pending) throws IOException Writes the refs to the writer, and calls finish.
| |
| writeLog | back to summary |
|---|---|
| private void writeLog(ReftableWriter writer, long updateIndex, List<ReceiveCommand> pending) throws IOException | |