public final class CloningVisitor extends Object implements SchemaVisitor<org.apache.avro.Schema>
Modifier and Type | Class and Description |
---|---|
static interface |
CloningVisitor.PropertyCopier |
Constructor and Description |
---|
CloningVisitor(CloningVisitor.PropertyCopier copyProperties,
boolean copyDocs,
org.apache.avro.Schema root) |
CloningVisitor(org.apache.avro.Schema root)
copy only serialization necessary fields.
|
Modifier and Type | Method and Description |
---|---|
SchemaVisitorAction |
afterVisitNonTerminal(org.apache.avro.Schema nt)
Invoked for schemas with children after its children have been visited.
|
org.apache.avro.Schema |
get()
Invoked when visiting is complete.
|
String |
toString() |
SchemaVisitorAction |
visitNonTerminal(org.apache.avro.Schema nt)
Invoked for schema with children before proceeding to visit the children.
|
SchemaVisitorAction |
visitTerminal(org.apache.avro.Schema terminal)
Invoked for schemas that do not have "child" schemas (like string, int ...)
or for a previously encountered schema with children, which will be treated
as a terminal.
|
public CloningVisitor(org.apache.avro.Schema root)
root
- public CloningVisitor(CloningVisitor.PropertyCopier copyProperties, boolean copyDocs, org.apache.avro.Schema root)
public SchemaVisitorAction visitTerminal(org.apache.avro.Schema terminal)
SchemaVisitor
visitTerminal
in interface SchemaVisitor<org.apache.avro.Schema>
public SchemaVisitorAction visitNonTerminal(org.apache.avro.Schema nt)
SchemaVisitor
visitNonTerminal
in interface SchemaVisitor<org.apache.avro.Schema>
public SchemaVisitorAction afterVisitNonTerminal(org.apache.avro.Schema nt)
SchemaVisitor
afterVisitNonTerminal
in interface SchemaVisitor<org.apache.avro.Schema>
public org.apache.avro.Schema get()
SchemaVisitor
get
in interface SchemaVisitor<org.apache.avro.Schema>
Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.