Class 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();
         ...
     }
     
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Method Detail

      • getData

        public java.util.List<java.util.List<java.lang.String>> getData()
      • getIterator

        public java.util.Iterator<java.util.List<java.lang.String>> getIterator()
        Get a memory efficient iterator over the result rows as lists
        Returns:
        An iterator over rows as lists fo strings.