public String dropPartitions(String tableName, String storageName, String filter) { return doDropPartitions(tableName, storageName, filter).toString().toLowerCase(); }
public String dropStorage(String tableName, String storageName) { return doDropStorage(tableName, storageName).toString().toLowerCase(); }
public String dropStorage(String tableName, String storageName) { return doDropStorage(tableName, storageName).toString().toLowerCase(); }
public String dropAllStorages(String tableName) { return doDropAllStorages(tableName).toString(); }
public String dropAllStorages(String tableName) { return doDropAllStorages(tableName).toString(); }
public String dropPartitions(String tableName, String storageName, String filter) { return doDropPartitions(tableName, storageName, filter).toString().toLowerCase(); }
public String dropPartitions(String tableName, String storageName, String filter, String updatePeriod) { return doDropPartitions(tableName, storageName, filter, updatePeriod).toString().toLowerCase(); }
public String updatePartitions(String tableName, String storageName, String path) { return doUpdatePartitions(tableName, storageName, getValidPath(new File(path), false, true)).toString().toLowerCase(); }
public String addPartitions(String tableName, String storageName, String path) { return doAddPartitions(tableName, storageName, getValidPath(new File(path), false, true)).toString().toLowerCase(); }
public String addPartitions(String tableName, String storageName, String path) { return doAddPartitions(tableName, storageName, getValidPath(new File(path), false, true)).toString().toLowerCase(); }
public String updatePartitions(String tableName, String storageName, String path) { return doUpdatePartitions(tableName, storageName, getValidPath(new File(path), false, true)).toString().toLowerCase(); }
public String updatePartition(String tableName, String storageName, File path) { return doUpdatePartition(tableName, storageName, getValidPath(path, false, true)).toString() .toLowerCase(); }
public String addStorage(String tableName, File path) { return doAddStorage(tableName, getValidPath(path, false, true)).toString().toLowerCase(); }
public String addPartition(String tableName, String storageName, File path) { return doAddPartition(tableName, storageName, getValidPath(path, false, true)).toString().toLowerCase(); }
public String addPartition(String tableName, String storageName, File path) { return doAddPartition(tableName, storageName, getValidPath(path, false, true)).toString().toLowerCase(); }
public String updatePartition(String tableName, String storageName, File path) { return doUpdatePartition(tableName, storageName, getValidPath(path, false, true)).toString() .toLowerCase(); }
public String addStorage(String tableName, File path) { return doAddStorage(tableName, getValidPath(path, false, true)).toString().toLowerCase(); }
/** * Creates the database. * * @param database the database * @param ignoreIfExists the ignore * @return the string */ @CliCommand(value = "create database", help = "create a database with specified name. if <ignore-if-exists> is true, " + "create will not be tried if already exists. Default is false") public String createDatabase( @CliOption(key = {"", "db"}, mandatory = true, help = "<database-name>") String database, @CliOption(key = {"ignoreIfExists"}, mandatory = false, unspecifiedDefaultValue = "false", help = "<ignore-if-exists>") boolean ignoreIfExists) { // first arg is not file. LensCRUDCommand.create expects file path as first arg. So calling method directly here. return doCreate(database, ignoreIfExists).toString().toLowerCase(); }
/** * Creates the database. * * @param database the database * @param ignoreIfExists the ignore * @return the string */ @CliCommand(value = "create database", help = "create a database with specified name. if <ignore-if-exists> is true, " + "create will not be tried if already exists. Default is false") public String createDatabase( @CliOption(key = {"", "db"}, mandatory = true, help = "<database-name>") String database, @CliOption(key = {"ignoreIfExists"}, mandatory = false, unspecifiedDefaultValue = "false", help = "<ignore-if-exists>") boolean ignoreIfExists) { // first arg is not file. LensCRUDCommand.create expects file path as first arg. So calling method directly here. return doCreate(database, ignoreIfExists).toString().toLowerCase(); }