Class KnnJudgement<U extends org.locationtech.jts.geom.Geometry,​T extends org.locationtech.jts.geom.Geometry>

  • All Implemented Interfaces:
    Serializable, org.apache.spark.api.java.function.FlatMapFunction<Iterator<T>,​T>

    public class KnnJudgement<U extends org.locationtech.jts.geom.Geometry,​T extends org.locationtech.jts.geom.Geometry>
    extends Object
    implements org.apache.spark.api.java.function.FlatMapFunction<Iterator<T>,​T>, Serializable
    The Class GeometryKnnJudgement.
    See Also:
    Serialized Form
    • Constructor Detail

      • KnnJudgement

        public KnnJudgement​(U queryCenter,
                            int k)
        Instantiates a new geometry knn judgement.
        Parameters:
        queryCenter - the query center
        k - the k
    • Method Detail

      • call

        public Iterator<T> call​(Iterator<T> input)
                         throws Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.FlatMapFunction<U extends org.locationtech.jts.geom.Geometry,​T extends org.locationtech.jts.geom.Geometry>
        Throws:
        Exception