@Override public <K, V, S extends KeyedState<K, V>> S getKeyedState(KeyedStateDescriptor<K, V, S> descriptor) throws Exception { return operator.getKeyedState(descriptor); }
@Override public <K, V> KeyedValueState<K, V> getKeyedValueState( ValueStateDescriptor<V> descriptor) throws Exception { descriptor.initializeSerializerUnlessSet(operator.getExecutionConfig()); return operator.getKeyedState( new KeyedValueStateDescriptor<>( descriptor.getName(), (TypeSerializer<K>) operator.getKeySerializer(), descriptor.getSerializer() ) ); }
@Override public <K, V> KeyedListState<K, V> getKeyedListState( ListStateDescriptor<V> descriptor ) throws Exception { descriptor.initializeSerializerUnlessSet(operator.getExecutionConfig()); return operator.getKeyedState( new KeyedListStateDescriptor<>( descriptor.getName(), (TypeSerializer<K>) operator.getKeySerializer(), (ListSerializer<V>) descriptor.getSerializer() ) ); }
@Override public <K, UK, UV> KeyedMapState<K, UK, UV> getKeyedMapState( MapStateDescriptor<UK, UV> descriptor ) throws Exception { descriptor.initializeSerializerUnlessSet(operator.getExecutionConfig()); return operator.getKeyedState( new KeyedMapStateDescriptor<>( descriptor.getName(), (TypeSerializer<K>) operator.getKeySerializer(), (MapSerializer<UK, UV>) descriptor.getSerializer() ) ); }
@Override public <K, UK, UV> KeyedSortedMapState<K, UK, UV> getKeyedSortedMapState( SortedMapStateDescriptor<UK, UV> descriptor ) throws Exception { descriptor.initializeSerializerUnlessSet(operator.getExecutionConfig()); return operator.getKeyedState( new KeyedSortedMapStateDescriptor<>( descriptor.getName(), (TypeSerializer<K>) operator.getKeySerializer(), (SortedMapSerializer<UK, UV>) descriptor.getSerializer() ) ); }