protected byte [ ] serializeStreamValue ( final int iIndex ) throws IOException { if ( serializedValues [ iIndex ] <= 0 ) { // NEW OR MODIFIED: MARSHALL CONTENT OProfiler . getInstance ( ) . updateCounter ( "OMVRBTreeMapEntry.serializeValue" , 1 ) ; return ( ( OMVRBTreeMapProvider < K , V > ) treeDataProvider ) . valueSerializer . toStream ( values [ iIndex ] ) ; } // RETURN ORIGINAL CONTENT return stream . getAsByteArray ( serializedValues [ iIndex ] ) ; }
Serialize only the new values or the changed .