org.apache.lens.cli.commands
Class LensDatabaseCommands
java.lang.Object
org.apache.lens.cli.commands.BaseLensCommand
org.apache.lens.cli.commands.LensDatabaseCommands
- All Implemented Interfaces:
- org.springframework.shell.core.CommandMarker
@Component
public class LensDatabaseCommands
- extends BaseLensCommand
- implements org.springframework.shell.core.CommandMarker
The Class LensDatabaseCommands.
LensDatabaseCommands
public LensDatabaseCommands()
showAllDatabases
public String showAllDatabases()
- Show all databases.
- Returns:
- the string
switchDatabase
public String switchDatabase(String database)
- Switch database.
- Parameters:
database
- the database
- Returns:
- the string
createDatabase
public String createDatabase(String database,
boolean ignore)
- Creates the database.
- Parameters:
database
- the databaseignore
- the ignore
- Returns:
- the string
dropDatabase
public String dropDatabase(String database)
- Drop database.
- Parameters:
database
- the database
- Returns:
- the string
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.