public long getRangeTo ( ) { final long limit = ( liveUpdated ? database . getStorage ( ) . getClusterDataRange ( current . clusterId ) [ 1 ] : lastClusterPosition ) + 1 ; if ( rangeTo > - 1 ) return Math . min ( rangeTo , limit ) ; return limit ; }
Return the upper bound limit of the range if any otherwise the last record .