LLVM: lib/CAS/OnDiskGraphDB.cpp File Reference (original) (raw)

This file implements OnDiskGraphDB, an on-disk CAS nodes database, independent of a particular hashing algorithm. More...

Go to the source code of this file.

Macros
#define DEBUG_TYPE "on-disk-cas"
Variables
static constexpr StringLiteral IndexTableName = "llvm.cas.index"
static constexpr StringLiteral DataPoolTableName = "llvm.cas.data"
static constexpr StringLiteral IndexFilePrefix = "index."
static constexpr StringLiteral DataPoolFilePrefix = "data."
static constexpr StringLiteral FilePrefixObject = "obj."
static constexpr StringLiteral FilePrefixLeaf = "leaf."
static constexpr StringLiteral FilePrefixLeaf0 = "leaf+0."

This file implements OnDiskGraphDB, an on-disk CAS nodes database, independent of a particular hashing algorithm.

It only needs to be configured for the hash size and controls the schema of the storage.

OnDiskGraphDB defines:

Here's a top-level description of the current layout:

Definition in file OnDiskGraphDB.cpp.

DEBUG_TYPE

#define DEBUG_TYPE "on-disk-cas"

createCorruptObjectError()

createTempFile()

getContentFromHandle()

getPageSize()

size_t getPageSize ( ) static

DataPoolFilePrefix

DataPoolTableName

FilePrefixLeaf

FilePrefixLeaf0

FilePrefixObject

IndexFilePrefix

IndexTableName