Package org.nustaq.serialization
Class FSTObjectRegistry
java.lang.Object
org.nustaq.serialization.FSTObjectRegistry
Created with IntelliJ IDEA.
User: ruedi
Date: 11.11.12
Time: 15:34
To change this template use File | Settings | File Templates.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearForRead
(FSTConfiguration conf) void
int
getReadRegisteredObject
(int handle) void
registerObjectForRead
(Object o, int streamPosition) int
registerObjectForWrite
(Object o, int streamPosition, FSTClazzInfo clzInfo, int[] reUseType) add an object to the register, return handle if already present.void
-
Field Details
-
OBJ_DIVISOR
public static final int OBJ_DIVISOR- See Also:
-
POS_MAP_SIZE
public static int POS_MAP_SIZE
-
-
Constructor Details
-
FSTObjectRegistry
-
-
Method Details
-
clearForRead
-
clearForWrite
-
getReadRegisteredObject
-
replace
-
registerObjectForRead
-
registerObjectForWrite
public int registerObjectForWrite(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()
-