public interface ColumnFamilyStoreMBean
Modifier and Type | Method and Description |
---|---|
void |
beginLocalSampling(java.lang.String sampler,
int capacity,
int durationMillis)
begin sampling for a specific sampler with a given capacity.
|
void |
compactionDiskSpaceCheck(boolean enable) |
long |
estimateKeys() |
java.util.List<javax.management.openmbean.CompositeData> |
finishLocalSampling(java.lang.String sampler,
int count) |
void |
forceCompactionForTokenRange(java.util.Collection<Range<Token>> tokenRanges)
Forces a major compaction of specified token ranges in this column family.
|
void |
forceMajorCompaction(boolean splitOutput)
force a major compaction of this column family
|
java.util.List<java.lang.String> |
getBuiltIndexes()
Returns a list of the names of the built column indexes for current store
|
java.lang.String |
getColumnFamilyName()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getCompactionParameters() |
java.lang.String |
getCompactionParametersJson() |
java.util.Map<java.lang.String,java.lang.String> |
getCompressionParameters()
Get the compression parameters
|
java.lang.String |
getCompressionParametersJson() |
java.util.List<java.lang.String> |
getDataPaths() |
double |
getDroppableTombstoneRatio()
Get the ratio of droppable tombstones to real columns (and non-droppable tombstones)
|
int |
getLevelFanoutSize() |
int |
getMaximumCompactionThreshold()
Gets the maximum number of sstables in queue before compaction kicks off
|
int |
getMinimumCompactionThreshold()
Gets the minimum number of sstables in queue before compaction kicks off
|
boolean |
getNeverPurgeTombstones() |
int[] |
getSSTableCountPerLevel() |
java.util.List<java.lang.String> |
getSSTablesForKey(java.lang.String key)
Returns a list of filenames that contain the given key on this node
|
java.util.List<java.lang.String> |
getSSTablesForKey(java.lang.String key,
boolean hexFormat)
Returns a list of filenames that contain the given key on this node
|
java.lang.String |
getTableName() |
int |
getUnleveledSSTables() |
boolean |
hasMisplacedSSTables()
Check SSTables whether or not they are misplaced.
|
java.util.List<java.lang.String> |
importNewSSTables(java.util.Set<java.lang.String> srcPaths,
boolean resetLevel,
boolean clearRepaired,
boolean verifySSTables,
boolean verifyTokens,
boolean invalidateCaches,
boolean extendedVerify)
Deprecated.
|
java.util.List<java.lang.String> |
importNewSSTables(java.util.Set<java.lang.String> srcPaths,
boolean resetLevel,
boolean clearRepaired,
boolean verifySSTables,
boolean verifyTokens,
boolean invalidateCaches,
boolean extendedVerify,
boolean copyData)
Load new sstables from the given directory
|
boolean |
isAutoCompactionDisabled() |
boolean |
isCompactionDiskSpaceCheckEnabled() |
void |
loadNewSSTables()
Deprecated.
|
void |
setCompactionParameters(java.util.Map<java.lang.String,java.lang.String> options)
Sets the compaction parameters locally for this node
Note that this will be set until an ALTER with compaction = {..} is executed or the node is restarted
|
void |
setCompactionParametersJson(java.lang.String options)
Sets the compaction parameters locally for this node
Note that this will be set until an ALTER with compaction = {..} is executed or the node is restarted
|
void |
setCompactionThresholds(int minThreshold,
int maxThreshold)
Sets the maximum and maximum number of SSTables in queue before compaction kicks off
|
void |
setCompressionParameters(java.util.Map<java.lang.String,java.lang.String> opts)
Set the compression parameters locally for this node
|
void |
setCompressionParametersJson(java.lang.String options) |
void |
setCrcCheckChance(double crcCheckChance)
Set new crc check chance
|
void |
setMaximumCompactionThreshold(int threshold)
Sets the maximum number of sstables in queue before compaction kicks off
|
void |
setMinimumCompactionThreshold(int threshold)
Sets the minimum number of sstables in queue before compaction kicks off
|
void |
setNeverPurgeTombstones(boolean value) |
long |
trueSnapshotsSize() |
@Deprecated java.lang.String getColumnFamilyName()
java.lang.String getTableName()
void forceMajorCompaction(boolean splitOutput) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
splitOutput
- true if the output of the major compaction should be split in several sstablesjava.util.concurrent.ExecutionException
java.lang.InterruptedException
void forceCompactionForTokenRange(java.util.Collection<Range<Token>> tokenRanges) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
The token ranges will be interpreted as closed intervals to match the closed interval defined by the first and
last keys of a sstable, even though the Range
class is suppossed to be half-open by definition.
tokenRanges
- The token ranges to be compacted, interpreted as closed intervals.java.util.concurrent.ExecutionException
java.lang.InterruptedException
int getMinimumCompactionThreshold()
void setMinimumCompactionThreshold(int threshold)
int getMaximumCompactionThreshold()
void setCompactionThresholds(int minThreshold, int maxThreshold)
void setMaximumCompactionThreshold(int threshold)
void setCompactionParametersJson(java.lang.String options)
options
- compaction options with the same syntax as when doing ALTER ... WITH compaction = {..}java.lang.String getCompactionParametersJson()
void setCompactionParameters(java.util.Map<java.lang.String,java.lang.String> options)
options
- compaction options mapjava.util.Map<java.lang.String,java.lang.String> getCompactionParameters()
java.util.Map<java.lang.String,java.lang.String> getCompressionParameters()
java.lang.String getCompressionParametersJson()
void setCompressionParameters(java.util.Map<java.lang.String,java.lang.String> opts)
opts
- map of string names to valuesvoid setCompressionParametersJson(java.lang.String options)
void setCrcCheckChance(double crcCheckChance)
boolean isAutoCompactionDisabled()
long estimateKeys()
java.util.List<java.lang.String> getBuiltIndexes()
java.util.List<java.lang.String> getSSTablesForKey(java.lang.String key)
key
- java.util.List<java.lang.String> getSSTablesForKey(java.lang.String key, boolean hexFormat)
key
- hexFormat
- if key is in hex string format@Deprecated java.util.List<java.lang.String> importNewSSTables(java.util.Set<java.lang.String> srcPaths, boolean resetLevel, boolean clearRepaired, boolean verifySSTables, boolean verifyTokens, boolean invalidateCaches, boolean extendedVerify)
srcPaths
- the path to the new sstables - if it is an empty set, the data directories will be scannedresetLevel
- if the level should be reset to 0 on the new sstablesclearRepaired
- if repaired info should be wiped from the new sstablesverifySSTables
- if the new sstables should be verified that they are not corruptverifyTokens
- if the tokens in the new sstables should be verified that they are owned by the current nodeinvalidateCaches
- if row cache should be invalidated for the keys in the new sstablesextendedVerify
- if we should run an extended verify checking all values in the new sstablesjava.util.List<java.lang.String> importNewSSTables(java.util.Set<java.lang.String> srcPaths, boolean resetLevel, boolean clearRepaired, boolean verifySSTables, boolean verifyTokens, boolean invalidateCaches, boolean extendedVerify, boolean copyData)
srcPaths
- the path to the new sstables - if it is an empty set, the data directories will be scannedresetLevel
- if the level should be reset to 0 on the new sstablesclearRepaired
- if repaired info should be wiped from the new sstablesverifySSTables
- if the new sstables should be verified that they are not corruptverifyTokens
- if the tokens in the new sstables should be verified that they are owned by the current nodeinvalidateCaches
- if row cache should be invalidated for the keys in the new sstablesextendedVerify
- if we should run an extended verify checking all values in the new sstablescopyData
- if we should copy data from source paths instead of moving them@Deprecated void loadNewSSTables()
int getUnleveledSSTables()
int[] getSSTableCountPerLevel()
int getLevelFanoutSize()
double getDroppableTombstoneRatio()
long trueSnapshotsSize()
void beginLocalSampling(java.lang.String sampler, int capacity, int durationMillis)
java.util.List<javax.management.openmbean.CompositeData> finishLocalSampling(java.lang.String sampler, int count) throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException
boolean isCompactionDiskSpaceCheckEnabled()
void compactionDiskSpaceCheck(boolean enable)
void setNeverPurgeTombstones(boolean value)
boolean getNeverPurgeTombstones()
boolean hasMisplacedSSTables()
java.util.List<java.lang.String> getDataPaths() throws java.io.IOException
java.io.IOException
Copyright © 2009- The Apache Software Foundation