Class SegmentClusters


  • public class SegmentClusters
    extends java.lang.Object
    A class to consider clusters of segmenets.
    Author:
    Anthony Bradley
    • Constructor Summary

      Constructors 
      Constructor Description
      SegmentClusters​(org.apache.spark.api.java.JavaPairRDD<java.lang.String,​java.lang.Iterable<Segment>> inputRDD)
      Constructor of FragmentClusters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.spark.api.java.JavaPairRDD<java.lang.String,​java.lang.Iterable<Segment>> getJavaRdd()
      Get the JavaPairRDD for this class.
      java.lang.Long size()
      Get the number of clusters available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SegmentClusters

        public SegmentClusters​(org.apache.spark.api.java.JavaPairRDD<java.lang.String,​java.lang.Iterable<Segment>> inputRDD)
        Constructor of FragmentClusters. The string is the Key of the cluster. List of Segments describes the cluster.
        Parameters:
        inputRDD - the input JavaPairRDD data.
    • Method Detail

      • size

        public java.lang.Long size()
        Get the number of clusters available.
        Returns:
        the number of clusters
      • getJavaRdd

        public org.apache.spark.api.java.JavaPairRDD<java.lang.String,​java.lang.Iterable<Segment>> getJavaRdd()
        Get the JavaPairRDD for this class.
        Returns:
        the JavaPairRDD.