Stats

Stats

Methods

(static) getDatabaseCountryStats(sessions, params, vYearsopt) → {Object}

Finds users that reviews something for a given year and a specific country

Source:
Parameters:
Name Type Attributes Description
sessions Object

Neo4j context session

params Object

Query's parameters

vYears Array.<Object> <optional>

Found object array to concatenate different year stat

Returns:
Type:
Object

Object with the year and number of users found

(static) getDatabaseDepStats(sessions, params, vYearsopt) → {Object}

Finds users that reviews something for a given year and a specific department

Source:
Parameters:
Name Type Attributes Description
sessions Object

Neo4j context session

params Object

Query's parameters

vYears Array.<Object> <optional>

Found object array to concatenate different year stat

Returns:
Type:
Object

Object with the year and number of users found

(static) getDatabaseStats(sessions) → {Object}

Finds number users that reviewed something until 2010

Source:
Parameters:
Name Type Description
sessions Object

Neo4j context session

Returns:
Type:
Object

Object with different statistics (number of users/reviews ...)