Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.StorageKeySizeExceededException


        sourceKey.indexTo(sourceDepth + 1);
        int to = sourceKey.getIndex();
        if (from >= 0 && to >= 0 && to > from) {
            int newSize = targetKey.getEncodedSize() + to - from;
            if(newSize > targetKey.getMaximumSize()) {
                throw new StorageKeySizeExceededException(targetKey.getMaximumSize(), String.valueOf(descForError));
            }
            System.arraycopy(sourceKey.getEncodedBytes(), from,
                             targetKey.getEncodedBytes(), targetKey.getEncodedSize(), to - from);
            targetKey.setEncodedSize(newSize);
        }
View Full Code Here


        return key;
    }

    private void reThrowKeyTooLong(KeyTooLongException e) {
        int max = key.getMaximumSize();
        throw new StorageKeySizeExceededException(e, max, String.valueOf(descForError));
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.StorageKeySizeExceededException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.