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.result;
07:
08: import org.h2.value.Value;
09:
10: /**
11: * The interface for rows stored in a table, and for partial rows stored in the
12: * index.
13: */
14: public interface SearchRow {
15:
16: /**
17: * Get the position of the row in the data file.
18: *
19: * @return the position
20: */
21: int getPos();
22:
23: /**
24: * Get the value for the column
25: *
26: * @param index the column number (starting with 0)
27: * @return the value
28: */
29: Value getValue(int index);
30:
31: /**
32: * Get the column count.
33: *
34: * @return the column count
35: */
36: int getColumnCount();
37:
38: /**
39: * Set the value for given column
40: *
41: * @param index the column number (starting with 0)
42: * @param v the new value
43: */
44: void setValue(int index, Value v);
45:
46: /**
47: * Set the position (where the row is stored in the data file).
48: *
49: * @param pos the position.
50: */
51: void setPos(int pos);
52:
53: }
|