Hi All,
I am facing some problems while trying to change the query result in dfs to a string value for dotnet consumers.
I thought the following piece of code does the work for java consumers but the same does not work for dotnet consumers :
String strMaxValue = queryResultForId.getDataObjects().get(0).getProperties().get("max_value_from_repository").getValueAsString();
Can anyone tell me what can I change in the above line of code to make it work for dotnet consumers?
The following is the complete piece of code that I am using :
PassthroughQuery
query = new PassthroughQuery();query.QueryString =
"select max_val,cur_val,prefix_val from test_table where status=1";query.AddRepository(_repository);
QueryExecution queryEx = new QueryExecution();queryEx.CacheStrategyType =
CacheStrategyType.DEFAULT_CACHE_STRATEGY;
OperationOptions operationOptions = null;
QueryResult queryResult = _queryService.Execute(query, queryEx, operationOptions);
strMaxValue = queryResult.getDataObjects().get(0).getProperties().get(
"max_val").getValueAsString();