public interface AvroDSLInterface
JavaAvroDSL.| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
parseSchema(String text)
Parse a text IDL declaration for a single Avro type.
|
List<org.apache.avro.Schema> |
parseSchemaSequence(String text)
Parse a text IDL declaration for a sequence of Avro types.
|
<T> T |
parseValue(String text,
org.apache.avro.Schema schema)
Parse an Avro value from its DSL string representation.
|
String |
schemaToString(org.apache.avro.Schema schema)
Serializes an Avro schema back to its DSL string representation.
|
<T> String |
valueToString(T value,
org.apache.avro.Schema schema)
Serializes an Avro value to back to its DSL string representation.
|
org.apache.avro.Schema parseSchema(String text)
text - IDL definition to parse into an Avro schema.List<org.apache.avro.Schema> parseSchemaSequence(String text)
text - IDL definition to parse into a sequence of Avro schemas.String schemaToString(org.apache.avro.Schema schema)
schema - Avro schema to represent as a DSL Avro schema definition.<T> T parseValue(String text, org.apache.avro.Schema schema)
T - is the value type to return.text - Text DSL representation of an Avro value.schema - Avro schema of the value to parse.<T> String valueToString(T value, org.apache.avro.Schema schema)
T - is the value type to return.value - Avro value to serialize.schema - Avro schema of the value to serialize.Copyright © 2016. All rights reserved.