Package org.apache.iceberg.orc
Class OrcSchemaVisitor<T>
java.lang.Object
org.apache.iceberg.orc.OrcSchemaVisitor<T>
- Direct Known Subclasses:
EstimateOrcAvgWidthVisitor
Generic visitor of an ORC Schema.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterElementField
(org.apache.orc.TypeDescription element) void
afterField
(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
(String name, org.apache.orc.TypeDescription type) void
beforeKeyField
(org.apache.orc.TypeDescription key) void
beforeValueField
(org.apache.orc.TypeDescription value) protected String[]
keyName()
protected String[]
primitive
(org.apache.orc.TypeDescription primitive) static <T> T
visit
(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor) static <T> List<T>
visitSchema
(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)
-
Constructor Details
-
OrcSchemaVisitor
public OrcSchemaVisitor()
-
-
Method Details
-
visitSchema
public static <T> List<T> visitSchema(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor) -
visit
-
elementName
-
keyName
-
valueName
-
currentFieldName
-
beforeField
-
afterField
-
beforeElementField
public void beforeElementField(org.apache.orc.TypeDescription element) -
afterElementField
public void afterElementField(org.apache.orc.TypeDescription element) -
beforeKeyField
public void beforeKeyField(org.apache.orc.TypeDescription key) -
afterKeyField
public void afterKeyField(org.apache.orc.TypeDescription key) -
beforeValueField
public void beforeValueField(org.apache.orc.TypeDescription value) -
afterValueField
public void afterValueField(org.apache.orc.TypeDescription value) -
record
-
list
-
map
-
primitive
-
currentPath
-
path
-