类 SchemaDefinitionImpl<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.SchemaDefinitionImpl<T>
- 所有已实现的接口:
SchemaDefinition<T>
A json schema definition
SchemaDefinition for the json schema definition.-
构造器概要
构造器构造器说明SchemaDefinitionImpl(Class<T> pojo, String jsonDef, ClassLoader classLoader, boolean alwaysAllowNull, Map<String, String> properties, boolean supportSchemaVersioning, boolean jsr310ConversionEnabled, SchemaReader<T> reader, SchemaWriter<T> writer) -
方法概要
修饰符和类型方法说明booleanget schema whether always allow null or not.Get json schema definition.getPojo()Get pojo schema definition.Get schema class.booleanboolean
-
构造器详细资料
-
SchemaDefinitionImpl
public SchemaDefinitionImpl(Class<T> pojo, String jsonDef, ClassLoader classLoader, boolean alwaysAllowNull, Map<String, String> properties, boolean supportSchemaVersioning, boolean jsr310ConversionEnabled, SchemaReader<T> reader, SchemaWriter<T> writer)
-
-
方法详细资料
-
getAlwaysAllowNull
public boolean getAlwaysAllowNull()get schema whether always allow null or not.- 指定者:
getAlwaysAllowNull在接口中SchemaDefinition<T>- 返回:
- schema always null or not
-
isJsr310ConversionEnabled
public boolean isJsr310ConversionEnabled()- 指定者:
isJsr310ConversionEnabled在接口中SchemaDefinition<T>
-
getJsonDef
Get json schema definition.- 指定者:
getJsonDef在接口中SchemaDefinition<T>- 返回:
- schema class
-
getPojo
Get pojo schema definition.- 指定者:
getPojo在接口中SchemaDefinition<T>- 返回:
- pojo class
-
getClassLoader
- 指定者:
getClassLoader在接口中SchemaDefinition<T>
-
getSupportSchemaVersioning
public boolean getSupportSchemaVersioning()- 指定者:
getSupportSchemaVersioning在接口中SchemaDefinition<T>
-
getSchemaReaderOpt
- 指定者:
getSchemaReaderOpt在接口中SchemaDefinition<T>
-
getSchemaWriterOpt
- 指定者:
getSchemaWriterOpt在接口中SchemaDefinition<T>
-
getProperties
Get schema class.- 指定者:
getProperties在接口中SchemaDefinition<T>- 返回:
- schema class
-