com.hmsonline.trident.cql.mappers.CqlTupleMapper Maven / Gradle / Ivy
package com.hmsonline.trident.cql.mappers;
import storm.trident.tuple.TridentTuple;
import com.datastax.driver.core.Statement;
/**
* The CqlTupleMapper interface is responsible
* for defining the structure of mapping and retrieving tuples
* into the Cassandra store.
*
* @param K the key to map and retrieve
* @param V the value to map and retrieve
* @author rlee
*/
public abstract interface CqlTupleMapper {
public Statement map(K key, V value);
public Statement map(TridentTuple tuple);
public Statement retrieve(K key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy