Class FileObjectDatabase
java.lang.Object
org.eclipse.jgit.lib.ObjectDatabase
org.eclipse.jgit.internal.storage.file.FileObjectDatabase
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
CachedObjectDirectory,ObjectDirectory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract FilefileFor(AnyObjectId id) (package private) abstract Config(package private) abstract File(package private) abstract FSgetFS()(package private) abstract longgetObjectSize(WindowCursor curs, AnyObjectId objectId) (package private) abstract Collection<Pack>getPacks()(package private) abstract FileObjectDatabase.InsertLooseObjectResultinsertUnpackedObject(File tmp, ObjectId id, boolean createDuplicate) Create a newObjectInserterto insert new objects.Create a newObjectReaderto read existing objects.(package private) abstract ObjectLoaderopenLooseObject(WindowCursor curs, AnyObjectId id) (package private) abstract ObjectLoaderopenObject(WindowCursor curs, AnyObjectId objectId) (package private) abstract Pack(package private) abstract voidresolve(Set<ObjectId> matches, AbbreviatedObjectId id) (package private) abstract voidselectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) Methods inherited from class org.eclipse.jgit.lib.ObjectDatabase
close, create, exists, getApproximateObjectCount, has, newCachedDatabase, open, open
-
Constructor Details
-
FileObjectDatabase
FileObjectDatabase()
-
-
Method Details
-
newReader
Create a newObjectReaderto read existing objects.The returned reader is not itself thread-safe, but multiple concurrent reader instances created from the same
ObjectDatabasemust be thread-safe.- Specified by:
newReaderin classObjectDatabase- Returns:
- reader the caller can use to load objects from this database.
-
newInserter
Create a newObjectInserterto insert new objects.The returned inserter is not itself thread-safe, but multiple concurrent inserter instances created from the same
ObjectDatabasemust be thread-safe.- Specified by:
newInserterin classObjectDatabase- Returns:
- writer the caller can use to create objects in this database.
-
resolve
- Throws:
IOException
-
getConfig
-
getFS
-
getShallowCommits
- Throws:
IOException
-
selectObjectRepresentation
abstract void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws IOException - Throws:
IOException
-
getDirectory
-
fileFor
-
openObject
- Throws:
IOException
-
getObjectSize
- Throws:
IOException
-
openLooseObject
- Throws:
IOException
-
insertUnpackedObject
abstract FileObjectDatabase.InsertLooseObjectResult insertUnpackedObject(File tmp, ObjectId id, boolean createDuplicate) throws IOException - Throws:
IOException
-
openPack
- Throws:
IOException
-
getPacks
-