private int getFromIdx(int idx) {
return idx * IN_QRY_LIMIT_SIZE;
}

private int getToIdx(int idx, int originSize) {
int fromIdx = getFromIdx(idx);
int toIdx = fromIdx + IN_QRY_LIMIT_SIZE;
if (toIdx > originSize) {
toIdx = originSize;
}
return toIdx;
}


+ Recent posts