Package org.apache.iceberg.spark.data
Class AvroWithSparkSchemaVisitor<T>
java.lang.Object
org.apache.iceberg.avro.AvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T>
 
org.apache.iceberg.spark.data.AvroWithSparkSchemaVisitor<T>
public abstract class AvroWithSparkSchemaVisitor<T>
extends AvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.spark.sql.types.DataTypearrayElementType(org.apache.spark.sql.types.DataType arrayType) fieldNameAndType(org.apache.spark.sql.types.DataType structType, int pos) protected booleanisMapType(org.apache.spark.sql.types.DataType dataType) protected booleanisStringType(org.apache.spark.sql.types.DataType dataType) protected org.apache.spark.sql.types.DataTypemapKeyType(org.apache.spark.sql.types.DataType mapType) protected org.apache.spark.sql.types.DataTypemapValueType(org.apache.spark.sql.types.DataType mapType) protected org.apache.spark.sql.types.DataTypenullType() 
- 
Constructor Details
- 
AvroWithSparkSchemaVisitor
public AvroWithSparkSchemaVisitor() 
 - 
 - 
Method Details
- 
isStringType
protected boolean isStringType(org.apache.spark.sql.types.DataType dataType) - Specified by:
 isStringTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
isMapType
protected boolean isMapType(org.apache.spark.sql.types.DataType dataType) - Specified by:
 isMapTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
arrayElementType
protected org.apache.spark.sql.types.DataType arrayElementType(org.apache.spark.sql.types.DataType arrayType) - Specified by:
 arrayElementTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
mapKeyType
protected org.apache.spark.sql.types.DataType mapKeyType(org.apache.spark.sql.types.DataType mapType) - Specified by:
 mapKeyTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
mapValueType
protected org.apache.spark.sql.types.DataType mapValueType(org.apache.spark.sql.types.DataType mapType) - Specified by:
 mapValueTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
fieldNameAndType
protected Pair<String,org.apache.spark.sql.types.DataType> fieldNameAndType(org.apache.spark.sql.types.DataType structType, int pos) - Specified by:
 fieldNameAndTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 - 
nullType
protected org.apache.spark.sql.types.DataType nullType()- Specified by:
 nullTypein classAvroWithPartnerByStructureVisitor<org.apache.spark.sql.types.DataType,T> 
 
 -