| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | OperationStatus status; |
| | | Comparator<byte[]> defaultComparator = |
| | | new AttributeIndex.KeyComparator(); |
| | | Comparator<byte[]> dnComparator = |
| | | new EntryContainer.KeyReverseComparator(); |
| | | byte[] start = null; |
| | | byte[] end = null; |
| | | int minSize = -1; |
| | |
| | | { |
| | | if(databaseContainer instanceof DN2ID) |
| | | { |
| | | if(dnComparator.compare(key.getData(), end) > 0) |
| | | if(defaultComparator.compare(key.getData(), end) > 0) |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | else if(databaseContainer instanceof DN2URI) |
| | | { |
| | | if(dnComparator.compare(key.getData(), end) > 0) |
| | | if(defaultComparator.compare(key.getData(), end) > 0) |
| | | { |
| | | break; |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | formatedKey = DN.decode(ByteString.wrap(key.getData())). |
| | | toNormalizedString(); |
| | | formatedKey = JebFormat.dnFromDNKey( |
| | | key.getData(), 0, key.getSize(), ec.getBaseDN()). |
| | | toNormalizedString(); |
| | | keyLabel = INFO_LABEL_DBTEST_ENTRY_DN.get(); |
| | | } |
| | | catch(Exception e) |
| | |
| | | { |
| | | try |
| | | { |
| | | formatedKey = DN.decode(ByteString.wrap( |
| | | key.getData())).toNormalizedString(); |
| | | formatedKey = new String(key.getData()); |
| | | keyLabel = INFO_LABEL_DBTEST_ENTRY_DN.get(); |
| | | } |
| | | catch(Exception e) |