@Override public boolean filter(PyObject value) throws Exception { try { return this.fun.filter(value); } catch (PyException pe) { throw createAndLogException(pe); } } }
@Override public final void flatMap(T value, Collector<T> out) throws Exception { if (this.wrappedFunction.filter(value)) { out.collect(value); } } }
@Override public void processElement(StreamRecord<IN> element) throws Exception { if (userFunction.filter(element.getValue())) { output.collect(element); } } }
@Override public boolean filter(T value) throws Exception { for (FilterFunction<? super T> componentFilter : components) { if (!componentFilter.filter(value)) { return false; } } return true; } }
@Override public boolean filter(T value) throws Exception { for (FilterFunction<? super T> componentFilter : components) { if (componentFilter.filter(value)) { return true; } } return false; } }
@Override public boolean filter(T value) throws Exception { for (FilterFunction<? super T> componentFilter : components) { if (!componentFilter.filter(value)) { return false; } } return true; } }
@Override public boolean filter(T value) throws Exception { return !components[0].filter(value); } }
@Override public boolean filter(T value) throws Exception { for (FilterFunction<? super T> componentFilter : components) { if (componentFilter.filter(value)) { return true; } } return false; } }
@Override public boolean filter(T value) throws Exception { return !components[0].filter(value); } }
@Override public boolean filter(T value) throws Exception { return filterFunction.filter(value); } }
@Override public final void flatMap(T value, Collector<T> out) throws Exception { if (this.wrappedFunction.filter(value)) { out.collect(value); } } }
@Override public final void flatMap(T value, Collector<T> out) throws Exception { if (this.wrappedFunction.filter(value)) { out.collect(value); } } }
@Override public boolean filter(GraphTransaction graphTransaction) throws Exception { return filterFunction.filter(graphTransaction.getGraphHead()); } }
@Override public boolean filter(GraphTransaction graphTransaction) throws Exception { return filterFunction.filter(graphTransaction.getGraphHead()); } }
@Override public void processElement(StreamRecord<IN> element) throws Exception { if (userFunction.filter(element.getValue())) { output.collect(element); } } }
@Override public void processElement(StreamRecord<IN> element) throws Exception { if (userFunction.filter(element.getValue())) { output.collect(element); } } }
@Override public void processElement(StreamRecord<IN> element) throws Exception { if (userFunction.filter(element.getValue())) { output.collect(element); } } }
private void createColumnIterators(FilterFunction<String> stateFilter, List<StateMetaInfoSnapshot> stateMetaInfoSnapshots) throws Exception { Map<String, RocksIteratorWrapper> iterators = new HashMap<>(); for (int i = 0; i < stateMetaInfoSnapshots.size(); i++) { String name = stateMetaInfoSnapshots.get(i).getName(); if (stateFilter.filter(name)) { RocksIteratorWrapper iterator = new RocksIteratorWrapper( this.db.newIterator(stateColumnFamilyHandles.get(i + 1))); iterators.put(name, iterator); iterator.seekToFirst(); } } iteratorQueue = new LinkedList<>(iterators.entrySet()); updateCurrentIterator(); }