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 File
fileFor
(AnyObjectId id) (package private) abstract Config
(package private) abstract File
(package private) abstract FS
getFS()
(package private) abstract long
getObjectSize
(WindowCursor curs, AnyObjectId objectId) (package private) abstract Collection<Pack>
getPacks()
(package private) abstract FileObjectDatabase.InsertLooseObjectResult
insertUnpackedObject
(File tmp, ObjectId id, boolean createDuplicate) Create a newObjectInserter
to insert new objects.Create a newObjectReader
to read existing objects.(package private) abstract ObjectLoader
openLooseObject
(WindowCursor curs, AnyObjectId id) (package private) abstract ObjectLoader
openObject
(WindowCursor curs, AnyObjectId objectId) (package private) abstract Pack
(package private) abstract void
resolve
(Set<ObjectId> matches, AbbreviatedObjectId id) (package private) abstract void
selectObjectRepresentation
(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 newObjectReader
to read existing objects.The returned reader is not itself thread-safe, but multiple concurrent reader instances created from the same
ObjectDatabase
must be thread-safe.- Specified by:
newReader
in classObjectDatabase
- Returns:
- reader the caller can use to load objects from this database.
-
newInserter
Create a newObjectInserter
to insert new objects.The returned inserter is not itself thread-safe, but multiple concurrent inserter instances created from the same
ObjectDatabase
must be thread-safe.- Specified by:
newInserter
in 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
-