public Cursor < S > fetchSlice ( FilterValues < S > values , long from , Long to ) throws FetchException { Cursor < S > cursor = fetch ( values ) ; if ( from > 0 ) { cursor = new SkipCursor < S > ( cursor , from ) ; } if ( to != null ) { cursor = new LimitCursor < S > ( cursor , to - from ) ; } return cursor ; }
Produces a slice via skip and limit cursors . Subclasses are encouraged to override with a more efficient implementation .