Package ai.heavy.thrift.server
Enum TSourceType
- java.lang.Object
-
- java.lang.Enum<TSourceType>
-
- ai.heavy.thrift.server.TSourceType
-
- All Implemented Interfaces:
Serializable,Comparable<TSourceType>,org.apache.thrift.TEnum
public enum TSourceType extends Enum<TSourceType> implements org.apache.thrift.TEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELIMITED_FILEGEO_FILEODBCPARQUET_FILERASTER_FILE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TSourceTypefindByValue(int value)Find a the enum type by its integer value, as defined in the Thrift IDL.intgetValue()Get the integer value of this enum value, as defined in the Thrift IDL.static TSourceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TSourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELIMITED_FILE
public static final TSourceType DELIMITED_FILE
-
GEO_FILE
public static final TSourceType GEO_FILE
-
PARQUET_FILE
public static final TSourceType PARQUET_FILE
-
RASTER_FILE
public static final TSourceType RASTER_FILE
-
ODBC
public static final TSourceType ODBC
-
-
Method Detail
-
values
public static TSourceType[] 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 (TSourceType c : TSourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TSourceType 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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.- Specified by:
getValuein interfaceorg.apache.thrift.TEnum
-
findByValue
public static TSourceType findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.- Returns:
- null if the value is not found.
-
-