com.ebuddy.cassandra.dao.visitor.ColumnVisitor Maven / Gradle / Ivy
package com.ebuddy.cassandra.dao.visitor;
/**
* Visit columns and perform some internal logic on the column data.
*
* @param The result type.
* @param The type of a column name.
* @param The type of a column value.
*/
public interface ColumnVisitor {
/**
* Visit easy column and evaluates a logic.
* @param columnName the name of the column
* @param columnValue the value of the column
* @param timestamp the cassandra timestamp when the column was written
* @param ttl the time to live for that column value
*/
void visit(N columnName, V columnValue, long timestamp, int ttl);
}