Sample code
/*
* Use the multiFieldQueryLast() API.
* The query method is similar to that for the single-value model. The difference is that you must provide the field information when you create a LastPointSubQuery request.
* You must provide the following information when you perform a query:
* Metric: the metric to be queried, for example, wind.
* Fields: the specific fields of the metric, such as speed, level, and temperature. The fields are the sub-category of the metric.
*/
List<String> fields = new ArrayList<>();
fields.add("speed");
fields.add("level");
fields.add("temperature");
LastPointSubQuery lastPointSubQuery = LastPointSubQuery.builder("wind", fields, Collections.emptyMap()).build(); // No filtering conditions are specified based on the tags.
LastPointQuery lastPointQuery = LastPointQuery.builder().sub(lastPointSubQuery).tupleFormat(true).msResolution(false).build();
List<MultiFieldQueryLastResult> results = tsdb.multiFieldQueryLast(lastPointQuery);