public class PagesRTreeIndex extends Object implements PagesSpatialIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
PagesRTreeIndex.GeometryWithPosition |
EMPTY_INDEX| Constructor and Description |
|---|
PagesRTreeIndex(Session session,
it.unimi.dsi.fastutil.longs.LongArrayList addresses,
List<Type> types,
List<Integer> outputChannels,
List<List<Block>> channels,
org.locationtech.jts.index.strtree.STRtree rtree,
Optional<Integer> radiusChannel,
SpatialIndexBuilderOperator.SpatialPredicate spatialRelationshipTest,
Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory,
Map<Integer,Rectangle> partitions) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(int joinPosition,
PageBuilder pageBuilder,
int outputChannelOffset) |
int[] |
findJoinPositions(int probePosition,
Page probe,
int probeGeometryChannel,
Optional<Integer> probePartitionChannel)
Returns an array of addresses from
PagesIndex.valueAddresses corresponding
to rows with matching geometries. |
boolean |
isJoinPositionEligible(int joinPosition,
int probePosition,
Page probe) |
public PagesRTreeIndex(Session session, it.unimi.dsi.fastutil.longs.LongArrayList addresses, List<Type> types, List<Integer> outputChannels, List<List<Block>> channels, org.locationtech.jts.index.strtree.STRtree rtree, Optional<Integer> radiusChannel, SpatialIndexBuilderOperator.SpatialPredicate spatialRelationshipTest, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Map<Integer,Rectangle> partitions)
public int[] findJoinPositions(int probePosition,
Page probe,
int probeGeometryChannel,
Optional<Integer> probePartitionChannel)
PagesIndex.valueAddresses corresponding
to rows with matching geometries.
The caller is responsible for calling isJoinPositionEligible(int, int, Page)
for each of these addresses to apply additional join filters.
findJoinPositions in interface PagesSpatialIndexpublic boolean isJoinPositionEligible(int joinPosition,
int probePosition,
Page probe)
isJoinPositionEligible in interface PagesSpatialIndexpublic void appendTo(int joinPosition,
PageBuilder pageBuilder,
int outputChannelOffset)
appendTo in interface PagesSpatialIndexCopyright © 2012–2019. All rights reserved.