@InterfaceAudience.Public @InterfaceStability.Evolving public class AvroKuduOperationsProducer extends Object implements KuduOperationsProducer
Avro Kudu Operations Producer configuration parameters
| Property Name | Default | Required? | Description | 
|---|---|---|---|
| producer.operation | upsert | No | The operation used to write events to Kudu. Supported operations are 'insert' and 'upsert' | 
| producer.schemaPath | No | The location of the Avro schema file used to deserialize the Avro-encoded event bodies. It's used whenever an event does not include its own schema. If not specified, the schema must be specified on a per-event basis, either by url or as a literal. Schemas must be record type. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_OPERATION | 
| static String | OPERATION_PROP | 
| static String | SCHEMA_LITERAL_HEADER | 
| static String | SCHEMA_PROP | 
| static String | SCHEMA_URL_HEADER | 
| Constructor and Description | 
|---|
| AvroKuduOperationsProducer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Cleans up any state. | 
| void | configure(org.apache.flume.Context context) | 
| List<Operation> | getOperations(org.apache.flume.Event event)Returns the operations that should be written to Kudu as a result of this event. | 
| void | initialize(KuduTable table)Initializes the operations producer. | 
public static final String OPERATION_PROP
public static final String SCHEMA_PROP
public static final String DEFAULT_OPERATION
public static final String SCHEMA_URL_HEADER
public static final String SCHEMA_LITERAL_HEADER
public void configure(org.apache.flume.Context context)
configure in interface org.apache.flume.conf.Configurablepublic void initialize(KuduTable table)
KuduOperationsProducerinitialize in interface KuduOperationsProducertable - the KuduTable used to create Kudu Operation objectspublic List<Operation> getOperations(org.apache.flume.Event event) throws org.apache.flume.FlumeException
KuduOperationsProducergetOperations in interface KuduOperationsProducerevent - Event to convert to one or more Operationsorg.apache.flume.FlumeExceptionpublic void close()
KuduOperationsProducerclose in interface AutoCloseableclose in interface KuduOperationsProducerCopyright © 2018 The Apache Software Foundation. All rights reserved.