Package com.persistit.encoding

Examples of com.persistit.encoding.HandleCache


        endVariableSizeItem(length);
    }

    private int directHandle(final ValueCoder coder, final Class<?> clazz) {
        if (coder instanceof HandleCache) {
            final HandleCache cache = (HandleCache) coder;
            int handle = cache.getHandle();
            if (handle == 0) {
                handle = handleForClass(clazz);
                cache.setHandle(handle);
            }
            return handle;
        } else {
            return handleForClass(clazz);
        }
View Full Code Here


        endVariableSizeItem(length);
    }

    private int directHandle(final ValueCoder coder, final Class<?> clazz) {
        if (coder instanceof HandleCache) {
            final HandleCache cache = (HandleCache) coder;
            int handle = cache.getHandle();
            if (handle == 0) {
                handle = handleForClass(clazz);
                cache.setHandle(handle);
            }
            return handle;
        } else {
            return handleForClass(clazz);
        }
View Full Code Here

        endVariableSizeItem(length);
    }

    private int directHandle(final ValueCoder coder, final Class<?> clazz) {
        if (coder instanceof HandleCache) {
            final HandleCache cache = (HandleCache) coder;
            int handle = cache.getHandle();
            if (handle == 0) {
                handle = handleForClass(clazz);
                cache.setHandle(handle);
            }
            return handle;
        } else {
            return handleForClass(clazz);
        }
View Full Code Here

TOP

Related Classes of com.persistit.encoding.HandleCache

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.