org.cassandraunit.model.ColumnFamilyModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-unit Show documentation
Show all versions of cassandra-unit Show documentation
Test framework to develop with Cassandra
package org.cassandraunit.model;
import java.util.ArrayList;
import java.util.List;
import me.prettyprint.hector.api.ddl.ColumnType;
import me.prettyprint.hector.api.ddl.ComparatorType;
/**
*
* @author Jeremy Sevellec
*
*/
public class ColumnFamilyModel {
private String name;
private ColumnType type = ColumnType.STANDARD;
private ComparatorType keyType = ComparatorType.BYTESTYPE;
private ComparatorType comparatorType = ComparatorType.BYTESTYPE;
private ComparatorType subComparatorType = null;
private ComparatorType defaultColumnValueType = ComparatorType.BYTESTYPE;
private List rows = new ArrayList();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ColumnType getType() {
return type;
}
public void setType(ColumnType type) {
this.type = type;
}
public void setKeyType(ComparatorType keyType) {
this.keyType = keyType;
}
public ComparatorType getKeyType() {
return keyType;
}
public void setComparatorType(ComparatorType comparatorType) {
this.comparatorType = comparatorType;
}
public ComparatorType getComparatorType() {
return comparatorType;
}
public void setSubComparatorType(ComparatorType subComparatorType) {
this.subComparatorType = subComparatorType;
}
public ComparatorType getSubComparatorType() {
return subComparatorType;
}
public void setRows(List rows) {
this.rows = rows;
}
public List getRows() {
return rows;
}
public void setDefaultColumnValueType(ComparatorType defaultColumnValueType) {
this.defaultColumnValueType = defaultColumnValueType;
}
public ComparatorType getDefaultColumnValueType() {
return defaultColumnValueType;
}
public boolean isCounter() {
return defaultColumnValueType.equals(ComparatorType.COUNTERTYPE);
}
}