Java Code Examples for org.apache.flink.table.api.dataview.MapView#clear()
The following examples show how to use
org.apache.flink.table.api.dataview.MapView#clear() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FirstValueWithRetractAggFunction.java From flink with Apache License 2.0 | 5 votes |
public void resetAccumulator(GenericRow acc) { acc.setField(0, null); acc.setField(1, null); MapView<T, List<Long>> valueToOrderMapView = getValueToOrderMapViewFromAcc(acc); valueToOrderMapView.clear(); MapView<Long, List<T>> orderToValueMapView = getOrderToValueMapViewFromAcc(acc); orderToValueMapView.clear(); }
Example 2
Source File: LastValueWithRetractAggFunction.java From flink with Apache License 2.0 | 5 votes |
public void resetAccumulator(GenericRow acc) { acc.setField(0, null); acc.setField(1, null); MapView<T, List<Long>> valueToOrderMapView = getValueToOrderMapViewFromAcc(acc); valueToOrderMapView.clear(); MapView<Long, List<T>> orderToValueMapView = getOrderToValueMapViewFromAcc(acc); orderToValueMapView.clear(); }
Example 3
Source File: FirstValueWithRetractAggFunction.java From flink with Apache License 2.0 | 5 votes |
public void resetAccumulator(GenericRowData acc) { acc.setField(0, null); acc.setField(1, null); MapView<T, List<Long>> valueToOrderMapView = getValueToOrderMapViewFromAcc(acc); valueToOrderMapView.clear(); MapView<Long, List<T>> orderToValueMapView = getOrderToValueMapViewFromAcc(acc); orderToValueMapView.clear(); }
Example 4
Source File: LastValueWithRetractAggFunction.java From flink with Apache License 2.0 | 5 votes |
public void resetAccumulator(GenericRowData acc) { acc.setField(0, null); acc.setField(1, null); MapView<T, List<Long>> valueToOrderMapView = getValueToOrderMapViewFromAcc(acc); valueToOrderMapView.clear(); MapView<Long, List<T>> orderToValueMapView = getOrderToValueMapViewFromAcc(acc); orderToValueMapView.clear(); }