- Source:
Methods
(static) getCountriesValuesByYear(sessions, params, totReviews, prevArrayopt) → {Object}
Finds the number of users that reviewed a location in Aquitaine - France per country for a given year
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
sessions |
Object
|
Neo4j context session |
|
params |
Object
|
Query's parameters |
|
totReviews |
Number
|
Total number of reviews for the given year |
|
prevArray |
Array.<Object>
|
<optional> |
Found object array to concatenate different year stat |
Returns:
- Type:
-
Object
Object with the year and number of reviews found
(static) getMonths(sessions, params) → {Object}
Finds the number of ingoing and outgoing trips made between countries in France and areas in Aquitaine by month for a given year
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
sessions |
Object
|
Neo4j context session |
params |
Object
|
Query's parameters |
Returns:
- Type:
-
Object
Object with each country and number of reviews by month
(static) getTotalByYear(sessions, params) → {Object}
Finds the number of ingoing and outgoing trips made between countries in France and areas in Aquitaine for a given year
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
sessions |
Object
|
Neo4j context session |
params |
Object
|
Query's parameters |
Returns:
- Type:
-
Object
Object with the year and number of users found