Package com.netflix.zeno.fastblob.state

Examples of com.netflix.zeno.fastblob.state.ByteArrayOrdinalMap


    /**
     * Read a snapshot with a state currently populated.  This is the "heap-friendly" version
     */
    private void readSnapshotTypesDoubleSnapshotRefresh(StreamingByteData byteData, DataInputStream dis, int numTypes) throws IOException {
        ByteArrayOrdinalMap serializedRepresentationMap = new ByteArrayOrdinalMap();
        stateEngine.prepareForDoubleSnapshotRefresh();

        for(int i=0;i<numTypes;i++) {
            /// type flags byte -- reserved for later use
            dis.read();

            FastBlobSchema schema = FastBlobSchema.readFrom(dis);

            readTypeStateObjectsDoubleSnapshotRefresh(byteData, schema, serializedRepresentationMap);

            serializedRepresentationMap.clear();
        }

        stateEngine.cleanUpAfterDoubleSnapshotRefresh();
    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.fastblob.state.ByteArrayOrdinalMap

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.