提交 f11667db authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting.

上级 bf43f380
......@@ -46,7 +46,8 @@ public class LobStorageMap implements LobStorageInterface {
* (which is a long) to the stream store id (which is a byte array).
*
* Key: lobId (long)
* Value: { streamStoreId (byte[]), tableId (int), byteCount (long), hashCode (long) }.
* Value: { streamStoreId (byte[]), tableId (int),
* byteCount (long), hashCode (long) }.
*/
private MVMap<Long, Object[]> lobMap;
......@@ -95,7 +96,8 @@ public class LobStorageMap implements LobStorageInterface {
dataMap = mvStore.openMap("lobData",
new MVMapConcurrent.Builder<Long, byte[]>());
streamStore = new StreamStore(dataMap);
// TODO currently needed to avoid out of memory
// TODO currently needed to avoid out of memory,
// because memory usage is only measure in number of pages currently
streamStore.setMaxBlockSize(32 * 1024);
}
......@@ -240,7 +242,8 @@ public class LobStorageMap implements LobStorageInterface {
@Override
public void removeAllForTable(int tableId) {
init();
// this might not be very efficient - to speed it up, we would need yet another map
// this might not be very efficient -
// to speed it up, we would need yet another map
ArrayList<Long> list = New.arrayList();
for (Entry<Long, Object[]> e : lobMap.entrySet()) {
Object[] value = e.getValue();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论