I am trying to convert query result of an object (retrieved through Salesforce SOAP API) to Spark dataframe.
below is sample code from Salesforce site, it\'s in Java,