public class ScanNumberListWriter extends AbstractAvroWriter<ScanNumberList>
| Constructor and Description |
|---|
ScanNumberListWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createRecordFields(List<org.apache.avro.Schema.Field> fields)
Create a list containing the Schema.Fields for the fields that this class writes
|
org.apache.avro.Schema |
createSchema()
Creates a schema for this reader or writer
|
Class |
getObjectClass() |
void |
write(ScanNumberList scanNumbers,
org.apache.avro.io.Encoder out)
Write the value to the encoder
|
getRecordName, getRecordNameSpace, writeArray, writeMap, writeMap, writeMap, writeOptional, writeStringArray, writeUnion, writeUnionArraycreateEnumSchema, createSchemaField, createUnionSchema, createUnionSchema, getRecordDoc, getUnion, registerUnion, rewriteNameSpacepublic Class getObjectClass()
public void write(ScanNumberList scanNumbers, org.apache.avro.io.Encoder out) throws IOException
AvroWriterscanNumbers - the value to writeout - the encoderIOExceptionpublic org.apache.avro.Schema createSchema()
AvroIOcreateSchema in interface AvroExternalizablecreateSchema in class AvroIO<AbstractAvroWriter>protected void createRecordFields(List<org.apache.avro.Schema.Field> fields)
AvroIOcreateRecordFields in class AvroIO<AbstractAvroWriter>fields - the list to add the fields toCopyright © 2016. All Rights Reserved.