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, open
public 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 ObjectDatabase
public 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 ObjectDatabase
abstract void resolve(java.util.Set<ObjectId> matches, AbbreviatedObjectId id) throws java.io.IOException
java.io.IOException
abstract Config getConfig()
abstract FS getFS()
abstract java.util.Set<ObjectId> getShallowCommits() throws java.io.IOException
java.io.IOException
abstract void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws java.io.IOException
java.io.IOException
abstract java.io.File getDirectory()
abstract java.io.File fileFor(AnyObjectId id)
abstract ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
java.io.IOException
abstract long getObjectSize(WindowCursor curs, AnyObjectId objectId) throws java.io.IOException
java.io.IOException
abstract ObjectLoader openLooseObject(WindowCursor curs, AnyObjectId id) throws java.io.IOException
java.io.IOException
abstract FileObjectDatabase.InsertLooseObjectResult insertUnpackedObject(java.io.File tmp, ObjectId id, boolean createDuplicate) throws java.io.IOException
java.io.IOException
abstract PackFile openPack(java.io.File pack) throws java.io.IOException
java.io.IOException
abstract java.util.Collection<PackFile> getPacks()