org.apache.cassandra.cli
Class CliClient
java.lang.Object
org.apache.cassandra.cli.CliUserHelp
org.apache.cassandra.cli.CliClient
public class CliClient
- extends CliUserHelp
Nested Class Summary |
static class |
CliClient.Function
Available value conversion functions
Used by convertValueByFunction(Tree functionCall) method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CliClient
public CliClient(CliSessionState cliSessionState,
Cassandra.Client thriftClient)
executeCLIStatement
public void executeCLIStatement(java.lang.String statement)
getKSMetaData
public KsDef getKSMetaData(java.lang.String keyspace)
throws NotFoundException,
InvalidRequestException,
org.apache.thrift.TException
- Throws:
NotFoundException
InvalidRequestException
org.apache.thrift.TException
getKeySpace
public java.lang.String getKeySpace()
setKeySpace
public void setKeySpace(java.lang.String keySpace)
throws NotFoundException,
InvalidRequestException,
org.apache.thrift.TException
- Throws:
NotFoundException
InvalidRequestException
org.apache.thrift.TException
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getTypeByFunction
public static AbstractType getTypeByFunction(java.lang.String functionName)
- Get AbstractType by function name
- Parameters:
functionName
- - name of the function e.g. utf8, integer, long etc.
- Returns:
- AbstractType type corresponding to the function name
getKeyAsBytes
public java.nio.ByteBuffer getKeyAsBytes(java.lang.String columnFamily,
org.antlr.runtime.tree.Tree keyTree)
Copyright © 2011 The Apache Software Foundation