Am trying to run a hive
query using Qubole SDK. Though am able to get the desired result as string
, in order to better process it, am looking to access this row-wise. Something like a list of java objects.
The way am getting the data is:
CommandResponse commandResponse = client.command().hive().query(query).invoke().get();
ResultLatch resultLatch = new ResultLatch(client, commandResponse.getId());
ResultValue resultValue = resultLatch.awaitResult();
System.out.println(resultValue.getResults());
And the console gives an output like:
"val1" "val2" "val3" "val4"
........ some more set of values .......
I was looking to have this result set in the form of list which I can iterate over instead of parsing or tokenizing the bunch of strings.
Unable to find any library or class if its there.