Class DfsReftableBatchRefUpdate
java.lang.Object
org.eclipse.jgit.lib.BatchRefUpdate
org.eclipse.jgit.internal.storage.reftable.ReftableBatchRefUpdate
org.eclipse.jgit.internal.storage.dfs.DfsReftableBatchRefUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final DfsObjDatabaseprivate final DfsReftableDatabaseFields inherited from class org.eclipse.jgit.lib.BatchRefUpdate
MAX_WAIT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitialize batch update. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyUpdates(List<Ref> newRefs, List<ReceiveCommand> pending) Implements the storage-specific part of the update.private booleanprivate ReftableWriter.StatscompactTopOfStack(OutputStream out, ReftableConfig cfg, byte[] newTable) private booleanprivate Set<DfsPackDescription>Methods inherited from class org.eclipse.jgit.internal.storage.reftable.ReftableBatchRefUpdate
execute, writeMethods inherited from class org.eclipse.jgit.lib.BatchRefUpdate
addCommand, addCommand, addCommand, addPrefixesTo, addProposedTimestamp, blockUntilTimestamps, disableRefLog, execute, getCommands, getPrefixes, getProposedTimestamps, getPushCertificate, getPushOptions, getRefLogIdent, getRefLogMessage, getRefLogMessage, isAllowNonFastForwards, isAtomic, isForceRefLog, isForceRefLog, isRefLogDisabled, isRefLogDisabled, isRefLogIncludingResult, isRefLogIncludingResult, newUpdate, setAllowNonFastForwards, setAtomic, setForceRefLog, setPushCertificate, setPushOptions, setRefLogIdent, setRefLogMessage, toString
-
Field Details
-
AVG_BYTES
private static final int AVG_BYTES- See Also:
-
refdb
-
odb
-
-
Constructor Details
-
DfsReftableBatchRefUpdate
Initialize batch update.- Parameters:
refdb- database the update will modify.odb- object database to store the reftable.
-
-
Method Details
-
applyUpdates
Description copied from class:ReftableBatchRefUpdateImplements the storage-specific part of the update.- Specified by:
applyUpdatesin classReftableBatchRefUpdate- Parameters:
newRefs- the new refs to createpending- the pending receive commands to be executed- Throws:
IOException- if any of the writes fail.
-
canCompactTopOfStack
- Throws:
IOException
-
compactTopOfStack
private ReftableWriter.Stats compactTopOfStack(OutputStream out, ReftableConfig cfg, byte[] newTable) throws IOException - Throws:
IOException
-
toPruneTopOfStack
- Throws:
IOException
-
packOnlyContainsReftable
-