Class DirectoryStreamStateHandle

    • Constructor Detail

      • DirectoryStreamStateHandle

        public DirectoryStreamStateHandle​(@Nonnull
                                          org.apache.flink.core.fs.Path directory)
    • Method Detail

      • openInputStream

        public org.apache.flink.core.fs.FSDataInputStream openInputStream()
        Description copied from interface: StreamStateHandle
        Returns an FSDataInputStream that can be used to read back the data that was previously written to the stream.
        Specified by:
        openInputStream in interface StreamStateHandle
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDirectory

        public org.apache.flink.core.fs.Path getDirectory()
      • discardState

        public void discardState()
                          throws Exception
        Description copied from interface: StateObject
        Discards the state referred to and solemnly owned by this handle, to free up resources in the persistent storage. This method is called when the state represented by this object will not be used anymore.
        Specified by:
        discardState in interface StateObject
        Throws:
        Exception
      • getStateSize

        public long getStateSize()
        This handle usually used to track the life cycle of the directory, therefore a fake size is provided.
        Specified by:
        getStateSize in interface StateObject
        Returns:
        Size of the state in bytes.