Package org.apache.avro
Class SchemaBuilder.BytesDefault<R>
java.lang.Object
org.apache.avro.SchemaBuilder.FieldDefault<R,SchemaBuilder.BytesDefault<R>>
org.apache.avro.SchemaBuilder.BytesDefault<R>
- Enclosing class:
SchemaBuilder
public static class SchemaBuilder.BytesDefault<R>
extends SchemaBuilder.FieldDefault<R,SchemaBuilder.BytesDefault<R>>
Choose whether to use a default value for the field or not.
-
Method Summary
Modifier and TypeMethodDescriptionfinal SchemaBuilder.FieldAssembler
<R> bytesDefault
(byte[] defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> bytesDefault
(String defaultVal) Completes this field with the default value provided, cannot be null.final SchemaBuilder.FieldAssembler
<R> bytesDefault
(ByteBuffer defaultVal) Completes this field with the default value provided, cannot be nullMethods inherited from class org.apache.avro.SchemaBuilder.FieldDefault
noDefault
-
Method Details
-
bytesDefault
Completes this field with the default value provided, cannot be null -
bytesDefault
Completes this field with the default value provided, cannot be null -
bytesDefault
Completes this field with the default value provided, cannot be null. The string is interpreted as a byte[], with each character code point value equalling the byte value, as in the Avro spec JSON default.
-