1 /* 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002,2006 Oracle. All rights reserved. 5 * 6 * $Id: INContainingEntry.java,v 1.16 2006/10/30 21:14:21 bostic Exp $ 7 */ 8 9 package com.sleepycat.je.log.entry; 10 11 import com.sleepycat.je.DatabaseException; 12 import com.sleepycat.je.dbi.DatabaseId; 13 import com.sleepycat.je.dbi.EnvironmentImpl; 14 import com.sleepycat.je.tree.IN; 15 16 /** 17 * An INContainingEntry is a log entry that contains internal nodes. 18 */ 19 public interface INContainingEntry { 20 21 /** 22 * @return the IN held within this log entry. 23 */ 24 public IN getIN(EnvironmentImpl env) 25 throws DatabaseException; 26 27 /** 28 * @return the database id held within this log entry. 29 */ 30 public DatabaseId getDbId(); 31 32 /** 33 * @return the LSN that represents this IN. 34 */ 35 public long getLsnOfIN(long lastReadLsn); 36 } 37