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 Object implements org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
Builder to build GenericRecord.
  • Field Details

  • Constructor Details

    • SchemaDefinitionBuilderImpl

      public SchemaDefinitionBuilderImpl()
  • Method Details

    • withAlwaysAllowNull

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withAlwaysAllowNull(boolean alwaysAllowNull)
      Specified by:
      withAlwaysAllowNull in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withJSR310ConversionEnabled

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withJSR310ConversionEnabled(boolean jsr310ConversionEnabled)
      Specified by:
      withJSR310ConversionEnabled in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • addProperty

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> addProperty(String key, String value)
      Specified by:
      addProperty in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withPojo

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withPojo(Class clazz)
      Specified by:
      withPojo in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withClassLoader

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withClassLoader(ClassLoader classLoader)
      Specified by:
      withClassLoader in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withJsonDef

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withJsonDef(String jsonDef)
      Specified by:
      withJsonDef in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withSupportSchemaVersioning

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withSupportSchemaVersioning(boolean supportSchemaVersioning)
      Specified by:
      withSupportSchemaVersioning in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • withProperties

      public org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T> withProperties(Map<String,String> properties)
      Specified by:
      withProperties in interface org.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:
      withSchemaReader in interface org.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:
      withSchemaWriter in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>
    • build

      public org.apache.pulsar.client.api.schema.SchemaDefinition<T> build()
      Specified by:
      build in interface org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder<T>