Enum FragmentState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FragmentState>

    public enum FragmentState
    extends java.lang.Enum<FragmentState>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABORTED
      Fragment was aborted due to a failure in the query.
      FAILED
      Fragment execution failed.
      FINISHED
      Fragment has finished executing and all output has been consumed.
      PENDING
      Fragment has finished executing existing tasks but more instances could be scheduled in the future.
      PLANNED
      Fragment is planned but has not been scheduled yet.
      RUNNING
      Fragment is running.
      SCHEDULING
      Fragment instances are being scheduled on nodes.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDone()
      Is this a terminal state.
      boolean isFailure()
      Is this a non-success terminal state.
      static FragmentState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FragmentState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PLANNED

        public static final FragmentState PLANNED
        Fragment is planned but has not been scheduled yet. A Fragment will be in the planned state until, the dependencies of the Fragment have begun producing output.
      • SCHEDULING

        public static final FragmentState SCHEDULING
        Fragment instances are being scheduled on nodes.
      • RUNNING

        public static final FragmentState RUNNING
        Fragment is running.
      • PENDING

        public static final FragmentState PENDING
        Fragment has finished executing existing tasks but more instances could be scheduled in the future.
      • FINISHED

        public static final FragmentState FINISHED
        Fragment has finished executing and all output has been consumed.
      • ABORTED

        public static final FragmentState ABORTED
        Fragment was aborted due to a failure in the query. The failure was not in this Fragment.
      • FAILED

        public static final FragmentState FAILED
        Fragment execution failed.
    • Field Detail

      • TERMINAL_FRAGMENT_STATES

        public static final java.util.Set<FragmentState> TERMINAL_FRAGMENT_STATES
    • Method Detail

      • values

        public static FragmentState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FragmentState c : FragmentState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FragmentState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isDone

        public boolean isDone()
        Is this a terminal state.
      • isFailure

        public boolean isFailure()
        Is this a non-success terminal state.