Package org.intermine.client.results
Class TabTableResult
- java.lang.Object
-
- org.intermine.client.results.ResultSet
-
- org.intermine.client.results.TabTableResult
-
public class TabTableResult extends ResultSet
A utility class for parsing tab separated values in the results. The purpose of this class it to transform raw results in the form of a standard TSV file (tab delimited columns, one row per line) into a data structure. usage:TabTableResult table = new TabTableResult(connection); if (getMeAList) { List<List<String>> data = table.getData(); ... } else { Iterator<List<String>> iterator = table.getIterator(); ... }
-
-
Constructor Summary
Constructors Constructor Description TabTableResult(java.lang.String s)
Constructor.TabTableResult(HttpConnection c)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<java.lang.String>>
getData()
java.util.Iterator<java.util.List<java.lang.String>>
getIterator()
Get a memory efficient iterator over the result rows as lists-
Methods inherited from class org.intermine.client.results.ResultSet
getNextLine, getReader
-
-
-
-
Constructor Detail
-
TabTableResult
public TabTableResult(HttpConnection c)
Constructor. Return a new TabTableResult object that reads its data from an opened HTTP connection.- Parameters:
c
- The connection to read the data from
-
TabTableResult
public TabTableResult(java.lang.String s)
Constructor. Return a new TabTableResult object that reads its data from a string.- Parameters:
s
- A string to read the data from
-
-