01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.store;
07:
08: import java.sql.SQLException;
09: import org.h2.engine.Session;
10:
11: /**
12: * A record reader is able to create a {@link Record} from a {@link DataPage}.
13: */
14: public interface RecordReader {
15:
16: /**
17: * Read a record from the data page.
18: *
19: * @param session the session
20: * @param s the data page
21: * @return the record
22: */
23: Record read(Session session, DataPage s) throws SQLException;
24: }
|