Package org.h2.value.lob
Class LobDataFetchOnDemand
java.lang.Object
org.h2.value.lob.LobData
org.h2.value.lob.LobDataFetchOnDemand
A implementation of the LOB data used on the client side of a remote H2
connection. Fetches the underlying on data from the server.
-
Constructor Summary
ConstructorsConstructorDescriptionLobDataFetchOnDemand(DataHandler handler, int tableId, long lobId, byte[] hmac) -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(long precision) Get stream to read LOB data fromlonggetLobId()intGet the current table id of this lob.booleanCheck if this value is linked to a specific table.toString()
-
Constructor Details
-
LobDataFetchOnDemand
-
-
Method Details
-
isLinkedToTable
public boolean isLinkedToTable()Check if this value is linked to a specific table. For values that are kept fully in memory, this method returns false.- Overrides:
isLinkedToTablein classLobData- Returns:
- true if it is
-
getTableId
public int getTableId()Get the current table id of this lob.- Returns:
- the table id
-
getLobId
public long getLobId() -
getInputStream
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
-
getDataHandler
- Overrides:
getDataHandlerin classLobData
-
toString
-