This project has retired. For details please refer to its Attic page.
LensDatabaseCommands (Lens 2.0.1-beta-incubating API)

org.apache.lens.cli.commands
Class LensDatabaseCommands

java.lang.Object
  extended by org.apache.lens.cli.commands.BaseLensCommand
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.lens.cli.commands.BaseLensCommand
LOG
 
Constructor Summary
LensDatabaseCommands()
           
 
Method Summary
 String createDatabase(String database, boolean ignore)
          Creates the database.
 String dropDatabase(String database)
          Drop database.
 String showAllDatabases()
          Show all databases.
 String switchDatabase(String database)
          Switch database.
 
Methods inherited from class org.apache.lens.cli.commands.BaseLensCommand
formatJson, getClient, getClientWrapper, setClient
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensDatabaseCommands

public LensDatabaseCommands()
Method Detail

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 database
ignore - 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.