File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\result\SearchRow.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.result;
8
9 import org.h2.value.Value;
10
11 /**
12 * The interface for rows stored in a table, and for partial rows stored in the
13 * index.
14 */
15 public interface SearchRow {
16
17 /**
18 * An empty array of SearchRow objects.
19 */
20 SearchRow[] EMPTY_ARRAY = {};
21
22 /**
23 * Get the column count.
24 *
25 * @return the column count
26 */
27 int getColumnCount();
28
29 /**
30 * Get the value for the column
31 *
32 * @param index the column number (starting with 0)
33 * @return the value
34 */
35 Value getValue(int index);
36
37 /**
38 * Set the value for given column
39 *
40 * @param index the column number (starting with 0)
41 * @param v the new value
42 */
43 void setValue(int index, Value v);
44
45 /**
46 * Set the position and version to match another row.
47 *
48 * @param old the other row.
49 */
50 void setKeyAndVersion(SearchRow old);
51
52 /**
53 * Get the version of the row.
54 *
55 * @return the version
56 */
57 int getVersion();
58
59 /**
60 * Set the unique key of the row.
61 *
62 * @param key the key
63 */
64 void setKey(long key);
65
66 /**
67 * Get the unique key of the row.
68 *
69 * @return the key
70 */
71 long getKey();
72
73 /**
74 * Get the estimated memory used for this row, in bytes.
75 *
76 * @return the memory
77 */
78 int getMemory();
79
80 }
81