| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| pack-priv static class | |
| public static class | CommitGraphWriter.
Statistics collected during a single commit graph write. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final boolean | |
| private static final int | |
| private static final int | |
| private final GraphCommits | |
| private final int | |
| private static final int | |
| private static final int | |
| private static final CommitGraphWriter. |
| Access | Constructor and Description |
|---|---|
| public | CommitGraphWriter(GraphCommits
the commits which will be writen to the commit-graph. graphCommits)Create commit-graph writer for these commits. |
| public | CommitGraphWriter(GraphCommits
the commits which will be writen to the commit-graph. graphCommits, boolean whether changed path filters are generated generateChangedPathFilters)Create commit-graph writer for these commits. |
| Modifier and Type | Method and Description |
|---|---|
| private static long | |
| private CommitGraphWriter. | |
| private int[] | |
| private static List | |
| private static List | |
| public CommitGraphWriter. | Returns: statistics gathered during the runprogress monitor to report the number of items written. monitor, OutputStream output stream of commit-graph data. The stream should be
buffered by the caller. The caller is responsible for closing
the stream. commitGraphStream)Write commit-graph to the supplied stream. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| COMMIT_GRAPH_VERSION_GENERATED | back to summary |
|---|---|
| private static final int COMMIT_GRAPH_VERSION_GENERATED | |
| generateChangedPathFilters | back to summary |
|---|---|
| private final boolean generateChangedPathFilters | |
| GENERATION_NUMBER_MAX | back to summary |
|---|---|
| private static final int GENERATION_NUMBER_MAX | |
| GRAPH_FANOUT_SIZE | back to summary |
|---|---|
| private static final int GRAPH_FANOUT_SIZE | |
| graphCommits | back to summary |
|---|---|
| private final GraphCommits graphCommits | |
| hashsz | back to summary |
|---|---|
| private final int hashsz | |
| MAX_CHANGED_PATHS | back to summary |
|---|---|
| private static final int MAX_CHANGED_PATHS | |
| OID_HASH_VERSION | back to summary |
|---|---|
| private static final int OID_HASH_VERSION | |
| PATH_DIFF_CALCULATOR | back to summary |
|---|---|
| private static final CommitGraphWriter. | |
| CommitGraphWriter | back to summary |
|---|---|
| public CommitGraphWriter(GraphCommits graphCommits) Create commit-graph writer for these commits.
| |
| CommitGraphWriter | back to summary |
|---|---|
| public CommitGraphWriter(GraphCommits graphCommits, boolean generateChangedPathFilters) Create commit-graph writer for these commits.
| |
| calculateExpectedSize | back to summary |
|---|---|
| private static long calculateExpectedSize(List<CommitGraphWriter. | |
| computeBloomFilterChunks | back to summary |
|---|---|
| private CommitGraphWriter. | |
| computeGenerationNumbers | back to summary |
|---|---|
| private int[] computeGenerationNumbers(ProgressMonitor monitor) throws MissingObjectException | |
| createBloomFilterChunkHeaders | back to summary |
|---|---|
| private static List | |
| createCoreChunks | back to summary |
|---|---|
| private static List | |
| write | back to summary |
|---|---|
| public CommitGraphWriter. Write commit-graph to the supplied stream.
| |
| writeCheckSum | back to summary |
|---|---|
| private void writeCheckSum(CancellableDigestOutputStream out) throws IOException | |
| writeChunkLookup | back to summary |
|---|---|
| private void writeChunkLookup(CancellableDigestOutputStream out, List<CommitGraphWriter. | |
| writeChunks | back to summary |
|---|---|
| private void writeChunks(CancellableDigestOutputStream out, List<CommitGraphWriter. | |
| writeCommitData | back to summary |
|---|---|
| private void writeCommitData(CancellableDigestOutputStream out) throws IOException | |
| writeExtraEdges | back to summary |
|---|---|
| private void writeExtraEdges(CancellableDigestOutputStream out) throws IOException | |
| writeFanoutTable | back to summary |
|---|---|
| private void writeFanoutTable(CancellableDigestOutputStream out) throws IOException | |
| writeHeader | back to summary |
|---|---|
| private void writeHeader(CancellableDigestOutputStream out, int numChunks) throws IOException | |
| writeOidLookUp | back to summary |
|---|---|
| private void writeOidLookUp(CancellableDigestOutputStream out) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ByteArrayOutputStream | |
| pack-priv final long | |
| pack-priv final long | |
| pack-priv final ByteArrayOutputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv | BloomFilterChunks(ByteArrayOutputStream index, ByteArrayOutputStream data, long filtersReused, long filtersComputed)
|
| data | back to summary |
|---|---|
| pack-priv final ByteArrayOutputStream data | |
| filtersComputed | back to summary |
|---|---|
| pack-priv final long filtersComputed | |
| filtersReused | back to summary |
|---|---|
| pack-priv final long filtersReused | |
| index | back to summary |
|---|---|
| pack-priv final ByteArrayOutputStream index | |
| BloomFilterChunks | back to summary |
|---|---|
| pack-priv BloomFilterChunks(ByteArrayOutputStream index, ByteArrayOutputStream data, long filtersReused, long filtersComputed) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Optional | |
| pack-priv final int | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| data | back to summary |
|---|---|
| pack-priv final Optional<ByteArrayOutputStream> data | |
| id | back to summary |
|---|---|
| pack-priv final int id | |
| size | back to summary |
|---|---|
| pack-priv final long size | |
| ChunkHeader | back to summary |
|---|---|
| public ChunkHeader(int id, long size) | |
| ChunkHeader | back to summary |
|---|---|
| pack-priv ChunkHeader(int id, ByteArrayOutputStream data) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Optional |
| stepCounter | back to summary |
|---|---|
| pack-priv int stepCounter | |
| PathDiffCalculator | back to summary |
|---|---|
| pack-priv PathDiffCalculator() | |
| changedPaths | back to summary |
|---|---|
| pack-priv Optional | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| pack-priv static final CommitGraphWriter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final CommitGraphWriter. | |
| public long | Returns: count of changed path filtersReturns the number of changed path filters that were computed from scratch, for statistical purposes. |
| public long | Returns: count of changed path filtersReturns the number of existing changed path filters that were reused when writing, for statistical purposes. |
| changedPathFiltersComputed | back to summary |
|---|---|
| private long changedPathFiltersComputed | |
| changedPathFiltersReused | back to summary |
|---|---|
| private long changedPathFiltersReused | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final CommitGraphWriter. | |
| Stats | back to summary |
|---|---|
| private Stats() | |
| from | back to summary |
|---|---|
| pack-priv static final CommitGraphWriter. | |
| getChangedPathFiltersComputed | back to summary |
|---|---|
| public long getChangedPathFiltersComputed() Returns the number of changed path filters that were computed from scratch, for statistical purposes.
| |
| getChangedPathFiltersReused | back to summary |
|---|---|
| public long getChangedPathFiltersReused() Returns the number of existing changed path filters that were reused when writing, for statistical purposes.
| |