Top Description Methods
org.h2.index

public Interface SpatialIndex

Known Direct Implementers
org.h2.mvstore.db.MVSpatialIndex, org.h2.index.RegularQueryExpressionIndex
Imports
org.h2.engine.SessionLocal, org.h2.result.SearchRow

A spatial index. Spatial indexes are used to speed up searching spatial/geometric data.

Method Summary

Modifier and TypeMethod and Description
public Cursor

Returns:

the cursor to iterate over the results
findByGeometry
(SessionLocal
the session
session
,
SearchRow
the lower bound
first
,
SearchRow
the upper bound
last
,
boolean
if true, iterate in reverse (descending) order
reverse
,
SearchRow
the geometry which values should intersect with, or null for anything
intersection
)

Find a row or a list of rows and create a cursor to iterate over the result.

Method Detail

findByGeometryback to summary
public Cursor findByGeometry(SessionLocal session, SearchRow first, SearchRow last, boolean reverse, SearchRow intersection)

Find a row or a list of rows and create a cursor to iterate over the result.

Parameters
session:SessionLocal

the session

first:SearchRow

the lower bound

last:SearchRow

the upper bound

reverse:boolean

if true, iterate in reverse (descending) order

intersection:SearchRow

the geometry which values should intersect with, or null for anything

Returns:Cursor

the cursor to iterate over the results