Interface EncodedDatum
- All Known Implementing Classes:
CustomEncodingDatum
public interface EncodedDatum
Interface for handling opaque avro-encoded objects. These can be written with
AvroGenerator.writeEmbeddedObject(Object) and will
be written directly to the encoder.-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(org.apache.avro.io.Encoder encoder) Callback invoked when it is time to write this datum to the output
-
Method Details
-
write
Callback invoked when it is time to write this datum to the output- Parameters:
encoder- Encoder to which the datum should be written- Throws:
IOException- if there was an error writing out the datum
-