Package | Description |
---|---|
org.eclipse.jgit.internal.storage.dfs |
Distributed file system based repository storage.
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.pack |
Reading/writing Git pack files.
|
Modifier and Type | Field and Description |
---|---|
(package private) PackExt |
BlockBasedFile.ext |
private PackExt |
BlockBasedFile.LazyChannel.ext |
Modifier and Type | Method and Description |
---|---|
void |
DfsPackDescription.addFileExt(PackExt ext)
Adds the pack file extension to the known list.
|
(package private) byte[] |
InMemoryRepository.MemPack.get(PackExt ext) |
int |
DfsPackDescription.getBlockSize(PackExt ext)
Get blockSize of the file, in bytes.
|
java.lang.String |
DfsPackDescription.getFileName(PackExt ext)
Get file name
|
long |
DfsPackDescription.getFileSize(PackExt ext)
Get size of the file, in bytes.
|
DfsStreamKey |
DfsPackDescription.getStreamKey(PackExt ext)
Get cache key for use by the block cache.
|
boolean |
DfsPackDescription.hasFileExt(PackExt ext)
Whether the pack file extension is known to exist.
|
static DfsStreamKey |
DfsStreamKey.of(DfsRepositoryDescription repo,
java.lang.String name,
PackExt ext)
Create a
DfsStreamKey |
protected abstract ReadableChannel |
DfsObjDatabase.openFile(DfsPackDescription desc,
PackExt ext)
Open a pack, pack index, or other related file for reading.
|
protected ReadableChannel |
InMemoryRepository.MemObjDatabase.openFile(DfsPackDescription desc,
PackExt ext) |
(package private) void |
InMemoryRepository.MemPack.put(PackExt ext,
byte[] data) |
DfsPackDescription |
DfsPackDescription.setBlockSize(PackExt ext,
int blockSize)
Set blockSize of the file, in bytes.
|
DfsPackDescription |
DfsPackDescription.setFileSize(PackExt ext,
long bytes)
Set size of the file in bytes.
|
protected abstract DfsOutputStream |
DfsObjDatabase.writeFile(DfsPackDescription desc,
PackExt ext)
Open a pack, pack index, or other related file for writing.
|
protected DfsOutputStream |
InMemoryRepository.MemObjDatabase.writeFile(DfsPackDescription desc,
PackExt ext) |
Constructor and Description |
---|
BlockBasedFile(DfsBlockCache cache,
DfsPackDescription desc,
PackExt ext) |
ByteArrayDfsStreamKey(DfsRepositoryDescription repo,
byte[] name,
PackExt ext) |
DfsStreamKey(int hash,
PackExt ext)
Constructor for DfsStreamKey.
|
LazyChannel(DfsReader ctx,
DfsPackDescription desc,
PackExt ext) |
Modifier and Type | Method and Description |
---|---|
private java.io.File |
PackFile.extFile(PackExt ext) |
private boolean |
PackFile.hasExt(PackExt ext) |
private void |
GC.removeOldPack(java.io.File packFile,
java.lang.String packName,
PackExt ext,
int deleteOptions)
Deletes old pack file, unless 'preserve-oldpacks' is set, in which case it
moves the pack file to the preserved directory
|
Modifier and Type | Field and Description |
---|---|
static PackExt |
PackExt.BITMAP_INDEX
A pack bitmap index file extension.
|
static PackExt |
PackExt.INDEX
A pack index file extension.
|
static PackExt |
PackExt.KEEP
A keep pack file extension.
|
static PackExt |
PackExt.PACK
A pack file extension.
|
static PackExt |
PackExt.REFTABLE
A reftable file.
|
private static PackExt[] |
PackExt.VALUES |
Modifier and Type | Method and Description |
---|---|
static PackExt |
PackExt.newPackExt(java.lang.String ext)
Returns a PackExt for the file extension and registers it in the values
array.
|
static PackExt[] |
PackExt.values()
Get all of the PackExt values.
|