Package org.apache.beam.sdk.fn.data
Class WeightedList<T>
java.lang.Object
org.apache.beam.sdk.fn.data.WeightedList<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateWeight
(long weight) void
void
void
addAll
(WeightedList<T> values) long
boolean
isEmpty()
int
size()
-
Constructor Details
-
WeightedList
-
-
Method Details
-
getBacking
-
size
public int size() -
isEmpty
public boolean isEmpty() -
getWeight
public long getWeight() -
add
-
addAll
-
addAll
-
accumulateWeight
public void accumulateWeight(long weight)
-