Enum Schema.Type
- java.lang.Object
-
- java.lang.Enum<Schema.Type>
-
- org.apache.pulsar.common.api.proto.Schema.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Schema.Type>
- Enclosing class:
- Schema
public static enum Schema.Type extends java.lang.Enum<Schema.Type>
-
-
Field Summary
Fields Modifier and Type Field Description static int
Avro_VALUE
static int
Bool_VALUE
static int
Date_VALUE
static int
Double_VALUE
static int
Float_VALUE
static int
Instant_VALUE
static int
Int16_VALUE
static int
Int32_VALUE
static int
Int64_VALUE
static int
Int8_VALUE
static int
Json_VALUE
static int
KeyValue_VALUE
static int
LocalDate_VALUE
static int
LocalDateTime_VALUE
static int
LocalTime_VALUE
static int
None_VALUE
static int
Protobuf_VALUE
static int
ProtobufNative_VALUE
static int
String_VALUE
static int
Time_VALUE
static int
Timestamp_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Schema.Type
valueOf(int n)
Returns the enum constant of this type with the specified name.static Schema.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Schema.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final Schema.Type None
-
String
public static final Schema.Type String
-
Json
public static final Schema.Type Json
-
Protobuf
public static final Schema.Type Protobuf
-
Avro
public static final Schema.Type Avro
-
Bool
public static final Schema.Type Bool
-
Int8
public static final Schema.Type Int8
-
Int16
public static final Schema.Type Int16
-
Int32
public static final Schema.Type Int32
-
Int64
public static final Schema.Type Int64
-
Float
public static final Schema.Type Float
-
Double
public static final Schema.Type Double
-
Date
public static final Schema.Type Date
-
Time
public static final Schema.Type Time
-
Timestamp
public static final Schema.Type Timestamp
-
KeyValue
public static final Schema.Type KeyValue
-
Instant
public static final Schema.Type Instant
-
LocalDate
public static final Schema.Type LocalDate
-
LocalTime
public static final Schema.Type LocalTime
-
LocalDateTime
public static final Schema.Type LocalDateTime
-
ProtobufNative
public static final Schema.Type ProtobufNative
-
-
Field Detail
-
None_VALUE
public static final int None_VALUE
- See Also:
- Constant Field Values
-
String_VALUE
public static final int String_VALUE
- See Also:
- Constant Field Values
-
Json_VALUE
public static final int Json_VALUE
- See Also:
- Constant Field Values
-
Protobuf_VALUE
public static final int Protobuf_VALUE
- See Also:
- Constant Field Values
-
Avro_VALUE
public static final int Avro_VALUE
- See Also:
- Constant Field Values
-
Bool_VALUE
public static final int Bool_VALUE
- See Also:
- Constant Field Values
-
Int8_VALUE
public static final int Int8_VALUE
- See Also:
- Constant Field Values
-
Int16_VALUE
public static final int Int16_VALUE
- See Also:
- Constant Field Values
-
Int32_VALUE
public static final int Int32_VALUE
- See Also:
- Constant Field Values
-
Int64_VALUE
public static final int Int64_VALUE
- See Also:
- Constant Field Values
-
Float_VALUE
public static final int Float_VALUE
- See Also:
- Constant Field Values
-
Double_VALUE
public static final int Double_VALUE
- See Also:
- Constant Field Values
-
Date_VALUE
public static final int Date_VALUE
- See Also:
- Constant Field Values
-
Time_VALUE
public static final int Time_VALUE
- See Also:
- Constant Field Values
-
Timestamp_VALUE
public static final int Timestamp_VALUE
- See Also:
- Constant Field Values
-
KeyValue_VALUE
public static final int KeyValue_VALUE
- See Also:
- Constant Field Values
-
Instant_VALUE
public static final int Instant_VALUE
- See Also:
- Constant Field Values
-
LocalDate_VALUE
public static final int LocalDate_VALUE
- See Also:
- Constant Field Values
-
LocalTime_VALUE
public static final int LocalTime_VALUE
- See Also:
- Constant Field Values
-
LocalDateTime_VALUE
public static final int LocalDateTime_VALUE
- See Also:
- Constant Field Values
-
ProtobufNative_VALUE
public static final int ProtobufNative_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Schema.Type[] 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 (Schema.Type c : Schema.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Schema.Type 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 namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
valueOf
public static Schema.Type valueOf(int n)
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:
n
- 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 namejava.lang.NullPointerException
- if the argument is null
-
-