public Result readHashcodeByRange(int index, int length, boolean debug, boolean useValue) { // LI4337-17
        Result result = this.htod.readHashcodeByRange(index, length, debug, useValue);
        if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
            stopOnError(result.diskException);
        }
        return result;
    }
public Result readHashcodeByRange ( int index , int length , boolean debug , boolean useValue ) { Result result = this . htod . readHashcodeByRange ( index , length , debug , useValue ) ; if ( result . returnCode == HTODDynacache . DISK_EXCEPTION ) { stopOnError ( result . diskException ) ; } return result ; }
This method find the hashcode based on index and length.

@param index
If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means
"previous".
@param length
The max number of cache ids to be read. If length = -1, it reads all cache ids until the end.
@param debug
true to output id and its hashcode to systemout.log
@param useValue
true to calculate hashcode including value