abstract class FileObjectDatabase extends ObjectDatabase
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
FileObjectDatabase.InsertLooseObjectResult |
| Constructor and Description |
|---|
FileObjectDatabase() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract java.io.File |
fileFor(AnyObjectId id) |
(package private) abstract Config |
getConfig() |
(package private) abstract java.io.File |
getDirectory() |
(package private) abstract FS |
getFS() |
(package private) abstract long |
getObjectSize(WindowCursor curs,
AnyObjectId objectId) |
(package private) abstract java.util.Collection<PackFile> |
getPacks() |
(package private) abstract java.util.Set<ObjectId> |
getShallowCommits() |
(package private) abstract FileObjectDatabase.InsertLooseObjectResult |
insertUnpackedObject(java.io.File tmp,
ObjectId id,
boolean createDuplicate) |
ObjectDirectoryInserter |
newInserter()
Create a new
ObjectInserter to insert new objects. |
ObjectReader |
newReader()
Create a new
ObjectReader 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 PackFile |
openPack(java.io.File pack) |
(package private) abstract void |
resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id) |
(package private) abstract void |
selectObjectRepresentation(PackWriter packer,
ObjectToPack otp,
WindowCursor curs) |
close, create, exists, has, newCachedDatabase, open, openpublic ObjectReader newReader()
ObjectReader 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.
newReader in class ObjectDatabasepublic ObjectDirectoryInserter newInserter()
ObjectInserter 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.
newInserter in class ObjectDatabaseabstract void resolve(java.util.Set<ObjectId> matches, AbbreviatedObjectId id) throws java.io.IOException
java.io.IOExceptionabstract Config getConfig()
abstract FS getFS()
abstract java.util.Set<ObjectId> getShallowCommits() throws java.io.IOException
java.io.IOExceptionabstract void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws java.io.IOException
java.io.IOExceptionabstract java.io.File getDirectory()
abstract java.io.File fileFor(AnyObjectId id)
abstract ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
java.io.IOExceptionabstract long getObjectSize(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
java.io.IOExceptionabstract ObjectLoader openLooseObject(WindowCursor curs, AnyObjectId id) throws java.io.IOException
java.io.IOExceptionabstract FileObjectDatabase.InsertLooseObjectResult insertUnpackedObject(java.io.File tmp, ObjectId id, boolean createDuplicate) throws java.io.IOException
java.io.IOExceptionabstract PackFile openPack(java.io.File pack) throws java.io.IOException
java.io.IOExceptionabstract java.util.Collection<PackFile> getPacks()