Class WindowStoreFacade<K,​V>

    • Method Detail

      • put

        @Deprecated
        public void put​(K key,
                        V value)
        Deprecated.
        Description copied from interface: WindowStore
        Use the current record timestamp as the windowStartTimestamp and delegate to WindowStore.put(Object, Object, long).

        It's highly recommended to use WindowStore.put(Object, Object, long) instead, as the record timestamp is unlikely to be the correct windowStartTimestamp in general.

        Specified by:
        put in interface WindowStore<K,​V>
        Parameters:
        key - The key to associate the value to
        value - The value to update, it can be null; if the serialized bytes are also null it is interpreted as delete
      • put

        public void put​(K key,
                        V value,
                        long windowStartTimestamp)
        Description copied from interface: WindowStore
        Put a key-value pair into the window with given window start timestamp

        If serialized value bytes are null it is interpreted as delete. Note that deletes will be ignored in the case of an underlying store that retains duplicates.

        Specified by:
        put in interface WindowStore<K,​V>
        Parameters:
        key - The key to associate the value to
        value - The value; can be null
        windowStartTimestamp - The timestamp of the beginning of the window to put the key/value into
      • flush

        public void flush()
        Description copied from interface: StateStore
        Flush any cached data
        Specified by:
        flush in interface StateStore
      • close

        public void close()
        Description copied from interface: StateStore
        Close the storage engine. Note that this function needs to be idempotent since it may be called several times on the same state store.

        Users only need to implement this function but should NEVER need to call this api explicitly as it will be called by the library automatically when necessary

        Specified by:
        close in interface StateStore
      • name

        public String name()
        Description copied from interface: StateStore
        The name of this store.
        Specified by:
        name in interface StateStore
        Returns:
        the storage name
      • persistent

        public boolean persistent()
        Description copied from interface: StateStore
        Return if the storage is persistent or not.
        Specified by:
        persistent in interface StateStore
        Returns:
        true if the storage is persistent—false otherwise
      • isOpen

        public boolean isOpen()
        Description copied from interface: StateStore
        Is this store open for reading and writing
        Specified by:
        isOpen in interface StateStore
        Returns:
        true if the store is open