Class IntermediateSampleData<T>
- java.lang.Object
-
- org.apache.flink.api.java.sampling.IntermediateSampleData<T>
-
- Type Parameters:
T- The type of sample data.
- All Implemented Interfaces:
Comparable<IntermediateSampleData<T>>
@Internal public class IntermediateSampleData<T> extends Object implements Comparable<IntermediateSampleData<T>>
The data structure which is transferred between partitions and the coordinator for distributed random sampling.
-
-
Constructor Summary
Constructors Constructor Description IntermediateSampleData(double weight, T element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IntermediateSampleData<T> other)TgetElement()doublegetWeight()
-
-
-
Constructor Detail
-
IntermediateSampleData
public IntermediateSampleData(double weight, T element)
-
-
Method Detail
-
getWeight
public double getWeight()
-
getElement
public T getElement()
-
compareTo
public int compareTo(IntermediateSampleData<T> other)
- Specified by:
compareToin interfaceComparable<T>
-
-