public final class SimpleAvro extends SpecificRecordBase
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleAvro.Builder
RecordBuilder for Avro instances.
|
| Constructor and Description |
|---|
SimpleAvro()
Default constructor, does not initialize fields to their default values from the schema.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleAvro |
decode(Decoder _decoder)
Reads record from Avro Decoder.
|
void |
encode(Encoder _encoder)
Writes record to Avro Encoder.
|
SimpleAvro |
freeze() |
Object |
get(int field$) |
static Schema |
getClassSchema()
Returns Avro record schema.
|
Schema |
getSchema() |
static SimpleAvro.Builder |
newBuilder()
Creates a new SimpleAvro RecordBuilder.
|
static SimpleAvro.Builder |
newBuilder(SimpleAvro.Builder other)
Creates a new SimpleAvro RecordBuilder by copying an existing SimpleAvro.Builder instance.
|
static SimpleAvro.Builder |
newBuilder(SimpleAvro other)
Creates a new SimpleAvro RecordBuilder by copying an existing SimpleAvro instance.
|
void |
put(int field$,
Object value$) |
public static final Schema SCHEMA$
public SimpleAvro()
public SimpleAvro freeze()
public Schema getSchema()
getSchema in interface GenericContainergetSchema in class SpecificRecordBasepublic Object get(int field$)
get in interface IndexedRecordget in class SpecificRecordBasepublic void encode(Encoder _encoder) throws IOException
IOExceptionpublic void put(int field$,
Object value$)
put in interface IndexedRecordput in class SpecificRecordBasepublic SimpleAvro decode(Decoder _decoder) throws IOException
IOExceptionpublic static SimpleAvro.Builder newBuilder()
public static SimpleAvro.Builder newBuilder(SimpleAvro.Builder other)
public static SimpleAvro.Builder newBuilder(SimpleAvro other)
public static Schema getClassSchema()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.