public class Database
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the database.
|
Database |
comparison_db() |
Get the comparison database.
|
Entity[] |
ents(java.lang.String kinds) |
Retrieve a list of all the entities in the database.
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
java.lang.String[] |
language() |
Return the language names of languages enabled in the database.
|
Entity |
lookup_uniquename(java.lang.String uniquename) |
Retrieve an entity by it's unique name.
|
java.lang.Number |
metric(java.lang.String name) |
Return the value of a metric for the database
|
java.util.Map<java.lang.String,java.lang.Number> |
metric(java.lang.String[] names) |
Return the values for an array of metric names as a map from name to value.
|
java.lang.String[] |
metrics() |
Return a list of metric names available for the database.
|
byte[] |
metrics_treemap(java.lang.String sizemetric,
java.lang.String colormetric,
java.lang.String enttype) |
Generate a metric treemap with the given metrics and enttype.
|
java.lang.String |
name() |
Retrieve the filename of the database.
|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String name()
public void close()
public java.lang.String[] metrics()
public java.lang.Number metric(java.lang.String name)
name - The name of the metric. Must be a valid metric name, and not null.public java.util.Map<java.lang.String,java.lang.Number> metric(java.lang.String[] names)
names - The names of metrics to retrieve values forpublic Entity[] ents(java.lang.String kinds)
kinds - An optional parameter. If null, all entities are returned.public java.lang.String[] language()
public byte[] metrics_treemap(java.lang.String sizemetric,
java.lang.String colormetric,
java.lang.String enttype)
sizemetric - The api name of the metric used for size. Must not be null.colormetric - The api name of the metric used for color. Must not be null.enttype - Either "file" "class" or "function", represents the type to map. If null, default is "file".public Entity lookup_uniquename(java.lang.String uniquename)
uniquename - public Database comparison_db()