Class RichAResult

    • Constructor Detail

      • RichAResult

        public RichAResult​(AResult result)
    • Method Detail

      • getProperties

        public com.entwinemedia.fn.Stream<Property> getProperties()
      • countProperties

        public int countProperties()
        Count all properties contained in the result.
      • getSnapshots

        public com.entwinemedia.fn.Stream<Snapshot> getSnapshots()
        Get all selected snapshots.
      • countSnapshots

        public int countSnapshots()
        Count all snapshots contained in the result.
      • getVersions

        public com.entwinemedia.fn.Stream<Version> getVersions()
        Get all selected versions.
      • getRecords

        public com.entwinemedia.fn.Stream<ARecord> getRecords()
        Description copied from interface: AResult
        Return the found records.
        Specified by:
        getRecords in interface AResult
      • getQuery

        public String getQuery()
        Description copied from interface: AResult
        Return a string representation of the query.
        Specified by:
        getQuery in interface AResult
      • getTotalSize

        public long getTotalSize()
        Description copied from interface: AResult
        Return the number of items the query could potentially yield.
        Specified by:
        getTotalSize in interface AResult
        Returns:
        the total value or -1 to indicate that the value has not been calculated
      • getLimit

        public long getLimit()
        Description copied from interface: AResult
        Return the set's size limit. It reflects the requested page size if specified in the query. This value is >= AResult.getSize().
        Specified by:
        getLimit in interface AResult
        Returns:
        the requested size limit or -1 if none has been specified
        See Also:
        AResult.getSize()
      • getOffset

        public long getOffset()
        Description copied from interface: AResult
        Return the offset within the total result set.
        Specified by:
        getOffset in interface AResult
      • getSearchTime

        public long getSearchTime()
        Description copied from interface: AResult
        Return the search time of the query.
        Specified by:
        getSearchTime in interface AResult
        Returns:
        the search time or -1 to indicate that it has not been measured