org.apache.cassandra.cli
Class CliClient
java.lang.Object
org.apache.cassandra.cli.CliClient
public class CliClient
- extends java.lang.Object
Constructor Summary |
CliClient(CliSessionState cliSessionState,
org.apache.cassandra.thrift.Cassandra.Client thriftClient)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CliClient
public CliClient(CliSessionState cliSessionState,
org.apache.cassandra.thrift.Cassandra.Client thriftClient)
printBanner
public void printBanner()
executeCLIStatement
public void executeCLIStatement(java.lang.String statement)
throws java.nio.charset.CharacterCodingException,
org.apache.thrift.TException,
org.apache.cassandra.thrift.TimedOutException,
org.apache.cassandra.thrift.NotFoundException,
java.lang.NoSuchFieldException,
org.apache.cassandra.thrift.InvalidRequestException,
org.apache.cassandra.thrift.UnavailableException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
org.apache.cassandra.thrift.SchemaDisagreementException
- Throws:
java.nio.charset.CharacterCodingException
org.apache.thrift.TException
org.apache.cassandra.thrift.TimedOutException
org.apache.cassandra.thrift.NotFoundException
java.lang.NoSuchFieldException
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
org.apache.cassandra.thrift.SchemaDisagreementException
getKSMetaData
public org.apache.cassandra.thrift.KsDef getKSMetaData(java.lang.String keyspace)
throws org.apache.cassandra.thrift.NotFoundException,
org.apache.cassandra.thrift.InvalidRequestException,
org.apache.thrift.TException
- Throws:
org.apache.cassandra.thrift.NotFoundException
org.apache.cassandra.thrift.InvalidRequestException
org.apache.thrift.TException
getKeySpace
public java.lang.String getKeySpace()
setKeySpace
public void setKeySpace(java.lang.String keySpace)
throws org.apache.cassandra.thrift.NotFoundException,
org.apache.cassandra.thrift.InvalidRequestException,
org.apache.thrift.TException
- Throws:
org.apache.cassandra.thrift.NotFoundException
org.apache.cassandra.thrift.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