Difficult to Understand the simpleJson datasource plugin

I went through the documentation of simpleJson but could not get it can someone explain me how the metricFindQuery(query), buildQueryParameters(options) and query(options) are linked in the datasource file, i am facing trouble to understand them can anyone please help