| | |
| | | { |
| | | while (cursor.next()) |
| | | { |
| | | count.getAndAdd(SortValuesSet.getEncodedSize(cursor.getValue(), 0)); |
| | | count.getAndAdd(SortValuesSet.getEncodedSize(cursor.getValue())); |
| | | } |
| | | } |
| | | finally |
| | |
| | | { |
| | | logSearchKeyResult(cursor.getKey()); |
| | | } |
| | | long[] IDs = SortValuesSet.getEncodedIDs(cursor.getValue(), 0); |
| | | long[] IDs = SortValuesSet.getEncodedIDs(cursor.getValue()); |
| | | for(int i = startPos + selectedPos - cursorCount; |
| | | i < IDs.length && selectedPos < count; |
| | | i++, selectedPos++) |
| | |
| | | |
| | | if(includedBeforeCount < beforeCount) |
| | | { |
| | | lastIDs = SortValuesSet.getEncodedIDs(cursor.getValue(), 0); |
| | | lastIDs = SortValuesSet.getEncodedIDs(cursor.getValue()); |
| | | lastOffset = lastIDs.length - 1; |
| | | targetOffset += lastIDs.length; |
| | | } |
| | | else |
| | | { |
| | | targetOffset += SortValuesSet.getEncodedSize(cursor.getValue(), 0); |
| | | targetOffset += SortValuesSet.getEncodedSize(cursor.getValue()); |
| | | } |
| | | } |
| | | |
| | |
| | | break; |
| | | } |
| | | |
| | | lastIDs = SortValuesSet.getEncodedIDs(cursor.getValue(), 0); |
| | | lastIDs = SortValuesSet.getEncodedIDs(cursor.getValue()); |
| | | lastOffset = 0; |
| | | afterIDCount += lastIDs.length; |
| | | } |
| | |
| | | { |
| | | logSearchKeyResult(cursor.getKey()); |
| | | } |
| | | long[] ids = SortValuesSet.getEncodedIDs(cursor.getValue(), 0); |
| | | long[] ids = SortValuesSet.getEncodedIDs(cursor.getValue()); |
| | | idSets.add(ids); |
| | | currentCount += ids.length; |
| | | } |