new Statistics(raw)
Builds a query statistics object out of raw data.
Parameters:
Name | Type | Description |
---|---|---|
raw |
Array.<object> | raw data. |
- Source:
Methods
getFloatValue(label) → {float}
Returns the float value of a requested label.
Parameters:
Name | Type | Description |
---|---|---|
label |
Label |
- Source:
Returns:
The actual value if exists, 0 otherwise.
- Type
- float
getIntValue(label) → {int}
Returns the integer value of a requested label.
Parameters:
Name | Type | Description |
---|---|---|
label |
Label |
- Source:
Returns:
The actual value if exists, 0 otherwise.
- Type
- int
getStatistics() → {Statistics}
Return the query statistics
- Source:
Returns:
statistics object
- Type
- Statistics
getStringValue(label)
Returns a statistics value according to the statistics label.
Parameters:
Name | Type | Description |
---|---|---|
label |
Label | Statistics label. |
- Source:
indicesCreated() → {int}
- Source:
Returns:
The amount of indices created by the query.
- Type
- int
indicesDeleted() → {int}
- Source:
Returns:
The amount of indices deleted by the query.
- Type
- int
labelsAdded() → {int}
- Source:
Returns:
The amount of labels created by the query.
- Type
- int
nodesCreated() → {int}
- Source:
Returns:
The amount of nodes created by th query.
- Type
- int
nodesDeleted() → {int}
- Source:
Returns:
The amount of nodes deleted by the query.
- Type
- int
propertiesSet() → {int}
- Source:
Returns:
The amount of properties set by the query.
- Type
- int
queryExecutionTime() → {float}
- Source:
Returns:
The query execution time in ms.
- Type
- float
relationshipsCreated() → {int}
- Source:
Returns:
The amount of relationships created by the query.
- Type
- int
relationshipsDeleted() → {int}
- Source:
Returns:
The amount of relationships deleted by the query.
- Type
- int