Class WebResults

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BIG_BATCH_SIZE
      The batch size to use when we need to iterate through the whole result set.
      protected static org.apache.log4j.Logger LOG  
      protected Model model  
      protected java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> pathToIndex  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addColumns​(java.util.List<Path> paths)
      Adds columns that should be displayed to the table.
      MultiRow<ResultsRow<MultiRowValue<ResultElement>>> get​(int index)
      java.util.List<java.lang.String> getColumnNames()
      Return the names of the columns of the results.
      java.util.List<Column> getColumns()
      Returns the columns for these results.
      java.util.List<Path> getColumnsPath()  
      int getEstimatedSize()
      Get the estimated number of rows of this table
      ResultsInfo getInfo()
      Return the ResultsInfo object from the underlying Results object.
      Results getInterMineResults()
      Return the underlying results object.
      int getMaxRetrievableIndex()
      Returns the ObjectStore's maximum allowable offset.
      PathQuery getPathQuery()
      Get the PathQuery associated with this WebTable
      java.util.Map<java.lang.String,​BagQueryResult> getPathToBagQueryResult()
      Returns the pathToBagQueryResult Map.
      protected java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> getPathToIndex()
      Create a map from string paths to index of QueryNodes in the ObjectStore query
      java.util.Map<java.lang.String,​QuerySelectable> getPathToQueryNode()
      Returns the pathToQueryNode Map.
      MultiRow<ResultsRow<MultiRowValue<ResultElement>>> getResultElements​(int index)
      Return a List containing a ResultElement object for each element in the given row.
      void goFaster()
      Calls ObjectStore.goFaster() if this object wraps a Results object from an ObjectStoreInterMineImpl.
      boolean isSingleBatch()
      Returns true if the results are known to be contained in a single batch.
      boolean isSizeEstimate()
      Check whether the result of getEstimatedSize() is an estimate
      java.util.Iterator<MultiRow<ResultsRow<MultiRowValue<ResultElement>>>> iterator()  
      java.util.Iterator<MultiRow<ResultsRow<MultiRowValue<ResultElement>>>> iteratorFrom​(int start)  
      void releaseGoFaster()
      Calls ObjectStore.releaseGoFaster() if this object wraps a Results object from an ObjectStoreInterMineImpl.
      int size()
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
      • pathToIndex

        protected java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> pathToIndex
      • model

        protected Model model
      • BIG_BATCH_SIZE

        public static final int BIG_BATCH_SIZE
        The batch size to use when we need to iterate through the whole result set.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebResults

        public WebResults​(InterMineAPI im,
                          PathQuery pathQuery,
                          Results results,
                          java.util.Map<java.lang.String,​QuerySelectable> pathToQueryNode,
                          java.util.Map<java.lang.String,​BagQueryResult> pathToBagQueryResult)
        Create a new WebResults object.
        Parameters:
        pathQuery - used to get the paths of the columns
        results - the underlying Results object
        im - intermine API
        pathToQueryNode - the mapping between Paths (in the columnPaths argument) and the QueryNodes in the results object
        pathToBagQueryResult - a Map containing results from LOOKUP operations