java.lang.Object
org.eclipse.jgit.storage.pack.PackStatistics.ObjectType
- Enclosing class:
- PackStatistics
Statistics about a single type of object (commits, tags, trees and
blobs).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
POJO for accumulating the ObjectType statistics. -
Constructor Summary
ConstructorsConstructorDescriptionObjectType
(PackStatistics.ObjectType.Accumulator accumulator) Creates a newPackStatistics.ObjectType
object from the accumulator. -
Method Summary
Modifier and TypeMethodDescriptionlong
getBytes()
Get total number of bytes writtenlong
Get number of delta bytes writtenlong
Get total number of deltas outputlong
Get total number of objects outputlong
Get number of deltas whose existing representation was reused in the outputlong
Get number of objects whose existing representation was reused in the output
-
Constructor Details
-
ObjectType
Creates a newPackStatistics.ObjectType
object from the accumulator.- Parameters:
accumulator
- the accumulator of the statistics
-
-
Method Details
-
getObjects
public long getObjects()Get total number of objects output- Returns:
- total number of objects output. This total includes the value
of
getDeltas()
.
-
getDeltas
public long getDeltas()Get total number of deltas output- Returns:
- total number of deltas output. This may be lower than the actual number of deltas if a cached pack was reused.
-
getReusedObjects
public long getReusedObjects()Get number of objects whose existing representation was reused in the output- Returns:
- number of objects whose existing representation was reused in
the output. This count includes
getReusedDeltas()
.
-
getReusedDeltas
public long getReusedDeltas()Get number of deltas whose existing representation was reused in the output- Returns:
- number of deltas whose existing representation was reused in the output, as their base object was also output or was assumed present for a thin pack. This may be lower than the actual number of reused deltas if a cached pack was reused.
-
getBytes
public long getBytes()Get total number of bytes written- Returns:
- total number of bytes written. This size includes the object
headers as well as the compressed data. This size also
includes all of
getDeltaBytes()
.
-
getDeltaBytes
public long getDeltaBytes()Get number of delta bytes written- Returns:
- number of delta bytes written. This size includes the object headers for the delta objects.
-