Debian Codegraph @

src/main/org/h2/result/ResultTarget.java

raw
1 /*
2 * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (https://h2database.com/html/license.html).
4 * Initial Developer: H2 Group
5 */
6 package org.h2.result;
7
8 import org.h2.value.Value;
9
10 /**
11 * A object where rows are written to.
12 */
13 public interface ResultTarget {
14
15 /**
16 * Add the row to the result set.
17 *
18 * @param values the values
19 */
20 void addRow(Value... values);
21
22 /**
23 * Get the number of rows.
24 *
25 * @return the number of rows
26 */
27 long getRowCount();
28
29 /**
30 * A hint that sorting, offset and limit may be ignored by this result
31 * because they were applied during the query. This is useful for WITH TIES
32 * clause because result may contain tied rows above limit.
33 */
34 void limitsWereApplied();
35
36 }