@Tags(value={"avro","result","set","writer","serializer","record","recordset","row"}) @CapabilityDescription(value="Writes the contents of a RecordSet in Binary Avro format.") public class AvroRecordSetWriter extends SchemaRegistryRecordSetWriter implements RecordSetWriterFactory
Constructor and Description |
---|
AvroRecordSetWriter() |
Modifier and Type | Method and Description |
---|---|
RecordSetWriter |
createWriter(ComponentLog logger,
RecordSchema recordSchema,
java.io.OutputStream out)
Creates a new RecordSetWriter that is capable of writing record contents to an OutputStream.
|
protected java.util.Collection<ValidationResult> |
customValidate(ValidationContext validationContext)
Allows subclasses to perform their own validation on the already set
properties.
|
protected AllowableValue |
getDefaultSchemaWriteStrategy() |
protected java.util.Set<SchemaField> |
getRequiredSchemaFields(ValidationContext validationContext) |
protected java.util.List<AllowableValue> |
getSchemaWriteStrategyValues() |
protected java.util.List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Allows subclasses to register which property descriptor objects are
supported.
|
getConfigurationContext, getDefaultSchemaAccessStrategy, getSchemaAccessStrategyValues, getSchemaAccessWriter, getSchemaWriteStrategy, getSchemaWriteStrategyDescriptor, storeSchemaWriteStrategy
getSchema, getSchema, getSchemaAccessStrategy, getSchemaAccessStrategy, getSchemaAccessStrategy, getSchemaAcessStrategyDescriptor, getSuppliedSchemaFields, storeSchemaAccessStrategy
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getControllerServiceLookup, getIdentifier, getLogger, getProperty, getStateManager, init, initialize, isEnabled
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSchema
initialize
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public RecordSetWriter createWriter(ComponentLog logger, RecordSchema recordSchema, java.io.OutputStream out) throws java.io.IOException
RecordSetWriterFactory
Creates a new RecordSetWriter that is capable of writing record contents to an OutputStream.
createWriter
in interface RecordSetWriterFactory
logger
- the logger to use when logging information. This is passed in, rather than using the logger of the Controller Service
because it allows messages to be logged for the component that is calling this Controller Service.recordSchema
- the schema that will be used for writing recordsout
- the OutputStream to write tojava.io.IOException
- if unable to read from the given InputStreamprotected java.util.List<PropertyDescriptor> getSupportedPropertyDescriptors()
AbstractConfigurableComponent
getSupportedPropertyDescriptors
in class SchemaRegistryRecordSetWriter
protected java.util.List<AllowableValue> getSchemaWriteStrategyValues()
getSchemaWriteStrategyValues
in class SchemaRegistryRecordSetWriter
protected AllowableValue getDefaultSchemaWriteStrategy()
getDefaultSchemaWriteStrategy
in class SchemaRegistryRecordSetWriter
protected java.util.Set<SchemaField> getRequiredSchemaFields(ValidationContext validationContext)
getRequiredSchemaFields
in class SchemaRegistryRecordSetWriter
protected java.util.Collection<ValidationResult> customValidate(ValidationContext validationContext)
AbstractConfigurableComponent
customValidate
in class SchemaRegistryRecordSetWriter
validationContext
- provides a mechanism for obtaining externally
managed values, such as property values and supplies convenience methods
for operating on those values