Class FileObjectDatabase

    • Constructor Detail

      • FileObjectDatabase

        FileObjectDatabase()
    • Method Detail

      • newReader

        public ObjectReader 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.

        Specified by:
        newReader in class ObjectDatabase
        Returns:
        reader the caller can use to load objects from this database.
      • newInserter

        public ObjectDirectoryInserter 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.

        Specified by:
        newInserter in class ObjectDatabase
        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)
      • getObjectSize

        abstract long getObjectSize​(WindowCursor curs,
                                    AnyObjectId objectId)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • openPack

        abstract PackFile openPack​(java.io.File pack)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getPacks

        abstract java.util.Collection<PackFile> getPacks()