Class IteratorFetchResult<T>

    • Constructor Detail

      • IteratorFetchResult

        public IteratorFetchResult​(Iterator<T> it,
                                   long size,
                                   long offset,
                                   long limit,
                                   long total)
      • IteratorFetchResult

        public IteratorFetchResult​(Collection<T> data,
                                   long offset,
                                   long limit,
                                   long total)
    • Method Detail

      • getSize

        public long getSize()
        Description copied from interface: FetchResult
        Get the number of returned results.
        Specified by:
        getSize in interface FetchResult<T>
        Returns:
      • getOffset

        public long getOffset()
        Description copied from interface: FetchResult
        Get the offset used to fetch these results.
        Specified by:
        getOffset in interface FetchResult<T>
        Returns:
      • getLimit

        public long getLimit()
        Description copied from interface: FetchResult
        Get the limit used to fetch these results.
        Specified by:
        getLimit in interface FetchResult<T>
        Returns:
      • getTotal

        public long getTotal()
        Description copied from interface: FetchResult
        Get the total number of results available.
        Specified by:
        getTotal in interface FetchResult<T>
        Returns:
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: FetchResult
        Check if these results are empty.
        Specified by:
        isEmpty in interface FetchResult<T>
        Returns: