Package org.h2.value.lob
Class LobDataInMemory
- java.lang.Object
-
- org.h2.value.lob.LobData
-
- org.h2.value.lob.LobDataInMemory
-
public final class LobDataInMemory extends LobData
LOB data stored in memory.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]smallIf the LOB is below the inline size, we just store/load it directly here.
-
Constructor Summary
Constructors Constructor Description LobDataInMemory(byte[] small)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream(long precision)Get stream to read LOB data fromintgetMemory()Get the memory used by this object.byte[]getSmall()Get the data if this a small lob value.-
Methods inherited from class org.h2.value.lob.LobData
getDataHandler, isLinkedToTable, remove
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(long precision)
Description copied from class:LobDataGet stream to read LOB data from- Specified by:
getInputStreamin classLobData- 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
-
-