class KnnJoinIndexJudgement[T <: Geometry, U <: Geometry] extends JudgementBase[T, U] with FlatMapFunction2[Iterator[T], Iterator[SpatialIndex], Pair[U, T]] with Serializable
This class is responsible for performing a K-nearest neighbors (KNN) join operation using a spatial index. It extends the JudgementBase class and implements the FlatMapFunction2 interface.
- Alphabetic
- By Inheritance
- KnnJoinIndexJudgement
- FlatMapFunction2
- JudgementBase
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new KnnJoinIndexJudgement(k: Int, distanceMetric: DistanceMetric, includeTies: Boolean, broadcastedTreeIndex: Broadcast[STRtree], buildCount: LongAccumulator, streamCount: LongAccumulator, resultCount: LongAccumulator, candidateCount: LongAccumulator)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
call(streamShapes: Iterator[T], treeIndexes: Iterator[SpatialIndex]): Iterator[Pair[U, T]]
This method performs the KNN join operation.
This method performs the KNN join operation. It iterates over the geometries in the stream side and uses the spatial index to find the k nearest neighbors for each geometry. The method returns an iterator over the join results.
- streamShapes
iterator over the geometries in the stream side
- treeIndexes
iterator over the spatial indexes
- returns
an iterator over the join results
- Definition Classes
- KnnJoinIndexJudgement → FlatMapFunction2
- Annotations
- @Override()
- Exceptions thrown
Exception
if the spatial index is not of type STRtree
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasNextBase(buildShapes: List[_ <: Geometry], streamShapes: Iterator[_ <: Geometry]): Boolean
Iterator model for the nest loop join.
Iterator model for the nest loop join. It checks if there is a next match and populate it to the result.
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
def
hasNextBase(spatialIndex: SpatialIndex, streamShapes: Iterator[_ <: Geometry], buildLeft: Boolean): Boolean
Iterator model for the index-based join.
Iterator model for the index-based join. It checks if there is a next match and populate it to the result.
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initPartition(): Unit
Looks up the extent of the current partition.
Looks up the extent of the current partition. If found,
match
method will activate the logic to avoid emitting duplicate join results from multiple partitions.Must be called before processing a partition. Must be called from the same instance that will be used to process the partition.
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log(message: String, params: <repeated...>[AnyRef]): Unit
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nextBase(buildShapes: List[_ <: Geometry], streamShapes: Iterator[_ <: Geometry]): Pair[U, T]
Iterator model for the nest loop join.
Iterator model for the nest loop join. It returns 1 pair in the current batch. Each batch contains a list of pairs of geometries that satisfy the join condition. The current batch is the result of the current stream shape against all the build shapes.
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
def
nextBase(spatialIndex: SpatialIndex, streamShapes: Iterator[_ <: Geometry], buildLeft: Boolean): Pair[U, T]
Iterator model for the index-based join.
Iterator model for the index-based join. It returns 1 pair in the current batch. Each batch contains a list of pairs of geometries that satisfy the join condition. The current batch is the result of the current stream shape against all the build shapes.
- Attributes
- protected[joinJudgement]
- Definition Classes
- JudgementBase
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()