blob: 9cf8c7f2b50cd1e61daf376b8e6718aa89ce2b11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (C) 2024, Google Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.eclipse.jgit.internal.storage.pack;
import java.io.IOException;
import org.eclipse.jgit.internal.storage.file.PackBitmapIndexBuilder;
/**
* Represents a function that accepts a collection of bitmaps and write them
* into storage.
*/
@FunctionalInterface
public interface PackBitmapIndexWriter {
/**
* @param bitmaps
* list of bitmaps to be written to a bitmap index
* @param packChecksum
* checksum of the pack that the bitmap index refers to
* @throws IOException
* thrown in case of IO errors while writing the bitmap index
*/
public void write(PackBitmapIndexBuilder bitmaps, byte[] packChecksum)
throws IOException;
}
|