CpgLoader

object CpgLoader
class Object
trait Matchable
class Any

Value members

Concrete methods

def addDiffGraphs(diffGraphFilenames: Seq[String], cpg: Cpg): Unit
def addOverlays(overlayFilenames: Seq[String], cpg: Cpg): Unit

Load and apply overlays from archives to the given CPG.

Load and apply overlays from archives to the given CPG.

Value Params
cpg

The CPG to apply overlays to

overlayFilenames

filenames of proto archives

def createIndexes(cpg: Cpg): Unit

Create any indexes necessary for quick access.

Create any indexes necessary for quick access.

Value Params
cpg

the CPG to create indexes in

def isLegacyCpg(filename: String): Boolean

Determine whether the CPG is a legacy (proto) CPG

Determine whether the CPG is a legacy (proto) CPG

Value Params
filename

name of the file to probe

def isLegacyCpg(file: File): Boolean

Determine whether the CPG is a legacy (proto) CPG

Determine whether the CPG is a legacy (proto) CPG

Value Params
file

file to probe

def load(filename: String, config: CpgLoaderConfig): Cpg

Load a Code Property Graph

Load a Code Property Graph

Value Params
config

loader configuration

filename

name of file that stores the code property graph

Load Code Property Graph from an overflow DB file

Load Code Property Graph from an overflow DB file

Value Params
config

loader config This methods loads the CPG from an existing overflow DB file, specified in config.overflowDbConfig. In particular, this config specifies the filename. For example, to load the database at "foo.db", you can issue the following: val odbConfig = Config.withDefaults().withStorageLocation(config.spPath) val config = CpgLoaderConfig().withOverflowConfig(odbConfig) CpgLoader.loadFromOverflowDb(config)