All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hmsonline.storm.cassandra.bolt.mapper.ColumnMapper Maven / Gradle / Ivy

package com.hmsonline.storm.cassandra.bolt.mapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.tuple.Tuple;
import backtype.storm.tuple.Values;

/**
 * 
 * @author tgoetz
 *
 * @param 
 * @param 
 * @param 
 */
public interface ColumnMapper extends Serializable {

    /**
     * Declares the fields produced by the bolt using this mapper.
     * 
     * @param declarer
     */
    void declareOutputFields(OutputFieldsDeclarer declarer);
    
    /**
     * Given a set of columns, maps to values to emit.
     * 
     * @param columns
     * @return
     */
    public List mapToValues(K rowKey, Map columns, Tuple input);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy