Private computePrivate idReturns a PCollection containing only elements that satisfy the given predicate function.
This is analogous to JavaScript's Array.filter() method.
Example usage:
const evens = pcoll.filter(x => x % 2 === 0);
const positives = pcoll.filter(x => x > 0);
A new PCollection containing only the elements for which the predicate returned true.
A predicate function that returns true for elements to keep, false for elements to filter out. The function receives the element and optionally a context object.
Optional context object to pass to the predicate function.
Generated using TypeDoc
A deferred, possibly distributed collection of elements. See https://beam.apache.org/documentation/programming-guide/#pcollections