Class LobDataInMemory


  • public final class LobDataInMemory
    extends LobData
    LOB data stored in memory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] small
      If the LOB is below the inline size, we just store/load it directly here.
    • Constructor Summary

      Constructors 
      Constructor Description
      LobDataInMemory​(byte[] small)  
    • Field Detail

      • small

        private final byte[] small
        If the LOB is below the inline size, we just store/load it directly here.
    • Constructor Detail

      • LobDataInMemory

        public LobDataInMemory​(byte[] small)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream​(long precision)
        Description copied from class: LobData
        Get stream to read LOB data from
        Specified by:
        getInputStream in class LobData
        Parameters:
        precision - octet length of the stream, or -1 if unknown
        Returns:
        stream to read LOB data from
      • getSmall

        public byte[] getSmall()
        Get the data if this a small lob value.
        Returns:
        the data
      • getMemory

        public int getMemory()
        Description copied from class: LobData
        Get the memory used by this object.
        Overrides:
        getMemory in class LobData
        Returns:
        the memory used in bytes