Interface Schema<T>
-
- Type Parameters:
T- Type of object.
public interface Schema<T>Interface for container class for schemas for different serialization formats.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.pravega.schemaregistry.contract.data.SchemaInfogetSchemaInfo()Returns theSchemaInfoobject that is computed from the schema object.java.lang.Class<T>getTClass()Class for the Type of object.
-
-
-
Method Detail
-
getSchemaInfo
io.pravega.schemaregistry.contract.data.SchemaInfo getSchemaInfo()
Returns theSchemaInfoobject that is computed from the schema object. SchemaInfo is the object that encapsulates all schema metadata to be shared with the schema registry service.- Returns:
- Schema Info object derived from the schema object.
-
getTClass
java.lang.Class<T> getTClass()
Class for the Type of object.- Returns:
- Class of type T
-
-