Class ScrollResultImpl<T>

    • Field Detail

      • EMPTY_RESULT

        protected static final ScrollResult<?> EMPTY_RESULT
      • scrollId

        protected final String scrollId
      • results

        protected final List<T> results
    • Constructor Detail

      • ScrollResultImpl

        public ScrollResultImpl​(String scrollId,
                                List<T> results)
    • Method Detail

      • emptyResult

        public static <O> ScrollResult<O> emptyResult()
      • getScrollId

        public String getScrollId()
        Description copied from interface: ScrollResult
        Returns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.
        Specified by:
        getScrollId in interface ScrollResult<T>
      • hasResults

        public boolean hasResults()
        Description copied from interface: ScrollResult
        Returns true when this ScrollResult contains results.
        Specified by:
        hasResults in interface ScrollResult<T>