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 | Description |
---|---|
SchemaProjector() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.Object |
project(Schema source,
java.lang.Object record,
Schema target) |
This method project a value between compatible schemas and throw exceptions when non compatible schemas are provided
|
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