Databases Reference
In-Depth Information
Description
Project
project_id
Unique identifier for a project
project_type
Denotes whether this project represents a crawled project, or a Jar file
name
Name of the project as it appears in the originating Internet repository
description
Description of the project from the originating Internet repository
version
Version of this project as extracted from originating Internet repository
groop
Specific field applicable to Maven Jars
path
Corresponds to the <batch>/<id> path fragment as defined by the storage
model
has_source
Denotes whether the project contains source files
File
file_id
Unique identifier for a file
file_type
Denotes the file's type - source, Jar, class
name
Name of the file in the file system
path
Corresponds
to
either
<batch>/<id>/content/<path> ,
r
jars/<jar_path> as defined by the storage model
hash
Unique MD5 hash, applicable for Jars only
project_id
project_id that this file belongs to
Entity
entity_id
Unique identifier for an Entity
entity_type
One of the several code entity types. (e.g., CLASS, METHOD)
fqn
Fully qualified name (FQN) of the entity
modifiers
Modifiers defined for the code entity
multi
Denotes array dimension, applicable for ARRAY types only
file_id
file_id that this entity is extracted from
offset
Start position of this entity in the source file
length
Length of this entity in the text (source file)
Relation
relation_id
Unique identifier for a relation
relation_type
One of the several code relation types. (e.g., CALLS, EXTENDS)
relation_class
Denotes whether the relation terminates to a library or a local entity
lhs_eid
The source entity that the relation originates from
rhs_eid
The target entity that the relation terminates into
offset
Start position in the source entity's corresponding file where this relation exists
length
Length of the text in source code where this relation spans
Comment
comment_id Unique identifier for a comment
comment_type Denotes the comment's type - Javadoc, Block, Line
containing_eid The immediate code entity that contains this comment
following_eid
The immediate code entity that follows this comment
file_id
File where this comment is found
offset
Start position of comment in the source file
length
Length of this comment in text (source file)
Table 8.3: Sourcerer's relational model elements details
4. Fields that store information to facilitate retrieval based on structural similar-
ity (e.g., fields storing fully qualified names (FQNs) of used entities and terms
extracted from similar entities).
5. Fields that pertain to some metric computed on an entity.
6. Fields that store unique identifiers (ids) of entities for navigational/browsing
queries
 
Search WWH ::




Custom Search