Package com.netflix.zeno.fastblob.state

Examples of com.netflix.zeno.fastblob.state.ThreadSafeBitSet$ThreadSafeBitSetSegments


            /// type flags byte -- reserved for later use
            os.write(0);
            /// write the schema
            typeState.getSchema().writeTo(os);

            ThreadSafeBitSet imageMembershipBitSet = typeState.getImageMembershipBitSet(imageIndex);
            serializeTypeStateObjects(os, typeState, imageMembershipBitSet);
        }
    }
View Full Code Here


            /// type flags byte -- reserved for later use
            os.write(0);
            /// write the schema
            typeState.getSchema().writeTo(os);

            ThreadSafeBitSet currentImageMembershipBitSet = typeState.getImageMembershipBitSet(imageIndex);
            ThreadSafeBitSet previousImageMembershipBitSet = typeState.getPreviousCycleImageMembershipBitSet(imageIndex);

            serializeDelta(os, typeState, currentImageMembershipBitSet, previousImageMembershipBitSet);
        }
    }
View Full Code Here

                /// type flags byte -- reserved for later use
                os.write(0);
                /// write the schema
                typeState.getPreviousStateSchema().writeTo(os);

                ThreadSafeBitSet currentImageMembershipBitSet = typeState.getImageMembershipBitSet(imageIndex);
                ThreadSafeBitSet previousImageMembershipBitSet = typeState.getPreviousCycleImageMembershipBitSet(imageIndex);

                serializeDelta(os, typeState, previousImageMembershipBitSet, currentImageMembershipBitSet);
            }
        }
    }
View Full Code Here

        }
    }

    private void serializeDelta(DataOutputStream os, FastBlobTypeSerializationState<?> typeState, ThreadSafeBitSet currentStateOrdinals, ThreadSafeBitSet prevStateOrdinals) throws IOException {
        /// get all of the ordinals contained in the previous cycle, which are no longer contained in this cycle.  These all need to be removed.
        ThreadSafeBitSet removedTypeStateObjectsBitSet = prevStateOrdinals.andNot(currentStateOrdinals);
        serializeTypeStateRemovals(os, removedTypeStateObjectsBitSet);

        /// get all of the ordinals contained in this cycle, which were not contained in the previous cycle.  These all need to be added.
        ThreadSafeBitSet addedTypeStateObjectsBitSet = currentStateOrdinals.andNot(prevStateOrdinals);
        serializeTypeStateObjects(os, typeState, addedTypeStateObjectsBitSet);
    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.fastblob.state.ThreadSafeBitSet$ThreadSafeBitSetSegments

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.