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