org.apache.cassandra.cli
Class CliClient
java.lang.Object
org.apache.cassandra.cli.CliClient
public class CliClient
- extends java.lang.Object
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)
printBanner
public void printBanner()
executeCLIStatement
public void executeCLIStatement(java.lang.String statement)
throws java.nio.charset.CharacterCodingException,
org.apache.thrift.TException,
TimedOutException,
NotFoundException,
java.lang.NoSuchFieldException,
InvalidRequestException,
UnavailableException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
SchemaDisagreementException
- Throws:
java.nio.charset.CharacterCodingException
org.apache.thrift.TException
TimedOutException
NotFoundException
java.lang.NoSuchFieldException
InvalidRequestException
UnavailableException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
SchemaDisagreementException
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 © 2012 The Apache Software Foundation