Class DynamicAvroDestinations<UserT,DestinationT,OutputT>  
java.lang.Object
org.apache.beam.sdk.io.FileBasedSink.DynamicDestinations<UserT,DestinationT,OutputT>
  
org.apache.beam.sdk.extensions.avro.io.DynamicAvroDestinations<UserT,DestinationT,OutputT>  
- All Implemented Interfaces:
 Serializable,HasDisplayData
public abstract class DynamicAvroDestinations<UserT,DestinationT,OutputT>  
extends FileBasedSink.DynamicDestinations<UserT,DestinationT,OutputT>  
A specialization of 
FileBasedSink.DynamicDestinations for AvroIO. In addition to dynamic file
 destinations, this allows specifying other AVRO properties (schema, metadata, codec, datum
 writer) per destination.- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetCodec(DestinationT destination) Return an AVRO codec for a given destination.getDatumWriterFactory(DestinationT destinationT) Return aAvroSink.DatumWriterFactoryfor a given destination.getMetadata(DestinationT destination) Return AVRO file metadata for a given destination.abstract SchemagetSchema(DestinationT destination) Return an AVRO schema for a given destination.Methods inherited from class org.apache.beam.sdk.io.FileBasedSink.DynamicDestinations
formatRecord, getDefaultDestination, getDestination, getDestinationCoder, getFilenamePolicy, getSideInputs, populateDisplayData, sideInput 
- 
Constructor Details
- 
DynamicAvroDestinations
public DynamicAvroDestinations() 
 - 
 - 
Method Details
- 
getSchema
Return an AVRO schema for a given destination. - 
getMetadata
Return AVRO file metadata for a given destination. - 
getCodec
Return an AVRO codec for a given destination. - 
getDatumWriterFactory
public @Nullable AvroSink.DatumWriterFactory<OutputT> getDatumWriterFactory(DestinationT destinationT) Return aAvroSink.DatumWriterFactoryfor a given destination. If provided, it will be used to createdDatumWriterinstances as required. 
 -