Top Inners Constructors Methods
org.eclipse.jgit.internal.storage.file

pack-priv abstract Class FileObjectDatabase

extends ObjectDatabase
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.internal.storage.file.ObjectDirectory, org.eclipse.jgit.internal.storage.file.CachedObjectDirectory
Imports
java.io.File, .IOException, java.util.Collection, .Optional, .Set, org.eclipse.jgit.internal.storage.commitgraph.CommitGraph, org.eclipse.jgit.internal.storage.pack.ObjectToPack, .PackWriter, org.eclipse.jgit.lib.AbbreviatedObjectId, .AnyObjectId, .Config, .ObjectDatabase, .ObjectId, .ObjectLoader, .ObjectReader, org.eclipse.jgit.util.FS

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract File
pack-priv abstract Optional<CommitGraph>
pack-priv abstract Config
pack-priv abstract File
pack-priv abstract FS
pack-priv abstract long
pack-priv abstract Collection<Pack>
pack-priv abstract FileObjectDatabase.InsertLooseObjectResult
insertUnpackedObject(File tmp, ObjectId id, boolean createDuplicate)

public ObjectDirectoryInserter
newInserter()

Implements abstract org.eclipse.jgit.lib.ObjectDatabase.newInserter.

Create a new ObjectInserter to insert new objects.

public ObjectReader
newReader()

Implements abstract org.eclipse.jgit.lib.ObjectDatabase.newReader.

Create a new ObjectReader to read existing objects.

pack-priv abstract ObjectLoader
pack-priv abstract ObjectLoader
pack-priv abstract Pack
openPack(File pack)

pack-priv abstract void
pack-priv abstract void
Inherited from org.eclipse.jgit.lib.ObjectDatabase:
closecreateexistsgetApproximateObjectCountgetShallowCommitshasnewCachedDatabaseopenopensetShallowCommits

Constructor Detail

FileObjectDatabaseback to summary
pack-priv FileObjectDatabase()

Method Detail

fileForback to summary
pack-priv abstract File fileFor(AnyObjectId id)
getCommitGraphback to summary
pack-priv abstract Optional<CommitGraph> getCommitGraph()
getConfigback to summary
pack-priv abstract Config getConfig()
getDirectoryback to summary
pack-priv abstract File getDirectory()
getFSback to summary
pack-priv abstract FS getFS()
getObjectSizeback to summary
pack-priv abstract long getObjectSize(WindowCursor curs, AnyObjectId objectId) throws IOException
getPacksback to summary
pack-priv abstract Collection<Pack> getPacks()
insertUnpackedObjectback to summary
pack-priv abstract FileObjectDatabase.InsertLooseObjectResult insertUnpackedObject(File tmp, ObjectId id, boolean createDuplicate) throws IOException
newInserterback to summary
public ObjectDirectoryInserter newInserter()

Implements abstract org.eclipse.jgit.lib.ObjectDatabase.newInserter.

Doc from org.eclipse.jgit.lib.ObjectDatabase.newInserter.

Create a new 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.

Returns:ObjectDirectoryInserter

writer the caller can use to create objects in this database.

Annotations
@Override
newReaderback to summary
public ObjectReader newReader()

Implements abstract org.eclipse.jgit.lib.ObjectDatabase.newReader.

Doc from org.eclipse.jgit.lib.ObjectDatabase.newReader.

Create a new 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.

Returns:ObjectReader

reader the caller can use to load objects from this database.

Annotations
@Override
openLooseObjectback to summary
pack-priv abstract ObjectLoader openLooseObject(WindowCursor curs, AnyObjectId id) throws IOException
openObjectback to summary
pack-priv abstract ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId) throws IOException
openPackback to summary
pack-priv abstract Pack openPack(File pack) throws IOException
resolveback to summary
pack-priv abstract void resolve(Set<ObjectId> matches, AbbreviatedObjectId id) throws IOException
selectObjectRepresentationback to summary
pack-priv abstract void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws IOException
org.eclipse.jgit.internal.storage.file back to summary

pack-priv final Enum FileObjectDatabase.InsertLooseObjectResult

extends Enum<FileObjectDatabase.InsertLooseObjectResult>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final FileObjectDatabase.InsertLooseObjectResult
public static final FileObjectDatabase.InsertLooseObjectResult
public static final FileObjectDatabase.InsertLooseObjectResult
public static final FileObjectDatabase.InsertLooseObjectResult

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FileObjectDatabase.InsertLooseObjectResult
public static FileObjectDatabase.InsertLooseObjectResult[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXISTS_LOOSEback to summary
public static final FileObjectDatabase.InsertLooseObjectResult EXISTS_LOOSE
EXISTS_PACKEDback to summary
public static final FileObjectDatabase.InsertLooseObjectResult EXISTS_PACKED
FAILUREback to summary
public static final FileObjectDatabase.InsertLooseObjectResult FAILURE
INSERTEDback to summary
public static final FileObjectDatabase.InsertLooseObjectResult INSERTED

Constructor Detail

InsertLooseObjectResultback to summary
private InsertLooseObjectResult()

Method Detail

valueOfback to summary
public static FileObjectDatabase.InsertLooseObjectResult valueOf(String name)
valuesback to summary
public static FileObjectDatabase.InsertLooseObjectResult[] values()