com.nhncorp.neptune.client
Class Shell

java.lang.Object
  extended by com.nhncorp.neptune.client.Shell

public class Shell
extends java.lang.Object

Neptune shell.

 CLEAR;
 
 EXIT;
 
 SELECT <*|colum_name1, ...> 
  FROM 
  [WHERE rowkey=''] 
  [AND column=''] 
  [TABLET_ROWS=# rows each tablet] 
  [TIMESTAMP , 
 
 TRUNCATE COLUMN  
   FROM ;
 
 DROP table_name;
 
 DESC ;
 
 REPORT TABLE  [tablet ]
 
 
 DELETE * | ( (column_name, 'column_key') [, (column_name, 'column_key') ...] ) 
   FROM 
  WHERE rowkey='row_key';
 
 SHOW TABLES;
 
 INSERT INTO  
        ('column_name1'[, 'column_name2', ...]) 
 VALUES ( ('key1', 'val1')[, ('key1', 'val1'), ...]) 
  WHERE rowkey='row_key';
 
 CREATE TABLE  
   (column_name1[, column_name2, ...]);
 

Author:
김형준

Field Summary
static NConfiguration conf
           
static boolean DEFAULT_BELL_ENABLED
           
static java.lang.String encoding
           
static java.lang.String SHELL_VERSION
           
 
Constructor Summary
Shell()
           
 
Method Summary
static java.lang.String executeTime(boolean watch, long start, long end)
          return a string of code execution time.
static void main(java.lang.String[] args)
           
 void printShellVersion()
          Print out the program version.
 void runShell()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHELL_VERSION

public static java.lang.String SHELL_VERSION

DEFAULT_BELL_ENABLED

public static final boolean DEFAULT_BELL_ENABLED
See Also:
Constant Field Values

encoding

public static java.lang.String encoding

conf

public static NConfiguration conf
Constructor Detail

Shell

public Shell()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

runShell

public void runShell()
              throws java.lang.Exception
Throws:
java.lang.Exception

printShellVersion

public void printShellVersion()
Print out the program version.


executeTime

public static java.lang.String executeTime(boolean watch,
                                           long start,
                                           long end)
return a string of code execution time.