Package org.lilyproject.repository.api

Examples of org.lilyproject.repository.api.VersionNotFoundException


                // Latest version can still be null if there are only non-versioned fields in the record
                requestedVersion = latestVersion;
            } else {
                if (latestVersion == null || latestVersion < requestedVersion) {
                    // The requested version is higher than the highest existing version
                    throw new VersionNotFoundException(recordId, requestedVersion);
                }
            }
            return recdec.decodeRecordWithIds(recordId, requestedVersion, result, fieldTypes);
        } finally {
            if (metrics != null) {
View Full Code Here


                // Latest version can still be null if there are only non-versioned fields in the record
                requestedVersion = latestVersion;
            } else {
                if (latestVersion == null || latestVersion < requestedVersion) {
                    // The requested version is higher than the highest existing version
                    throw new VersionNotFoundException(recordId, requestedVersion);
                }
            }

            byte[] occBytes = result.getValue(RecordCf.DATA.bytes, RecordColumn.OCC.bytes);
            return new Pair<Record, byte[]>(recdec.decodeRecord(recordId, requestedVersion, null, result, fieldTypes), occBytes);
View Full Code Here

TOP

Related Classes of org.lilyproject.repository.api.VersionNotFoundException

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.