| | |
| | | @Override |
| | | public EntryID apply(ByteString value) throws Exception |
| | | { |
| | | return new EntryID(value.asReader().readCompactUnsigned()); |
| | | return new EntryID(value.asReader().readCompactUnsignedLong()); |
| | | } |
| | | }, new CursorTransformer.ValueTransformer<ByteString, ByteString, Long, NeverThrowsException>() |
| | | { |
| | |
| | | public String keyToString(ByteString key) |
| | | { |
| | | ByteSequenceReader keyReader = key.asReader(); |
| | | long keyID = keyReader.readCompactUnsigned(); |
| | | long shardBucket = keyReader.readCompactUnsigned(); |
| | | long keyID = keyReader.readCompactUnsignedLong(); |
| | | long shardBucket = keyReader.readCompactUnsignedLong(); |
| | | return (keyID == TOTAL_COUNT_ENTRY_ID.longValue() ? "Total Children Count" : keyID) + "#" + shardBucket; |
| | | } |
| | | |