Package org.rcsb.mmtf.spark.data
Class SegmentClusters
- java.lang.Object
-
- org.rcsb.mmtf.spark.data.SegmentClusters
-
public class SegmentClusters extends java.lang.ObjectA 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 theJavaPairRDDfor this class.java.lang.Longsize()Get the number of clusters available.
-
-
-
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 inputJavaPairRDDdata.
-
-
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 theJavaPairRDDfor this class.- Returns:
- the
JavaPairRDD.
-
-