Class PackWriter.State
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.PackWriter.State
-
- Enclosing class:
- PackWriter
public class PackWriter.State extends java.lang.Object
Summary of the current state of a PackWriter.
-
-
Field Summary
Fields Modifier and Type Field Description private long
bytesUsed
private PackWriter.PackingPhase
phase
-
Constructor Summary
Constructors Constructor Description State(PackWriter.PackingPhase phase, long bytesUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
estimateBytesUsed()
PackConfig
getConfig()
PackWriter.PackingPhase
getPhase()
java.lang.String
toString()
-
-
-
Field Detail
-
phase
private final PackWriter.PackingPhase phase
-
bytesUsed
private final long bytesUsed
-
-
Constructor Detail
-
State
State(PackWriter.PackingPhase phase, long bytesUsed)
-
-
Method Detail
-
getConfig
public PackConfig getConfig()
- Returns:
- the PackConfig used to build the writer.
-
getPhase
public PackWriter.PackingPhase getPhase()
- Returns:
- the current phase of the writer.
-
estimateBytesUsed
public long estimateBytesUsed()
- Returns:
- an estimate of the total memory used by the writer.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-