public void snapshot ( String snapshotName , String columnFamilyName ) throws IOException { assert snapshotName != null ; boolean tookSnapShot = false ; for ( ColumnFamilyStore cfStore : columnFamilyStores . values ( ) ) { if ( columnFamilyName == null || cfStore . name . equals ( columnFamilyName ) ) { tookSnapShot = true ; cfStore . snapshot ( snapshotName ) ; } } if ( ( columnFamilyName != null ) && ! tookSnapShot ) throw new IOException ( "Failed taking snapshot. Column family " + columnFamilyName + " does not exist." ) ; }
Take a snapshot of the specific column family or the entire set of column families if columnFamily is null with a given timestamp