/** * Creates a DataResource instance representing a table. * * @param keyspace Name of the keyspace. * @param table Name of the table. * @return DataResource instance representing the column family. */ public static DataResource table(String keyspace, String table) { return new DataResource(Level.TABLE, keyspace, table); }
/** * Creates a DataResource representing a keyspace. * * @param keyspace Name of the keyspace. * @return DataResource instance representing the keyspace. */ public static DataResource keyspace(String keyspace) { return new DataResource(keyspace); }
/** * Creates a DataResource instance representing a table. * * @param keyspace Name of the keyspace. * @param table Name of the table. * @return DataResource instance representing the column family. */ public static DataResource table(String keyspace, String table) { return new DataResource(Level.TABLE, keyspace, table); }
/** * Creates a DataResource representing a keyspace. * * @param keyspace Name of the keyspace. * @return DataResource instance representing the keyspace. */ public static DataResource keyspace(String keyspace) { return new DataResource(Level.KEYSPACE, keyspace, null); }
/** * Creates a DataResource representing a keyspace. * * @param keyspace Name of the keyspace. * @return DataResource instance representing the keyspace. */ public static DataResource keyspace(String keyspace) { return new DataResource(Level.KEYSPACE, keyspace, null); }
/** * Creates a DataResource instance representing a table. * * @param keyspace Name of the keyspace. * @param table Name of the table. * @return DataResource instance representing the column family. */ public static DataResource table(String keyspace, String table) { return new DataResource(Level.TABLE, keyspace, table); }
/** * Creates a DataResource instance representing a column family. * * @param keyspace Name of the keyspace. * @param columnFamily Name of the column family. * @return DataResource instance representing the column family. */ public static DataResource columnFamily(String keyspace, String columnFamily) { return new DataResource(keyspace, columnFamily); }
/** * Creates a DataResource representing a keyspace. * * @param keyspace Name of the keyspace. * @return DataResource instance representing the keyspace. */ public static DataResource keyspace(String keyspace) { return new DataResource(Level.KEYSPACE, keyspace, null); }