Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
@Public
public interface Function extends java.io.Serializable {
    /**
     * Returns false if it is guaranteed that the function will not store and access
     * reference to the output value.
     */ 
    default boolean isOutputValueStored() {
        return falsetrue;
    }
}

@Public
public interface RichFunction extends Function {

    /**
     * RichFunction is able to put the values to the state backend so the method returns true by
     * default. For RichFunction that doesn't store output value to the state backend, it can return
     * false.
     */
    @Override
    default boolean isOutputValueStored() {
        return true;
    }
}

...