private void incrementSourceOffset ( HttpSourceOffset sourceOffset , int increment ) { if ( conf . pagination . mode == PaginationMode . BY_PAGE ) { sourceOffset . incrementStartAt ( 1 ) ; } else if ( conf . pagination . mode == PaginationMode . BY_OFFSET ) { sourceOffset . incrementStartAt ( increment ) ; } }
Increments the current source offset s startAt portion by the specified amount . This is the number of records parsed when paging BY_OFFSET or 1 if incrementing BY_PAGE .