public final class LobStorageMap extends Object implements LobStorageInterface
| 限定符和类型 | 类和说明 |
|---|---|
static class |
LobStorageMap.BlobMeta |
static class |
LobStorageMap.BlobReference |
| 构造器和说明 |
|---|
LobStorageMap(Database database) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close LobStorage and release all resources
|
ValueLob |
copyLob(ValueLob old,
int tableId)
Copy a lob.
|
ValueBlob |
createBlob(InputStream in,
long maxLength)
Create a BLOB object.
|
ValueClob |
createClob(Reader reader,
long maxLength)
Create a CLOB object.
|
InputStream |
getInputStream(long lobId,
int tableId,
long byteCount)
Get the input stream for the given lob
|
InputStream |
getInputStream(long lobId,
long byteCount)
Get the input stream for the given lob, only called on server side of a TCP connection.
|
boolean |
isReadOnly()
Whether the storage is read-only
|
static MVMap<Long,byte[]> |
openLobDataMap(TransactionStore txStore)
Open map used to store LOB data
|
static MVMap<Long,LobStorageMap.BlobMeta> |
openLobMap(TransactionStore txStore)
Open map used to store LOB metadata
|
void |
removeAllForTable(int tableId)
Remove all LOBs for this table.
|
void |
removeLob(ValueLob lob)
Delete a LOB (from the database, if it is stored there).
|
public LobStorageMap(Database database)
public static MVMap<Long,LobStorageMap.BlobMeta> openLobMap(TransactionStore txStore)
txStore - containing mappublic static MVMap<Long,byte[]> openLobDataMap(TransactionStore txStore)
txStore - containing mappublic ValueBlob createBlob(InputStream in, long maxLength)
LobStorageInterfacecreateBlob 在接口中 LobStorageInterfacein - the input streammaxLength - the maximum length (-1 if not known)public ValueClob createClob(Reader reader, long maxLength)
LobStorageInterfacecreateClob 在接口中 LobStorageInterfacereader - the readermaxLength - the maximum length (-1 if not known)public boolean isReadOnly()
LobStorageInterfaceisReadOnly 在接口中 LobStorageInterfacepublic ValueLob copyLob(ValueLob old, int tableId)
LobStorageInterfacecopyLob 在接口中 LobStorageInterfaceold - the old lobtableId - the new table idpublic InputStream getInputStream(long lobId, long byteCount) throws IOException
LobStorageInterfacegetInputStream 在接口中 LobStorageInterfacelobId - the lob idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failurepublic InputStream getInputStream(long lobId, int tableId, long byteCount) throws IOException
LobStorageInterfacegetInputStream 在接口中 LobStorageInterfacelobId - the lob idtableId - the able idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failurepublic void removeAllForTable(int tableId)
LobStorageInterfaceremoveAllForTable 在接口中 LobStorageInterfacetableId - the table idpublic void removeLob(ValueLob lob)
LobStorageInterfaceremoveLob 在接口中 LobStorageInterfacelob - the lobpublic void close()
LobStorageInterfaceclose 在接口中 LobStorageInterfaceCopyright © 2022. All rights reserved.