@Internal public interface SchemaFactory extends java.io.Serializable
Interface for factories used to create record types based on getters.
Different implementations can have different ways of mapping getter types to coders. For example Beam SQL uses custom mapping via java.sql.Types.
Default implementation is DefaultSchemaFactory
.
It returns instances of Schema
, mapping FieldValueGetter.type()
to known coders.
Modifier and Type | Method and Description |
---|---|
Schema |
createSchema(java.lang.Iterable<FieldValueGetter> getters)
Create a
Schema for the list of the pojo field getters. |
Schema createSchema(java.lang.Iterable<FieldValueGetter> getters)
Schema
for the list of the pojo field getters.