If a client requests maxReturnNodes=n then the number of trajectory stations MUST be limited to n results before returning.
The query MUST [else error -402] specify a whole number greater than zero
Implementation Detail
1) in translateQueryResponse method of com.hashmapinc.tempus.witsml.valve.dot.DotClient class if optionsIn contains a key maxReturnNodes = n then you must only take the first n elements from the trajectoryStations array.
2) add a validation query in com.hashmapinc.tempus.witsml.server.api.StoreValidator to validateGetFromStore to make sure that the value of maxReturnNodes is > 0, if not return -402
Summary
If a client requests maxReturnNodes=n then the number of trajectory stations MUST be limited to n results before returning.
The query MUST [else error -402] specify a whole number greater than zero
Implementation Detail
1) in translateQueryResponse method of com.hashmapinc.tempus.witsml.valve.dot.DotClient class if optionsIn contains a key maxReturnNodes = n then you must only take the first n elements from the trajectoryStations array. 2) add a validation query in com.hashmapinc.tempus.witsml.server.api.StoreValidator to validateGetFromStore to make sure that the value of maxReturnNodes is > 0, if not return -402