/** * Creates a new key/value state for the given hash map of key/value pairs. * * @param stateTable The state table for which this state is associated to. * @param keySerializer The serializer for the keys. * @param valueSerializer The serializer for the state. * @param namespaceSerializer The serializer for the namespace. * @param defaultValue The default value for the state. * @param foldFunction The fold function used for folding state. */ private HeapFoldingState( StateTable<K, N, ACC> stateTable, TypeSerializer<K> keySerializer, TypeSerializer<ACC> valueSerializer, TypeSerializer<N> namespaceSerializer, ACC defaultValue, FoldFunction<T, ACC> foldFunction) { super(stateTable, keySerializer, valueSerializer, namespaceSerializer, defaultValue); this.foldTransformation = new FoldTransformation(foldFunction); }
/** * Creates a new key/value state for the given hash map of key/value pairs. * * @param stateTable The state table for which this state is associated to. * @param keySerializer The serializer for the keys. * @param valueSerializer The serializer for the state. * @param namespaceSerializer The serializer for the namespace. * @param defaultValue The default value for the state. * @param foldFunction The fold function used for folding state. */ private HeapFoldingState( StateTable<K, N, ACC> stateTable, TypeSerializer<K> keySerializer, TypeSerializer<ACC> valueSerializer, TypeSerializer<N> namespaceSerializer, ACC defaultValue, FoldFunction<T, ACC> foldFunction) { super(stateTable, keySerializer, valueSerializer, namespaceSerializer, defaultValue); this.foldTransformation = new FoldTransformation(foldFunction); }
/** * Creates a new key/value state for the given hash map of key/value pairs. * * @param stateTable The state table for which this state is associated to. * @param keySerializer The serializer for the keys. * @param valueSerializer The serializer for the state. * @param namespaceSerializer The serializer for the namespace. * @param defaultValue The default value for the state. * @param foldFunction The fold function used for folding state. */ public HeapFoldingState( StateTable<K, N, ACC> stateTable, TypeSerializer<K> keySerializer, TypeSerializer<ACC> valueSerializer, TypeSerializer<N> namespaceSerializer, ACC defaultValue, FoldFunction<T, ACC> foldFunction) { super(stateTable, keySerializer, valueSerializer, namespaceSerializer, defaultValue); this.foldTransformation = new FoldTransformation(foldFunction); }
/** * Creates a new key/value state for the given hash map of key/value pairs. * * @param stateDesc The state identifier for the state. This contains name * and can create a default state value. * @param stateTable The state tab;e to use in this kev/value state. May contain initial state. */ public HeapFoldingState( FoldingStateDescriptor<T, ACC> stateDesc, StateTable<K, N, ACC> stateTable, TypeSerializer<K> keySerializer, TypeSerializer<N> namespaceSerializer) { super(stateDesc, stateTable, keySerializer, namespaceSerializer); this.foldTransformation = new FoldTransformation<>(stateDesc); }