Debian Codegraph @

src/main/org/h2/index/SpatialIndex.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.index;
7
8 import org.h2.engine.SessionLocal;
9 import org.h2.result.SearchRow;
10
11 /**
12 * A spatial index. Spatial indexes are used to speed up searching
13 * spatial/geometric data.
14 */
15 public interface SpatialIndex {
16
17 /**
18 * Find a row or a list of rows and create a cursor to iterate over the
19 * result.
20 *
21 * @param session the session
22 * @param first the lower bound
23 * @param last the upper bound
24 * @param intersection the geometry which values should intersect with, or
25 * null for anything
26 * @return the cursor to iterate over the results
27 */
28 Cursor findByGeometry(SessionLocal session, SearchRow first, SearchRow last, SearchRow intersection);
29
30 }