Github user meiercaleb commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/213#discussion_r134798989
  
    --- Diff: 
extras/rya.pcj.fluo/pcj.fluo.app/src/main/java/org/apache/rya/indexing/pcj/fluo/app/export/kafka/KafkaBindingSetExporterParameters.java
 ---
    @@ -0,0 +1,78 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.rya.indexing.pcj.fluo.app.export.kafka;
    +
    +import java.util.Map;
    +import java.util.Properties;
    +
    +import org.apache.kafka.clients.producer.ProducerConfig;
    +import org.apache.kafka.common.serialization.StringSerializer;
    +
    +
    +public class KafkaBindingSetExporterParameters extends 
KafkaExportParameterBase {
    +    
    +    public static final String CONF_USE_KAFKA_BINDING_SET_EXPORTER = 
"pcj.fluo.export.kafka.bindingset.enabled";
    +    public static final String CONF_KAFKA_BINDING_SET_SERIALIZER = 
"pcj.fluo.export.kafka.bindingset.serializer";
    +
    +    public KafkaBindingSetExporterParameters(final Map<String, String> 
params) {
    +        super(params);
    +    }
    +    
    +    /**
    +     * Instructs the Fluo application to use the Kafka Binding Set Exporter
    +     * and sets the appropriate Key/Value Serializer parameters for 
writing BindingSets to Kafka.
    +     * @param useExporter
    +     *            - {@code True} if the Fluo application should use the
    +     *            {@link KafkaBindingSetExporter}; otherwise {@code false}.
    +     */
    +    public void setUseKafkaBindingSetExporter(final boolean useExporter) {
    +        setBoolean(params, CONF_USE_KAFKA_BINDING_SET_EXPORTER, 
useExporter);
    +    }
    +
    +    /**
    +     * @return {@code True} if the Fluo application should use the {@link 
KafkaBindingSetExporter}; otherwise
    +     *         {@code false}. Defaults to {@code false} if no value is 
present.
    +     */
    +    public boolean getUseKafkaBindingSetExporter() {
    +        return getBoolean(params, CONF_USE_KAFKA_BINDING_SET_EXPORTER, 
false);
    +    }
    +    
    +    /**
    +     * 
    +     * @param serializer - Used for Serializing BindingSets pushed to Kafka
    +     */
    +    public void setKafkaBindingSetSerializer(String serializer) {
    +        params.put(CONF_KAFKA_BINDING_SET_SERIALIZER, serializer);
    --- End diff --
    
    Null check.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to