Class FSTObjectRegistry

java.lang.Object
org.nustaq.serialization.FSTObjectRegistry

public final class FSTObjectRegistry extends Object
Created with IntelliJ IDEA. User: ruedi Date: 11.11.12 Time: 15:34 To change this template use File | Settings | File Templates.
  • Field Details

    • OBJ_DIVISOR

      public static final int OBJ_DIVISOR
      See Also:
    • POS_MAP_SIZE

      public static int POS_MAP_SIZE
  • Constructor Details

  • Method Details

    • clearForRead

      public void clearForRead(FSTConfiguration conf)
    • clearForWrite

      public void clearForWrite(FSTConfiguration conf)
    • getReadRegisteredObject

      public Object getReadRegisteredObject(int handle)
    • replace

      public void replace(Object old, Object replaced, int streamPos)
    • registerObjectForRead

      public void registerObjectForRead(Object o, int streamPosition)
    • 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()