@Override public Key cloneKey(boolean includeValues) { Key stringKey = new StringKey(unicodeBytes); return includeValues ? stringKey.setKeys(getKeys()) : stringKey; }
@Override public Key cloneKey(boolean includeValues) { Key stringKey = new LongKey(key); return includeValues ? stringKey.setKeys(getKeys()) : stringKey; }
@Override public Key cloneKey(boolean includeValues) { Key stringKey = new UUIDKey(leastSignificant, mostSignificant); return includeValues ? stringKey.setKeys(getKeys()) : stringKey; }
@Override public void updateKey(Key key) throws JasDBStorageException { Key foundKey = leaves.get(key); foundKey.setKeys(key.getKeys()); leaveProperties.setModified(true); }
@Override public void updateKey(Key key) throws JasDBStorageException { if(isLeave) { Key foundKey = treeNodes.get(key).getKey(); foundKey.setKeys(key.getKeys()); modified = true; } else { throw new JasDBStorageException("Unable to update key, root is not a leave"); } }