Class SchemaDefinitionBuilderImpl<T>
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.SchemaDefinitionBuilderImpl<T>
-
- All Implemented Interfaces:
org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
public class SchemaDefinitionBuilderImpl<T> extends java.lang.Object implements org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>Builder to buildGenericRecord.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALWAYS_ALLOW_NULLstatic java.lang.StringJSR310_CONVERSION_ENABLED
-
Constructor Summary
Constructors Constructor Description SchemaDefinitionBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>addProperty(java.lang.String key, java.lang.String value)org.apache.pulsar.client.api.schema.SchemaDefinition<T>build()org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withAlwaysAllowNull(boolean alwaysAllowNull)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withClassLoader(java.lang.ClassLoader classLoader)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withJsonDef(java.lang.String jsonDef)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withJSR310ConversionEnabled(boolean jsr310ConversionEnabled)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withPojo(java.lang.Class clazz)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withProperties(java.util.Map<java.lang.String,java.lang.String> properties)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withSchemaReader(org.apache.pulsar.client.api.schema.SchemaReader<T> reader)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withSchemaWriter(org.apache.pulsar.client.api.schema.SchemaWriter<T> writer)org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>withSupportSchemaVersioning(boolean supportSchemaVersioning)
-
-
-
Field Detail
-
ALWAYS_ALLOW_NULL
public static final java.lang.String ALWAYS_ALLOW_NULL
- See Also:
- Constant Field Values
-
JSR310_CONVERSION_ENABLED
public static final java.lang.String JSR310_CONVERSION_ENABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
withAlwaysAllowNull
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withAlwaysAllowNull(boolean alwaysAllowNull)
- Specified by:
withAlwaysAllowNullin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withJSR310ConversionEnabled
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withJSR310ConversionEnabled(boolean jsr310ConversionEnabled)
- Specified by:
withJSR310ConversionEnabledin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
addProperty
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> addProperty(java.lang.String key, java.lang.String value)
- Specified by:
addPropertyin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withPojo
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withPojo(java.lang.Class clazz)
- Specified by:
withPojoin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withClassLoader
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
withClassLoaderin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withJsonDef
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withJsonDef(java.lang.String jsonDef)
- Specified by:
withJsonDefin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withSupportSchemaVersioning
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withSupportSchemaVersioning(boolean supportSchemaVersioning)
- Specified by:
withSupportSchemaVersioningin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withProperties
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
- Specified by:
withPropertiesin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withSchemaReader
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withSchemaReader(org.apache.pulsar.client.api.schema.SchemaReader<T> reader)
- Specified by:
withSchemaReaderin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
withSchemaWriter
public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withSchemaWriter(org.apache.pulsar.client.api.schema.SchemaWriter<T> writer)
- Specified by:
withSchemaWriterin interfaceorg.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
-
-