Class FileObjectDatabase
- java.lang.Object
-
- org.eclipse.jgit.lib.ObjectDatabase
-
- org.eclipse.jgit.internal.storage.file.FileObjectDatabase
-
- Direct Known Subclasses:
CachedObjectDirectory,ObjectDirectory
abstract class FileObjectDatabase extends ObjectDatabase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classFileObjectDatabase.InsertLooseObjectResult
-
Constructor Summary
Constructors Constructor Description FileObjectDatabase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract java.io.FilefileFor(AnyObjectId id)(package private) abstract ConfiggetConfig()(package private) abstract java.io.FilegetDirectory()(package private) abstract FSgetFS()(package private) abstract longgetObjectSize(WindowCursor curs, AnyObjectId objectId)(package private) abstract java.util.Collection<Pack>getPacks()(package private) abstract java.util.Set<ObjectId>getShallowCommits()(package private) abstract FileObjectDatabase.InsertLooseObjectResultinsertUnpackedObject(java.io.File tmp, ObjectId id, boolean createDuplicate)ObjectDirectoryInserternewInserter()Create a newObjectInserterto insert new objects.ObjectReadernewReader()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 PackopenPack(java.io.File pack)(package private) abstract voidresolve(java.util.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, has, newCachedDatabase, open, open
-
-
-
-
Method Detail
-
newReader
public ObjectReader 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
public ObjectDirectoryInserter 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
abstract void resolve(java.util.Set<ObjectId> matches, AbbreviatedObjectId id) throws java.io.IOException
- Throws:
java.io.IOException
-
getConfig
abstract Config getConfig()
-
getFS
abstract FS getFS()
-
getShallowCommits
abstract java.util.Set<ObjectId> getShallowCommits() throws java.io.IOException
- Throws:
java.io.IOException
-
selectObjectRepresentation
abstract void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws java.io.IOException
- Throws:
java.io.IOException
-
getDirectory
abstract java.io.File getDirectory()
-
fileFor
abstract java.io.File fileFor(AnyObjectId id)
-
openObject
abstract ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
- Throws:
java.io.IOException
-
getObjectSize
abstract long getObjectSize(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
- Throws:
java.io.IOException
-
openLooseObject
abstract ObjectLoader openLooseObject(WindowCursor curs, AnyObjectId id) throws java.io.IOException
- Throws:
java.io.IOException
-
insertUnpackedObject
abstract FileObjectDatabase.InsertLooseObjectResult insertUnpackedObject(java.io.File tmp, ObjectId id, boolean createDuplicate) throws java.io.IOException
- Throws:
java.io.IOException
-
openPack
abstract Pack openPack(java.io.File pack) throws java.io.IOException
- Throws:
java.io.IOException
-
getPacks
abstract java.util.Collection<Pack> getPacks()
-
-