public static ColumnFamily getColumnFamily(Table table, DecoratedKey key, String cfName) throws IOException { ColumnFamilyStore cfStore = table.getColumnFamilyStore(cfName); assert cfStore != null : "Column family " + cfName + " has not been defined"; return cfStore.getColumnFamily(QueryFilter.getIdentityFilter(key, new QueryPath(cfName))); }