com.cloudera.api.model
Enum ApiActivityType

java.lang.Object
  extended by java.lang.Enum<ApiActivityType>
      extended by com.cloudera.api.model.ApiActivityType
All Implemented Interfaces:
Serializable, Comparable<ApiActivityType>

public enum ApiActivityType
extends Enum<ApiActivityType>


Enum Constant Summary
HIVE
          The corresponding activity a Hive job
MR
          The corresponding activity is a Map-Reduce job
OOZIE
          The corresponding activity is an Oozie workflow
PIG
          The corresponding activity is a Pig job
STREAMING
          The corresponding activity is a Hadoop streaming job
UNKNOWN
          The activity type is unknown
 
Method Summary
static ApiActivityType fromString(String str)
           
static ApiActivityType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiActivityType[] 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

UNKNOWN

public static final ApiActivityType UNKNOWN
The activity type is unknown


OOZIE

public static final ApiActivityType OOZIE
The corresponding activity is an Oozie workflow


PIG

public static final ApiActivityType PIG
The corresponding activity is a Pig job


HIVE

public static final ApiActivityType HIVE
The corresponding activity a Hive job


MR

public static final ApiActivityType MR
The corresponding activity is a Map-Reduce job


STREAMING

public static final ApiActivityType STREAMING
The corresponding activity is a Hadoop streaming job

Method Detail

values

public static ApiActivityType[] 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 (ApiActivityType c : ApiActivityType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ApiActivityType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromString

public static ApiActivityType fromString(String str)
Parameters:
str - String representation of an activity type. Note that UNKNOWN is not a valid input.
Returns:
ApiActivityType


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.