|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.ColumnFamilyStore
public class ColumnFamilyStore
Field Summary | |
---|---|
java.lang.String |
columnFamily_
|
IPartitioner |
partitioner_
|
java.lang.String |
table_
|
Method Summary | |
---|---|
void |
addSSTable(SSTableReader sstable)
|
static java.lang.Iterable<ColumnFamilyStore> |
all()
|
java.lang.Iterable<DecoratedKey> |
allKeySamples()
|
static ColumnFamilyStore |
createColumnFamilyStore(java.lang.String table,
java.lang.String columnFamily)
|
static ColumnFamilyStore |
createColumnFamilyStore(java.lang.String table,
java.lang.String columnFamily,
IPartitioner partitioner,
CFMetaData metadata)
|
void |
forceBlockingFlush()
|
java.util.concurrent.Future<?> |
forceFlush()
Triggers an immediate memtable flush. |
void |
forceFlushBinary()
|
void |
forceFlushIfExpired()
|
void |
forceMajorCompaction()
force a major compaction of this column family |
long |
getBloomFilterFalsePositives()
|
double |
getBloomFilterFalseRatio()
|
ColumnFamily |
getColumnFamily(DecoratedKey key,
QueryPath path,
byte[] start,
byte[] finish,
boolean reversed,
int limit)
|
ColumnFamily |
getColumnFamily(DecoratedKey key,
QueryPath path,
byte[] start,
byte[] finish,
java.util.List<byte[]> bitmasks,
boolean reversed,
int limit)
|
ColumnFamily |
getColumnFamily(QueryFilter filter)
get a list of columns starting from a given column, in a specified order. |
java.lang.String |
getColumnFamilyName()
|
AbstractType |
getComparator()
|
java.lang.String |
getFlushPath()
|
static int |
getGenerationFromFileName(java.lang.String filename)
|
ColumnFamilyStore |
getIndexedColumnFamilyStore(byte[] column)
|
java.util.Set<byte[]> |
getIndexedColumns()
|
DecoratedKey |
getIndexKeyFor(byte[] name,
byte[] value)
|
int |
getKeyCacheSize()
|
long[] |
getLifetimeReadLatencyHistogramMicros()
|
long[] |
getLifetimeWriteLatencyHistogramMicros()
|
long |
getLiveDiskSpaceUsed()
|
int |
getLiveSSTableCount()
|
long |
getMaxRowSize()
return the size of the largest compacted row |
int |
getMeanColumns()
|
long |
getMeanRowSize()
return the mean size of the rows compacted |
int |
getMemtableColumnsCount()
Returns the total number of columns present in the memtable. |
int |
getMemtableDataSize()
Returns the total amount of data stored in the memtable, including column related overhead. |
java.util.Set<Memtable> |
getMemtablesPendingFlush()
|
int |
getMemtableSwitchCount()
Returns the number of times that a flush has resulted in the memtable being switched out. |
long |
getMinRowSize()
return the size of the smallest compacted row |
int |
getPendingTasks()
|
java.util.List<Row> |
getRangeSlice(byte[] superColumn,
AbstractBounds range,
int maxResults,
IFilter columnFilter)
Fetch a range of rows and columns from memtables/sstables. |
ColumnFamily |
getRawCachedRow(DecoratedKey key)
raw cached row -- does not fetch the row if it is not present. |
long |
getReadCount()
|
long |
getRecentBloomFilterFalsePositives()
|
double |
getRecentBloomFilterFalseRatio()
|
long[] |
getRecentReadLatencyHistogramMicros()
|
double |
getRecentReadLatencyMicros()
|
long[] |
getRecentWriteLatencyHistogramMicros()
|
double |
getRecentWriteLatencyMicros()
|
java.util.Collection<SSTableReader> |
getSSTables()
|
Table |
getTable()
|
java.lang.String |
getTempSSTablePath(java.lang.String directory)
|
long |
getTotalDiskSpaceUsed()
|
long |
getTotalReadLatencyMicros()
|
long |
getTotalWriteLatencyMicros()
|
long |
getWriteCount()
|
boolean |
hasUnreclaimedSpace()
|
void |
invalidateRowCache()
invalidate the row cache; for use after bulk loading via BinaryMemtable |
void |
loadRowCache()
|
ColumnFamily |
newIndexedColumnFamily(byte[] column)
|
static ColumnFamily |
removeDeleted(ColumnFamily cf,
int gcBefore)
|
static ColumnFamily |
removeDeletedCF(ColumnFamily cf,
int gcBefore)
|
java.util.List<Row> |
scan(IndexClause clause,
AbstractBounds range,
IFilter dataFilter)
|
void |
snapshot(java.lang.String snapshotName)
Take a snap shot of this columnfamily store. |
static java.util.concurrent.Future<?> |
submitPostFlush(java.lang.Runnable runnable)
|
java.lang.String |
toString()
|
java.util.concurrent.Future<?> |
truncate()
Truncate practically deletes the entire column family's data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String table_
public final java.lang.String columnFamily_
public final IPartitioner partitioner_
Method Detail |
---|
public long getMinRowSize()
ColumnFamilyStoreMBean
getMinRowSize
in interface ColumnFamilyStoreMBean
public long getMaxRowSize()
ColumnFamilyStoreMBean
getMaxRowSize
in interface ColumnFamilyStoreMBean
public long getMeanRowSize()
ColumnFamilyStoreMBean
getMeanRowSize
in interface ColumnFamilyStoreMBean
public int getMeanColumns()
public static ColumnFamilyStore createColumnFamilyStore(java.lang.String table, java.lang.String columnFamily)
public static ColumnFamilyStore createColumnFamilyStore(java.lang.String table, java.lang.String columnFamily, IPartitioner partitioner, CFMetaData metadata)
public java.lang.String getColumnFamilyName()
getColumnFamilyName
in interface ColumnFamilyStoreMBean
public static int getGenerationFromFileName(java.lang.String filename)
public java.lang.String getFlushPath()
public java.lang.String getTempSSTablePath(java.lang.String directory)
public void forceFlushIfExpired()
public java.util.concurrent.Future<?> forceFlush()
ColumnFamilyStoreMBean
forceFlush
in interface ColumnFamilyStoreMBean
public void forceBlockingFlush() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void forceFlushBinary()
public static ColumnFamily removeDeletedCF(ColumnFamily cf, int gcBefore)
public static ColumnFamily removeDeleted(ColumnFamily cf, int gcBefore)
public void addSSTable(SSTableReader sstable)
public Table getTable()
public int getMemtableColumnsCount()
ColumnFamilyStoreMBean
getMemtableColumnsCount
in interface ColumnFamilyStoreMBean
public int getMemtableDataSize()
ColumnFamilyStoreMBean
getMemtableDataSize
in interface ColumnFamilyStoreMBean
public int getMemtableSwitchCount()
ColumnFamilyStoreMBean
getMemtableSwitchCount
in interface ColumnFamilyStoreMBean
public java.util.Collection<SSTableReader> getSSTables()
public long getReadCount()
getReadCount
in interface ColumnFamilyStoreMBean
public double getRecentReadLatencyMicros()
getRecentReadLatencyMicros
in interface ColumnFamilyStoreMBean
public long[] getLifetimeReadLatencyHistogramMicros()
getLifetimeReadLatencyHistogramMicros
in interface ColumnFamilyStoreMBean
public long[] getRecentReadLatencyHistogramMicros()
getRecentReadLatencyHistogramMicros
in interface ColumnFamilyStoreMBean
public long getTotalReadLatencyMicros()
getTotalReadLatencyMicros
in interface ColumnFamilyStoreMBean
public int getPendingTasks()
getPendingTasks
in interface ColumnFamilyStoreMBean
public long getWriteCount()
getWriteCount
in interface ColumnFamilyStoreMBean
public long getTotalWriteLatencyMicros()
getTotalWriteLatencyMicros
in interface ColumnFamilyStoreMBean
public double getRecentWriteLatencyMicros()
getRecentWriteLatencyMicros
in interface ColumnFamilyStoreMBean
public long[] getLifetimeWriteLatencyHistogramMicros()
getLifetimeWriteLatencyHistogramMicros
in interface ColumnFamilyStoreMBean
public long[] getRecentWriteLatencyHistogramMicros()
getRecentWriteLatencyHistogramMicros
in interface ColumnFamilyStoreMBean
public ColumnFamily getColumnFamily(DecoratedKey key, QueryPath path, byte[] start, byte[] finish, java.util.List<byte[]> bitmasks, boolean reversed, int limit)
public ColumnFamily getColumnFamily(DecoratedKey key, QueryPath path, byte[] start, byte[] finish, boolean reversed, int limit)
public ColumnFamily getColumnFamily(QueryFilter filter)
public java.util.List<Row> getRangeSlice(byte[] superColumn, AbstractBounds range, int maxResults, IFilter columnFilter) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
superColumn
- optional SuperColumn to slice subcolumns of; null to slice top-level columnsrange
- Either a Bounds, which includes start key, or a Range, which does not.maxResults
- Maximum rows to returncolumnFilter
- description of the columns we're interested in for each row
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public java.util.List<Row> scan(IndexClause clause, AbstractBounds range, IFilter dataFilter)
public AbstractType getComparator()
public void snapshot(java.lang.String snapshotName)
snapshotName
- the name of the associated with the snapshotpublic void loadRowCache()
public boolean hasUnreclaimedSpace()
public long getTotalDiskSpaceUsed()
getTotalDiskSpaceUsed
in interface ColumnFamilyStoreMBean
public long getLiveDiskSpaceUsed()
getLiveDiskSpaceUsed
in interface ColumnFamilyStoreMBean
public int getLiveSSTableCount()
getLiveSSTableCount
in interface ColumnFamilyStoreMBean
public ColumnFamily getRawCachedRow(DecoratedKey key)
public void forceMajorCompaction()
ColumnFamilyStoreMBean
forceMajorCompaction
in interface ColumnFamilyStoreMBean
public void invalidateRowCache()
ColumnFamilyStoreMBean
invalidateRowCache
in interface ColumnFamilyStoreMBean
public int getKeyCacheSize()
public static java.lang.Iterable<ColumnFamilyStore> all()
public java.lang.Iterable<DecoratedKey> allKeySamples()
public java.util.Set<Memtable> getMemtablesPendingFlush()
public java.util.concurrent.Future<?> truncate() throws java.io.IOException
java.io.IOException
public static java.util.concurrent.Future<?> submitPostFlush(java.lang.Runnable runnable)
public long getBloomFilterFalsePositives()
getBloomFilterFalsePositives
in interface ColumnFamilyStoreMBean
public long getRecentBloomFilterFalsePositives()
getRecentBloomFilterFalsePositives
in interface ColumnFamilyStoreMBean
public double getBloomFilterFalseRatio()
getBloomFilterFalseRatio
in interface ColumnFamilyStoreMBean
public double getRecentBloomFilterFalseRatio()
getRecentBloomFilterFalseRatio
in interface ColumnFamilyStoreMBean
public java.util.Set<byte[]> getIndexedColumns()
public ColumnFamilyStore getIndexedColumnFamilyStore(byte[] column)
public ColumnFamily newIndexedColumnFamily(byte[] column)
public DecoratedKey getIndexKeyFor(byte[] name, byte[] value)
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 |