Top Description Fields Constructors Methods
org.h2.value.lob

public final Class LobDataInMemory

extends LobData
Class Inheritance
Imports
java.io.ByteArrayInputStream, .InputStream

LOB data stored in memory.

Field Summary

Modifier and TypeField and Description
private final byte[]
small

If the LOB is below the inline size, we just store/load it directly here.

Constructor Summary

AccessConstructor and Description
public
LobDataInMemory(byte[] small)

Method Summary

Modifier and TypeMethod and Description
public InputStream
getInputStream(long
octet length of the stream, or -1 if unknown
precision
)

Implements abstract org.h2.value.lob.LobData.getInputStream.

Get stream to read LOB data from

public int
getMemory()

Overrides org.h2.value.lob.LobData.getMemory.

Get the memory used by this object.

public byte[]

Returns:

the data
getSmall
()

Get the data if this a small lob value.

Inherited from org.h2.value.lob.LobData:
getDataHandlerisLinkedToTableremove

Field Detail

smallback to summary
private final byte[] small

If the LOB is below the inline size, we just store/load it directly here.

Constructor Detail

LobDataInMemoryback to summary
public LobDataInMemory(byte[] small)

Method Detail

getInputStreamback to summary
public InputStream getInputStream(long precision)

Implements abstract org.h2.value.lob.LobData.getInputStream.

Doc from org.h2.value.lob.LobData.getInputStream.

Get stream to read LOB data from

Parameters
precision:long

octet length of the stream, or -1 if unknown

Returns:InputStream

stream to read LOB data from

Annotations
@Override
getMemoryback to summary
public int getMemory()

Overrides org.h2.value.lob.LobData.getMemory.

Doc from org.h2.value.lob.LobData.getMemory.

Get the memory used by this object.

Returns:int

the memory used in bytes

Annotations
@Override
getSmallback to summary
public byte[] getSmall()

Get the data if this a small lob value.

Returns:byte[]

the data