Class SchemaZipFold<T>
java.lang.Object
org.apache.beam.sdk.schemas.utils.SchemaZipFold<T>
- All Implemented Interfaces:
- Serializable
Visitor that zips schemas, and accepts pairs of fields and their types.
 
Values returned by `accept` are accumulated.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classContext referring to a current position in a schema.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract Taccept(SchemaZipFold.Context context, Optional<Schema.Field> left, Optional<Schema.Field> right) Accepts two fields, context.parent() is always ROW.abstract Taccept(SchemaZipFold.Context context, Schema.FieldType left, Schema.FieldType right) Accepts two components, context.parent() is always ROW, MAP, ARRAY or absent.abstract Taccumulate(T left, T right) Accumulate two results together.final T
- 
Constructor Details- 
SchemaZipFoldpublic SchemaZipFold()
 
- 
- 
Method Details- 
apply
- 
accumulateAccumulate two results together.
- 
acceptpublic abstract T accept(SchemaZipFold.Context context, Schema.FieldType left, Schema.FieldType right) Accepts two components, context.parent() is always ROW, MAP, ARRAY or absent.
- 
acceptpublic abstract T accept(SchemaZipFold.Context context, Optional<Schema.Field> left, Optional<Schema.Field> right) Accepts two fields, context.parent() is always ROW.
 
-