Package org.nustaq.serialization
Class FSTObjectRegistry
java.lang.Object
org.nustaq.serialization.FSTObjectRegistry
public final class FSTObjectRegistry
extends java.lang.Object
Created with IntelliJ IDEA.
User: ruedi
Date: 11.11.12
Time: 15:34
To change this template use File | Settings | File Templates.
-
Field Summary
Fields Modifier and Type Field Description static intOBJ_DIVISORstatic intPOS_MAP_SIZE -
Constructor Summary
Constructors Constructor Description FSTObjectRegistry(FSTConfiguration conf) -
Method Summary
Modifier and Type Method Description voidclearForRead(FSTConfiguration conf)voidclearForWrite(FSTConfiguration conf)intgetObjectSize()java.lang.ObjectgetReadRegisteredObject(int handle)voidregisterObjectForRead(java.lang.Object o, int streamPosition)intregisterObjectForWrite(java.lang.Object o, int streamPosition, FSTClazzInfo clzInfo, int[] reUseType)add an object to the register, return handle if already present.voidreplace(java.lang.Object old, java.lang.Object replaced, int streamPos)
-
Field Details
-
OBJ_DIVISOR
public static final int OBJ_DIVISOR- See Also:
- Constant Field Values
-
POS_MAP_SIZE
public static int POS_MAP_SIZE
-
-
Constructor Details
-
Method Details
-
clearForRead
-
clearForWrite
-
getReadRegisteredObject
public java.lang.Object getReadRegisteredObject(int handle) -
replace
public void replace(java.lang.Object old, java.lang.Object replaced, int streamPos) -
registerObjectForRead
public void registerObjectForRead(java.lang.Object o, int streamPosition) -
registerObjectForWrite
public int registerObjectForWrite(java.lang.Object o, int streamPosition, FSTClazzInfo clzInfo, int[] reUseType)add an object to the register, return handle if already present. Called during write only- Parameters:
o-streamPosition-- Returns:
- 0 if added, handle if already present
-
getObjectSize
public int getObjectSize()
-