public abstract class OrcSchemaVisitor<T>
extends java.lang.Object
Constructor and Description |
---|
OrcSchemaVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
afterElementField(org.apache.orc.TypeDescription element) |
void |
afterField(java.lang.String name,
org.apache.orc.TypeDescription type) |
void |
afterKeyField(org.apache.orc.TypeDescription key) |
void |
afterValueField(org.apache.orc.TypeDescription value) |
void |
beforeElementField(org.apache.orc.TypeDescription element) |
void |
beforeField(java.lang.String name,
org.apache.orc.TypeDescription type) |
void |
beforeKeyField(org.apache.orc.TypeDescription key) |
void |
beforeValueField(org.apache.orc.TypeDescription value) |
java.lang.String |
currentFieldName() |
protected java.lang.String[] |
currentPath() |
java.lang.String |
elementName() |
java.lang.String |
keyName() |
T |
list(org.apache.orc.TypeDescription array,
T element) |
T |
map(org.apache.orc.TypeDescription map,
T key,
T value) |
protected java.lang.String[] |
path(java.lang.String name) |
T |
primitive(org.apache.orc.TypeDescription primitive) |
T |
record(org.apache.orc.TypeDescription record,
java.util.List<java.lang.String> names,
java.util.List<T> fields) |
java.lang.String |
valueName() |
static <T> T |
visit(org.apache.orc.TypeDescription schema,
OrcSchemaVisitor<T> visitor) |
static <T> java.util.List<T> |
visitSchema(org.apache.orc.TypeDescription schema,
OrcSchemaVisitor<T> visitor) |
public static <T> java.util.List<T> visitSchema(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)
public static <T> T visit(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)
public java.lang.String elementName()
public java.lang.String keyName()
public java.lang.String valueName()
public java.lang.String currentFieldName()
public void beforeField(java.lang.String name, org.apache.orc.TypeDescription type)
public void afterField(java.lang.String name, org.apache.orc.TypeDescription type)
public void beforeElementField(org.apache.orc.TypeDescription element)
public void afterElementField(org.apache.orc.TypeDescription element)
public void beforeKeyField(org.apache.orc.TypeDescription key)
public void afterKeyField(org.apache.orc.TypeDescription key)
public void beforeValueField(org.apache.orc.TypeDescription value)
public void afterValueField(org.apache.orc.TypeDescription value)
public T record(org.apache.orc.TypeDescription record, java.util.List<java.lang.String> names, java.util.List<T> fields)
public T primitive(org.apache.orc.TypeDescription primitive)
protected java.lang.String[] currentPath()
protected java.lang.String[] path(java.lang.String name)