
me.prettyprint.hom.KeyConcatenationStrategy Maven / Gradle / Ivy
package me.prettyprint.hom;
import java.util.List;
/**
* Keys in Cassandra cannot inherently be multi-field, so a strategy must be employed to concatenate fields together.
*
* @author B. Todd Burruss
*/
public interface KeyConcatenationStrategy {
/**
* Concatenate the byte[] List into a single byte[].
*
* @param segmentList
* @return concatenated byte[]
*/
byte[] concat(List segmentList);
/**
* Split the byte[] into its fields (or segments).
*
* @param colFamKey
* @return List of fields, or segments
*/
List split(byte[] colFamKey);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy