I'm trying to use the getTableSkewPct method in the TableSpace model. I've written some code for it but I'm getting an error on Eclipse saying "The method getTableSkewPct() is undefined for the type QueryResults". I was told that to fix the error, I needed to get a for loop to find the tablespace but I can't figure is out. Here is my code...
Second, you need to pull your query result set from the QueryResults object. Using your example, doing the following will give you the result set:
List resultSetList = ts.getResults();
Now you have a list of size X, where each element in the list contains a TableSpace object. Now you can view the TableSkewPct of a particular objext row in the result set (if of course, the list has at least one element):