Interface RetrievalResultList

    • Method Detail

      • size

        int size()
        Returns:
        The number of retrieval results.
      • getRetrievalTime

        long getRetrievalTime()
        Returns:
        The time used for retrieval in nanoseconds.
      • setRetrievalTime

        void setRetrievalTime​(long retrievalTimeNano)
        Set the retrieval time.
        Parameters:
        retrievalTimeNano - the retrieval time in nanoseconds
      • getRetrievalTime

        long getRetrievalTime​(String format)
        Parameters:
        format - The format for the time (nanoseconds, microseconds, milliseconds, seconds)
        Returns:
        The time used for retrieval in the specified format.
      • getRetrievalTimeString

        String getRetrievalTimeString()
        Returns:
        The time used for retrieval as formatted String
      • getRetrievalTimeString

        String getRetrievalTimeString​(String format)
        Parameters:
        format - The format for the time (nanoseconds, microseconds, milliseconds, seconds)
        Returns:
        The time used for retrieval as String in the specified format.
      • add

        void add​(RetrievalResult object)
        Adds a retrieval result to the list.
        Parameters:
        object - The retrieval result to add.
      • remove

        void remove​(RetrievalResult object)
        Removes a retrieval result from the list.
        Parameters:
        object - The retrieval result to remove.
      • stream

        Stream<RetrievalResult> stream()
        Returns a stream of the retrieval results.
        Returns:
        a stream of results
      • toXML

        String toXML()
        Converts full RetrievalResultList to XML
        Returns:
        XML String
      • toXML

        String toXML​(HashMap<Class,​List<String>> toOmit)
        Converts RetrievalResultList to XML, ignoring the fields specified in toOmit
        Parameters:
        toOmit - HashMap that contains classes as a key and a corresponding list of fields that should be ignored in the particular class
        Returns:
        XML String
      • fromXML

        RetrievalResultListImpl fromXML​(String retrievalResultListXML)
        Converts a serialized RetrievalResultList-XML into a Query-object
        Parameters:
        retrievalResultListXML - Query XML String
        Returns:
        Query-object