KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > store > RedoLogRecord


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.store;
6
7 public class RedoLogRecord {
8     Storage storage;
9     int sequenceId;
10     int recordId;
11     int offset;
12     byte[] data;
13     
14     public int getSize() {
15         // estimated memory size in bytes ((5 variables+myself) * 4 bytes each)
16
if(data == null) {
17             return 24;
18         } else {
19             return 28 + data.length;
20         }
21     }
22 }
23
Popular Tags