Enum Class的使用
org.apache.pulsar.common.schema.SchemaType
使用SchemaType的程序包
程序包
说明
Pulsar Client API.
Schema definitions for Pulsar Client API.
Helpers which provide useful functionality for the implementation of Pulsar Client API.
This package contains data structures for schema definitions used in the Pulsar Client API.
-
org.apache.pulsar.client.api中SchemaType的使用
参数类型为SchemaType的org.apache.pulsar.client.api中的方法 -
org.apache.pulsar.client.api.schema中SchemaType的使用
修饰符和类型方法说明GenericObject.getSchemaType()Return the schema tyoe.default SchemaTypeGenericRecord.getSchemaType()Return the schema tyoe.修饰符和类型方法说明RecordSchemaBuilder.build(SchemaType schemaType) Build the schema info.FieldSchemaBuilder.type(SchemaType type) The type of this field. -
org.apache.pulsar.client.internal中SchemaType的使用
修饰符和类型方法说明PulsarClientImplementationBinding.newKeyValueSchema(Class<K> key, Class<V> value, SchemaType type) PulsarClientImplementationBinding.newSchemaInfoImpl(String name, byte[] schema, SchemaType type, long timestamp, Map<String, String> propertiesValue) -
org.apache.pulsar.common.schema中SchemaType的使用
修饰符和类型方法说明SchemaInfo.getType()The type of schema (AVRO, JSON, PROTOBUF, etc..).static SchemaTypeSchemaType.valueOf(int value) Returns the enum constant of this class with the specified name.static SchemaTypeReturns the enum constant of this class with the specified name.static SchemaType[]SchemaType.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明static booleanSchemaType.isPrimitiveType(SchemaType type) static booleanSchemaType.isStructType(SchemaType type) SchemaInfo.SchemaInfoBuilder.type(SchemaType type)