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 Type
    Method
    Description
    void
    write(org.apache.avro.io.Encoder encoder)
    Callback invoked when it is time to write this datum to the output
  • Method Details

    • write

      void write(org.apache.avro.io.Encoder encoder) throws IOException
      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