public class SchemaProjector
extends java.lang.Object
SchemaProjector is utility to project a value between compatible schemas and throw exceptions when non compatible schemas are provided.
Constructor and Description |
---|
SchemaProjector() |
public static java.lang.Object project(Schema source, java.lang.Object record, Schema target) throws SchemaProjectorException
source
- the schema used to construct the recordrecord
- the value to project from source schema to target schematarget
- the schema to project the record toSchemaProjectorException