public abstract class SchemaZipFold<T>
extends java.lang.Object
implements java.io.Serializable
Values returned by `accept` are accumulated.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SchemaZipFold.Context
Context referring to a current position in a schema. 
 | 
| Constructor and Description | 
|---|
SchemaZipFold()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract T | 
accept(SchemaZipFold.Context context,
      java.util.Optional<Schema.Field> left,
      java.util.Optional<Schema.Field> right)
Accepts two fields, context.parent() is always ROW. 
 | 
abstract T | 
accept(SchemaZipFold.Context context,
      Schema.FieldType left,
      Schema.FieldType right)
Accepts two components, context.parent() is always ROW, MAP, ARRAY or absent. 
 | 
abstract T | 
accumulate(T left,
          T right)
Accumulate two results together. 
 | 
T | 
apply(Schema left,
     Schema right)  | 
public abstract T accept(SchemaZipFold.Context context, Schema.FieldType left, Schema.FieldType right)
public abstract T accept(SchemaZipFold.Context context, java.util.Optional<Schema.Field> left, java.util.Optional<Schema.Field> right)