| | |
| | | // This is the last unbounded set. |
| | | while(av != null) |
| | | { |
| | | sortValuesSet.add(av.getEntryID(), av.getValues(), av.getTypes()); |
| | | sortValuesSet.add(av); |
| | | av = moveToNextSortValues(aValues); |
| | | } |
| | | |
| | | while(dv != null) |
| | | { |
| | | sortValuesSet.remove(dv.getEntryID(), dv.getValues()); |
| | | sortValuesSet.remove(dv); |
| | | dv = moveToNextSortValues(dValues); |
| | | } |
| | | } |
| | |
| | | |
| | | while(av != null && av.compareTo(maxValues) <= 0) |
| | | { |
| | | sortValuesSet.add(av.getEntryID(), av.getValues(), av.getTypes()); |
| | | sortValuesSet.add(av); |
| | | av = moveToNextSortValues(aValues); |
| | | } |
| | | |
| | | while(dv != null && dv.compareTo(maxValues) <= 0) |
| | | { |
| | | sortValuesSet.remove(dv.getEntryID(), dv.getValues()); |
| | | sortValuesSet.remove(dv); |
| | | dv = moveToNextSortValues(dValues); |
| | | } |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | private ByteString encodeKey(SortValues sv) throws DirectoryException |
| | | { |
| | | return encodeKey(sv.getEntryID(), sv.getValues(), sv.getTypes()); |
| | | } |
| | | |
| | | /** |
| | | * Evaluate a search with sort control using this VLV index. |
| | | * |
| | |
| | | } |
| | | |
| | | /** |
| | | * Encode a VLV database key with the provided sort values. |
| | | * |
| | | * @param sv the sort values to encode |
| | | * @return The encoded bytes. |
| | | * @throws DirectoryException If a Directory Server error occurs. |
| | | */ |
| | | ByteString encodeKey(SortValues sv) throws DirectoryException |
| | | { |
| | | return encodeKey(sv.getEntryID(), sv.getValues(), sv.getTypes()); |
| | | } |
| | | |
| | | /** |
| | | * Encode a VLV database key with the given information. |
| | | * |
| | | * @param entryID The entry ID to encode. |