|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.Table
public class Table
Nested Class Summary | |
---|---|
class |
Table.IndexBuilder
|
Field Summary | |
---|---|
java.lang.String |
name
|
static java.lang.String |
SYSTEM_TABLE
|
Method Summary | |
---|---|
static java.lang.Iterable<Table> |
all()
|
void |
apply(RowMutation mutation,
java.lang.Object serializedMutation,
boolean writeCommitLog)
This method adds the row to the Commit Log associated with this table. |
static void |
cleanupIndexEntry(ColumnFamilyStore cfs,
java.nio.ByteBuffer key,
IColumn column)
|
static Table |
clear(java.lang.String table)
|
void |
clearSnapshot()
Clear all the snapshots for a given table. |
Table.IndexBuilder |
createIndexBuilder(ColumnFamilyStore cfs,
java.util.SortedSet<java.nio.ByteBuffer> columns,
ReducingKeyIterator iter)
|
void |
createReplicationStrategy(KSMetaData ksm)
|
void |
dropCf(java.lang.Integer cfId)
|
java.util.List<java.util.concurrent.Future<?>> |
flush()
|
java.util.List<SSTableReader> |
getAllSSTables()
|
ColumnFamilyStore |
getColumnFamilyStore(java.lang.String cfName)
|
java.util.Collection<ColumnFamilyStore> |
getColumnFamilyStores()
|
java.lang.String |
getDataFileLocation(long expectedCompactedFileSize)
|
AbstractReplicationStrategy |
getReplicationStrategy()
|
Row |
getRow(QueryFilter filter)
|
static java.lang.String |
getSnapshotPath(java.lang.String dataDirPath,
java.lang.String tableName,
java.lang.String snapshotName)
|
static java.lang.String |
getTimestampedSnapshotName(java.lang.String clientSuppliedName)
|
void |
initCf(java.lang.Integer cfId,
java.lang.String cfName)
adds a cf to internal structures, ends up creating disk files). |
static Table |
open(java.lang.String table)
|
void |
renameCf(java.lang.Integer cfId,
java.lang.String newName)
basically a combined drop and add |
void |
snapshot(java.lang.String clientSuppliedName)
Take a snapshot of the entire set of column families with a given timestamp. |
java.lang.String |
toString()
|
void |
truncate(java.lang.String cfname)
Performs a synchronous truncate operation, effectively deleting all data from the column family cfname |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSTEM_TABLE
public final java.lang.String name
Method Detail |
---|
public static Table open(java.lang.String table)
public static Table clear(java.lang.String table) throws java.io.IOException
java.io.IOException
public java.util.Collection<ColumnFamilyStore> getColumnFamilyStores()
public ColumnFamilyStore getColumnFamilyStore(java.lang.String cfName)
public void snapshot(java.lang.String clientSuppliedName)
clientSuppliedName
- the tag associated with the name of the snapshot. This
value can be null.public static java.lang.String getTimestampedSnapshotName(java.lang.String clientSuppliedName)
clientSuppliedName;
- may be null.
public void clearSnapshot() throws java.io.IOException
java.io.IOException
public java.util.List<SSTableReader> getAllSSTables()
public void createReplicationStrategy(KSMetaData ksm) throws ConfigurationException
ConfigurationException
public void dropCf(java.lang.Integer cfId) throws java.io.IOException
java.io.IOException
public void initCf(java.lang.Integer cfId, java.lang.String cfName)
public void renameCf(java.lang.Integer cfId, java.lang.String newName) throws java.io.IOException
java.io.IOException
public Row getRow(QueryFilter filter) throws java.io.IOException
java.io.IOException
public void apply(RowMutation mutation, java.lang.Object serializedMutation, boolean writeCommitLog) throws java.io.IOException
java.io.IOException
public static void cleanupIndexEntry(ColumnFamilyStore cfs, java.nio.ByteBuffer key, IColumn column)
public Table.IndexBuilder createIndexBuilder(ColumnFamilyStore cfs, java.util.SortedSet<java.nio.ByteBuffer> columns, ReducingKeyIterator iter)
public AbstractReplicationStrategy getReplicationStrategy()
public java.util.List<java.util.concurrent.Future<?>> flush() throws java.io.IOException
java.io.IOException
public java.lang.String getDataFileLocation(long expectedCompactedFileSize)
public static java.lang.String getSnapshotPath(java.lang.String dataDirPath, java.lang.String tableName, java.lang.String snapshotName)
public static java.lang.Iterable<Table> all()
public void truncate(java.lang.String cfname) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
cfname
-
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
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 |