Package | Description |
---|---|
org.apache.avro.data |
Interfaces and base classes shared by generic, specific and reflect.
|
org.apache.avro.generic |
A generic representation for Avro data.
|
org.apache.avro.io |
Utilities for Encoding and Decoding Avro data.
|
org.apache.avro.io.parsing |
Implementation of Avro schemas as LL(1) grammars.
|
org.apache.avro.ipc |
Support for inter-process calls.
|
org.apache.avro.ipc.generic | |
org.apache.avro.ipc.reflect | |
org.apache.avro.ipc.specific | |
org.apache.avro.protobuf |
Protocol Buffer
compatibility.
|
org.apache.avro.reflect |
Use Java reflection to generate schemas and protocols for existing
classes.
|
org.apache.avro.specific |
Generate specific Java classes for schemas and protocols.
|
org.apache.avro.thrift |
Thrift compatibility.
|
Modifier and Type | Method and Description |
---|---|
static void |
Json.write(JsonNode node,
Encoder out)
Write Json data as Avro data.
|
void |
Json.Writer.write(JsonNode datum,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
void |
GenericDatumWriter.write(D datum,
Encoder out) |
protected void |
GenericDatumWriter.write(Schema schema,
Object datum,
Encoder out)
Called to write data.
|
protected void |
GenericDatumWriter.writeArray(Schema schema,
Object datum,
Encoder out)
Called to write a array.
|
protected void |
GenericDatumWriter.writeBytes(Object datum,
Encoder out)
Called to write a bytes.
|
protected void |
GenericDatumWriter.writeEnum(Schema schema,
Object datum,
Encoder out)
Called to write an enum value.
|
protected void |
GenericDatumWriter.writeFixed(Schema schema,
Object datum,
Encoder out)
Called to write a fixed value.
|
protected void |
GenericDatumWriter.writeMap(Schema schema,
Object datum,
Encoder out)
Called to write a map.
|
protected void |
GenericDatumWriter.writeRecord(Schema schema,
Object datum,
Encoder out)
Called to write a record.
|
protected void |
GenericDatumWriter.writeString(Object datum,
Encoder out)
Called to write a string.
|
protected void |
GenericDatumWriter.writeString(Schema schema,
Object datum,
Encoder out)
Called to write a string.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryEncoder
An abstract
Encoder for Avro's binary encoding. |
class |
BlockingBinaryEncoder
A
BinaryEncoder implementation that writes large arrays and maps as a
sequence of blocks. |
class |
BufferedBinaryEncoder
An
Encoder for Avro's binary encoding. |
class |
DirectBinaryEncoder
An
Encoder for Avro's binary encoding that does not buffer output. |
class |
JsonEncoder
An
Encoder for Avro's JSON data encoding. |
class |
ParsingEncoder
|
class |
ValidatingEncoder
An implementation of
Encoder that wraps another Encoder and
ensures that the sequence of operations conforms to the provided schema. |
Modifier and Type | Field and Description |
---|---|
protected Encoder |
ValidatingEncoder.out |
Modifier and Type | Method and Description |
---|---|
ValidatingEncoder |
ValidatingEncoder.configure(Encoder encoder)
Reconfigures this ValidatingEncoder to wrap the encoder provided.
|
ValidatingEncoder |
EncoderFactory.validatingEncoder(Schema schema,
Encoder encoder)
Creates a
ValidatingEncoder that wraps the Encoder provided. |
void |
DatumWriter.write(D datum,
Encoder out)
Write a datum.
|
Modifier and Type | Method and Description |
---|---|
static void |
ResolvingGrammarGenerator.encode(Encoder e,
Schema s,
JsonNode n)
Encodes the given Json node n on to the encoder e
according to the schema s.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Responder.writeError(Schema schema,
Object error,
Encoder out)
Writes an error message.
|
abstract void |
Requestor.writeRequest(Schema schema,
Object request,
Encoder out)
Writes a request message.
|
abstract void |
Responder.writeResponse(Schema schema,
Object response,
Encoder out)
Writes a response message.
|
Modifier and Type | Method and Description |
---|---|
void |
GenericResponder.writeError(Schema schema,
Object error,
Encoder out) |
void |
GenericRequestor.writeRequest(Schema schema,
Object request,
Encoder out) |
void |
GenericResponder.writeResponse(Schema schema,
Object response,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
void |
ReflectResponder.writeError(Schema schema,
Object error,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
void |
SpecificResponder.writeError(Schema schema,
Object error,
Encoder out) |
void |
SpecificRequestor.writeRequest(Schema schema,
Object request,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
protected void |
ProtobufDatumWriter.writeBytes(Object datum,
Encoder out) |
protected void |
ProtobufDatumWriter.writeEnum(Schema schema,
Object datum,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
protected void |
ReflectDatumWriter.write(Schema schema,
Object datum,
Encoder out) |
protected void |
ReflectDatumWriter.writeBytes(Object datum,
Encoder out) |
protected void |
ReflectDatumWriter.writeString(Schema schema,
Object datum,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
protected void |
SpecificDatumWriter.writeEnum(Schema schema,
Object datum,
Encoder out) |
Modifier and Type | Method and Description |
---|---|
protected void |
ThriftDatumWriter.writeBytes(Object datum,
Encoder out) |
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.