/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param tableList * list of tables from different keyspace in the form of ks1.cf1 ks2.cf2 */ public void takeMultipleTableSnapshot(String tag, String... tableList) throws IOException { takeMultipleTableSnapshot(tag, false, tableList); }
/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param tableList * list of tables from different keyspace in the form of ks1.cf1 ks2.cf2 */ public void takeMultipleTableSnapshot(String tag, String... tableList) throws IOException { takeMultipleTableSnapshot(tag, false, tableList); }
/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param tableList * list of tables from different keyspace in the form of ks1.cf1 ks2.cf2 */ public void takeMultipleTableSnapshot(String tag, String... tableList) throws IOException { takeMultipleTableSnapshot(tag, false, tableList); }
/** * Takes the snapshot of a specific table. A snapshot name must be * specified. * * @param keyspaceName * the keyspace which holds the specified table * @param tableName * the table to snapshot * @param tag * the tag given to the snapshot; may not be null or empty */ public void takeTableSnapshot(String keyspaceName, String tableName, String tag) throws IOException { takeMultipleTableSnapshot(tag, false, keyspaceName + "." + tableName); }
/** * Takes the snapshot of a specific table. A snapshot name must be * specified. * * @param keyspaceName * the keyspace which holds the specified table * @param tableName * the table to snapshot * @param tag * the tag given to the snapshot; may not be null or empty */ public void takeTableSnapshot(String keyspaceName, String tableName, String tag) throws IOException { takeMultipleTableSnapshot(tag, false, keyspaceName + "." + tableName); }
/** * Takes the snapshot of a specific table. A snapshot name must be * specified. * * @param keyspaceName * the keyspace which holds the specified table * @param tableName * the table to snapshot * @param tag * the tag given to the snapshot; may not be null or empty */ public void takeTableSnapshot(String keyspaceName, String tableName, String tag) throws IOException { takeMultipleTableSnapshot(tag, false, keyspaceName + "." + tableName); }
/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param options * Map of options (skipFlush is the only supported option for now) * @param entities * list of keyspaces / tables in the form of empty | ks1 ks2 ... | ks1.cf1,ks2.cf2,... */ @Override public void takeSnapshot(String tag, Map<String, String> options, String... entities) throws IOException { boolean skipFlush = Boolean.parseBoolean(options.getOrDefault("skipFlush", "false")); if (entities != null && entities.length > 0 && entities[0].contains(".")) { takeMultipleTableSnapshot(tag, skipFlush, entities); } else { takeSnapshot(tag, skipFlush, entities); } }
/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param options * Map of options (skipFlush is the only supported option for now) * @param entities * list of keyspaces / tables in the form of empty | ks1 ks2 ... | ks1.cf1,ks2.cf2,... */ @Override public void takeSnapshot(String tag, Map<String, String> options, String... entities) throws IOException { boolean skipFlush = Boolean.parseBoolean(options.getOrDefault("skipFlush", "false")); if (entities != null && entities.length > 0 && entities[0].contains(".")) { takeMultipleTableSnapshot(tag, skipFlush, entities); } else { takeSnapshot(tag, skipFlush, entities); } }
/** * Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified. * * @param tag * the tag given to the snapshot; may not be null or empty * @param options * Map of options (skipFlush is the only supported option for now) * @param entities * list of keyspaces / tables in the form of empty | ks1 ks2 ... | ks1.cf1,ks2.cf2,... */ @Override public void takeSnapshot(String tag, Map<String, String> options, String... entities) throws IOException { boolean skipFlush = Boolean.parseBoolean(options.getOrDefault("skipFlush", "false")); if (entities != null && entities.length > 0 && entities[0].contains(".")) { takeMultipleTableSnapshot(tag, skipFlush, entities); } else { takeSnapshot(tag, skipFlush, entities); } }