com.fnklabs.draenei.orm.annotations.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fnklabs-draenei Show documentation
Show all versions of fnklabs-draenei Show documentation
ORM for Cassandra but with distributed cache and analytics utils from package
package com.fnklabs.draenei.orm.annotations;
import com.datastax.driver.core.ConsistencyLevel;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Table {
/**
* Table name
*
* @return Table name
*/
String name();
/**
* Whether current table is compact
*
* @return True if table was created as compact storage
*/
boolean compactStorage() default false;
/**
* Max fetch size for stmt
*
* @return Default fetch size
*/
int fetchSize() default 500;
/**
* Default consistency level for read operations
*
* @return Consistency level
*/
ConsistencyLevel readConsistencyLevel() default ConsistencyLevel.QUORUM;
/**
* Default consistency level for write/delete operations
*
* @return Consistency level
*/
ConsistencyLevel writeConsistencyLevel() default ConsistencyLevel.QUORUM;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy