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 Group4 */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