|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cassandra.config.CFMetaData
public final class CFMetaData
Field Summary | |
---|---|
java.lang.Integer |
cfId
|
java.lang.String |
cfName
|
ColumnFamilyType |
cfType
|
AbstractType |
comparator
|
static int |
DEFAULT_GC_GRACE_SECONDS
|
static int |
DEFAULT_KEY_CACHE_SAVE_PERIOD_IN_SECONDS
|
static double |
DEFAULT_KEY_CACHE_SIZE
|
static int |
DEFAULT_MAX_COMPACTION_THRESHOLD
|
static int |
DEFAULT_MEMTABLE_LIFETIME_IN_MINS
|
static double |
DEFAULT_MEMTABLE_OPERATIONS_IN_MILLIONS
|
static int |
DEFAULT_MEMTABLE_THROUGHPUT_IN_MB
|
static int |
DEFAULT_MIN_COMPACTION_THRESHOLD
|
static double |
DEFAULT_READ_REPAIR_CHANCE
|
static int |
DEFAULT_ROW_CACHE_SAVE_PERIOD_IN_SECONDS
|
static double |
DEFAULT_ROW_CACHE_SIZE
|
static CFMetaData |
HintsCf
|
static CFMetaData |
IndexCf
|
static CFMetaData |
MigrationsCf
|
static CFMetaData |
SchemaCf
|
static CFMetaData |
StatusCf
|
AbstractType |
subcolumnComparator
|
java.lang.String |
tableName
|
Constructor Summary | |
---|---|
CFMetaData(java.lang.String tableName,
java.lang.String cfName,
ColumnFamilyType cfType,
AbstractType comparator,
AbstractType subcolumnComparator,
java.lang.String comment,
double rowCacheSize,
double keyCacheSize,
double readRepairChance,
int gcGraceSeconds,
AbstractType defaultValidator,
int minCompactionThreshold,
int maxCompactionThreshold,
int rowCacheSavePeriodInSeconds,
int keyCacheSavePeriodInSeconds,
int memTime,
java.lang.Integer memSize,
java.lang.Double memOps,
java.util.Map<java.nio.ByteBuffer,ColumnDefinition> column_metadata)
|
Method Summary | |
---|---|
void |
apply(org.apache.cassandra.avro.CfDef cf_def)
|
static void |
applyImplicitDefaults(CfDef cf_def)
applies implicit defaults to cf definition. |
static org.apache.cassandra.avro.CfDef |
convertToAvro(CfDef def)
|
static org.apache.cassandra.avro.CfDef |
convertToAvro(CFMetaData cfm)
|
static CfDef |
convertToThrift(CFMetaData cfm)
|
org.apache.cassandra.avro.CfDef |
deflate()
|
boolean |
equals(java.lang.Object obj)
|
static void |
fixMaxId()
|
static Pair<java.lang.String,java.lang.String> |
getCF(java.lang.Integer cfId)
|
java.util.Map<java.nio.ByteBuffer,ColumnDefinition> |
getColumn_metadata()
|
java.lang.String |
getComment()
|
AbstractType |
getDefaultValidator()
|
int |
getGcGraceSeconds()
|
static java.lang.Integer |
getId(java.lang.String table,
java.lang.String cfName)
|
int |
getKeyCacheSavePeriodInSeconds()
|
double |
getKeyCacheSize()
|
java.lang.Integer |
getMaxCompactionThreshold()
|
int |
getMemtableFlushAfterMins()
|
double |
getMemtableOperationsInMillions()
|
int |
getMemtableThroughputInMb()
|
java.lang.Integer |
getMinCompactionThreshold()
|
double |
getReadRepairChance()
|
int |
getRowCacheSavePeriodInSeconds()
|
double |
getRowCacheSize()
|
AbstractType |
getValueValidator(java.nio.ByteBuffer column)
|
int |
hashCode()
|
static CFMetaData |
inflate(org.apache.cassandra.avro.CfDef cf)
|
static void |
map(CFMetaData cfm)
adds this cfm to the map. |
static CFMetaData |
newIndexMetadata(java.lang.String table,
java.lang.String parentCf,
ColumnDefinition info,
AbstractType columnComparator)
|
static void |
purge(CFMetaData cfm)
used for evicting cf data out of static tracking collections. |
static CFMetaData |
rename(CFMetaData cfm,
java.lang.String newName)
clones an existing CFMetaData using the same id. |
static CFMetaData |
renameTable(CFMetaData cfm,
java.lang.String tableName)
clones existing CFMetaData. |
static double |
sizeMemtableOperations(int mem_throughput)
|
static int |
sizeMemtableThroughput()
|
java.lang.String |
toString()
|
static void |
validateMemtableSettings(CfDef cf_def)
|
static void |
validateMemtableSettings(org.apache.cassandra.avro.CfDef cf_def)
|
static void |
validateMinMaxCompactionThresholds(CfDef cf_def)
|
static void |
validateMinMaxCompactionThresholds(org.apache.cassandra.avro.CfDef cf_def)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_ROW_CACHE_SIZE
public static final double DEFAULT_KEY_CACHE_SIZE
public static final double DEFAULT_READ_REPAIR_CHANCE
public static final int DEFAULT_ROW_CACHE_SAVE_PERIOD_IN_SECONDS
public static final int DEFAULT_KEY_CACHE_SAVE_PERIOD_IN_SECONDS
public static final int DEFAULT_GC_GRACE_SECONDS
public static final int DEFAULT_MIN_COMPACTION_THRESHOLD
public static final int DEFAULT_MAX_COMPACTION_THRESHOLD
public static final int DEFAULT_MEMTABLE_LIFETIME_IN_MINS
public static final int DEFAULT_MEMTABLE_THROUGHPUT_IN_MB
public static final double DEFAULT_MEMTABLE_OPERATIONS_IN_MILLIONS
public static final CFMetaData StatusCf
public static final CFMetaData HintsCf
public static final CFMetaData MigrationsCf
public static final CFMetaData SchemaCf
public static final CFMetaData IndexCf
public final java.lang.Integer cfId
public final java.lang.String tableName
public final java.lang.String cfName
public final ColumnFamilyType cfType
public final AbstractType comparator
public final AbstractType subcolumnComparator
Constructor Detail |
---|
public CFMetaData(java.lang.String tableName, java.lang.String cfName, ColumnFamilyType cfType, AbstractType comparator, AbstractType subcolumnComparator, java.lang.String comment, double rowCacheSize, double keyCacheSize, double readRepairChance, int gcGraceSeconds, AbstractType defaultValidator, int minCompactionThreshold, int maxCompactionThreshold, int rowCacheSavePeriodInSeconds, int keyCacheSavePeriodInSeconds, int memTime, java.lang.Integer memSize, java.lang.Double memOps, java.util.Map<java.nio.ByteBuffer,ColumnDefinition> column_metadata)
Method Detail |
---|
public static int sizeMemtableThroughput()
public static double sizeMemtableOperations(int mem_throughput)
public static Pair<java.lang.String,java.lang.String> getCF(java.lang.Integer cfId)
public static java.lang.Integer getId(java.lang.String table, java.lang.String cfName)
public static void fixMaxId()
public static void map(CFMetaData cfm) throws ConfigurationException
ConfigurationException
public static CFMetaData newIndexMetadata(java.lang.String table, java.lang.String parentCf, ColumnDefinition info, AbstractType columnComparator)
public static CFMetaData rename(CFMetaData cfm, java.lang.String newName)
public static CFMetaData renameTable(CFMetaData cfm, java.lang.String tableName)
public static void purge(CFMetaData cfm)
public org.apache.cassandra.avro.CfDef deflate()
public static CFMetaData inflate(org.apache.cassandra.avro.CfDef cf)
public java.lang.String getComment()
public double getRowCacheSize()
public double getKeyCacheSize()
public double getReadRepairChance()
public int getGcGraceSeconds()
public AbstractType getDefaultValidator()
public java.lang.Integer getMinCompactionThreshold()
public java.lang.Integer getMaxCompactionThreshold()
public int getRowCacheSavePeriodInSeconds()
public int getKeyCacheSavePeriodInSeconds()
public int getMemtableFlushAfterMins()
public int getMemtableThroughputInMb()
public double getMemtableOperationsInMillions()
public java.util.Map<java.nio.ByteBuffer,ColumnDefinition> getColumn_metadata()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AbstractType getValueValidator(java.nio.ByteBuffer column)
public static void applyImplicitDefaults(CfDef cf_def)
public void apply(org.apache.cassandra.avro.CfDef cf_def) throws ConfigurationException
ConfigurationException
public static CfDef convertToThrift(CFMetaData cfm)
public static org.apache.cassandra.avro.CfDef convertToAvro(CFMetaData cfm)
public static org.apache.cassandra.avro.CfDef convertToAvro(CfDef def)
public static void validateMinMaxCompactionThresholds(CfDef cf_def) throws ConfigurationException
ConfigurationException
public static void validateMinMaxCompactionThresholds(org.apache.cassandra.avro.CfDef cf_def) throws ConfigurationException
ConfigurationException
public static void validateMemtableSettings(CfDef cf_def) throws ConfigurationException
ConfigurationException
public static void validateMemtableSettings(org.apache.cassandra.avro.CfDef cf_def) throws ConfigurationException
ConfigurationException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |