public class FieldReaderFactory extends Object implements AvroSchemaVisitor<FieldReader>
FieldReader
.Modifier and Type | Class and Description |
---|---|
class |
FieldReaderFactory.RowReader
A
FieldReader to read InternalRow . |
Constructor and Description |
---|
FieldReaderFactory() |
Modifier and Type | Method and Description |
---|---|
FieldReaderFactory.RowReader |
createRowReader(org.apache.avro.Schema schema,
List<DataField> fields) |
FieldReader |
visitArray(org.apache.avro.Schema schema,
DataType elementType) |
FieldReader |
visitArrayMap(org.apache.avro.Schema schema,
DataType keyType,
DataType valueType) |
FieldReader |
visitBigInt() |
FieldReader |
visitBoolean() |
FieldReader |
visitBytes() |
FieldReader |
visitDecimal(Integer precision,
Integer scale) |
FieldReader |
visitDouble() |
FieldReader |
visitFloat() |
FieldReader |
visitInt() |
FieldReader |
visitMap(org.apache.avro.Schema schema,
DataType valueType) |
FieldReader |
visitRecord(org.apache.avro.Schema schema,
@NotNull List<DataField> fields) |
FieldReader |
visitSmallInt() |
FieldReader |
visitString() |
FieldReader |
visitTimestampMicros(Integer precision) |
FieldReader |
visitTimestampMillis(Integer precision) |
FieldReader |
visitTinyInt() |
FieldReader |
visitUnion(org.apache.avro.Schema schema,
DataType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
primitive, visit
public FieldReader visitUnion(org.apache.avro.Schema schema, @Nullable DataType type)
visitUnion
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitString()
visitString
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitBytes()
visitBytes
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitInt()
visitInt
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitTinyInt()
visitTinyInt
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitSmallInt()
visitSmallInt
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitBoolean()
visitBoolean
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitBigInt()
visitBigInt
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitFloat()
visitFloat
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitDouble()
visitDouble
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitTimestampMillis(@Nullable Integer precision)
visitTimestampMillis
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitTimestampMicros(@Nullable Integer precision)
visitTimestampMicros
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitDecimal(@Nullable Integer precision, @Nullable Integer scale)
visitDecimal
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitArray(org.apache.avro.Schema schema, @Nullable DataType elementType)
visitArray
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitArrayMap(org.apache.avro.Schema schema, DataType keyType, DataType valueType)
visitArrayMap
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitMap(org.apache.avro.Schema schema, @Nullable DataType valueType)
visitMap
in interface AvroSchemaVisitor<FieldReader>
public FieldReader visitRecord(org.apache.avro.Schema schema, @NotNull @NotNull List<DataField> fields)
visitRecord
in interface AvroSchemaVisitor<FieldReader>
public FieldReaderFactory.RowReader createRowReader(org.apache.avro.Schema schema, List<DataField> fields)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.