Enum Class Schema.Type

java.lang.Object
java.lang.Enum<Schema.Type>
org.apache.pulsar.common.api.proto.Schema.Type
所有已实现的接口:
Serializable, Comparable<Schema.Type>, Constable
封闭类:
Schema

public static enum Schema.Type extends Enum<Schema.Type>
  • 枚举常量详细资料

  • 字段详细资料

    • None_VALUE

      public static final int None_VALUE
      另请参阅:
    • String_VALUE

      public static final int String_VALUE
      另请参阅:
    • Json_VALUE

      public static final int Json_VALUE
      另请参阅:
    • Protobuf_VALUE

      public static final int Protobuf_VALUE
      另请参阅:
    • Avro_VALUE

      public static final int Avro_VALUE
      另请参阅:
    • Bool_VALUE

      public static final int Bool_VALUE
      另请参阅:
    • Int8_VALUE

      public static final int Int8_VALUE
      另请参阅:
    • Int16_VALUE

      public static final int Int16_VALUE
      另请参阅:
    • Int32_VALUE

      public static final int Int32_VALUE
      另请参阅:
    • Int64_VALUE

      public static final int Int64_VALUE
      另请参阅:
    • Float_VALUE

      public static final int Float_VALUE
      另请参阅:
    • Double_VALUE

      public static final int Double_VALUE
      另请参阅:
    • Date_VALUE

      public static final int Date_VALUE
      另请参阅:
    • Time_VALUE

      public static final int Time_VALUE
      另请参阅:
    • Timestamp_VALUE

      public static final int Timestamp_VALUE
      另请参阅:
    • KeyValue_VALUE

      public static final int KeyValue_VALUE
      另请参阅:
    • Instant_VALUE

      public static final int Instant_VALUE
      另请参阅:
    • LocalDate_VALUE

      public static final int LocalDate_VALUE
      另请参阅:
    • LocalTime_VALUE

      public static final int LocalTime_VALUE
      另请参阅:
    • LocalDateTime_VALUE

      public static final int LocalDateTime_VALUE
      另请参阅:
    • ProtobufNative_VALUE

      public static final int ProtobufNative_VALUE
      另请参阅:
    • AutoConsume_VALUE

      public static final int AutoConsume_VALUE
      另请参阅:
  • 方法详细资料

    • values

      public static Schema.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Schema.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getValue

      public int getValue()
    • valueOf

      public static Schema.Type valueOf(int n)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      n - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值