public class CliClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CliClient.ColumnFamilyArgument |
static class |
CliClient.Function
Available value conversion functions
Used by convertValueByFunction(Tree functionCall) method
|
| Constructor and Description |
|---|
CliClient(CliSessionState cliSessionState,
org.apache.cassandra.thrift.Cassandra.Client thriftClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeCLIStatement(java.lang.String statement) |
java.nio.ByteBuffer |
getKeyAsBytes(java.lang.String columnFamily,
org.antlr.runtime.tree.Tree keyTree) |
java.lang.String |
getKeySpace() |
org.apache.cassandra.thrift.KsDef |
getKSMetaData(java.lang.String keyspace) |
static AbstractType<?> |
getTypeByFunction(java.lang.String functionName)
Get AbstractType by function name
|
java.lang.String |
getUsername() |
static java.util.Map<java.lang.String,org.apache.cassandra.thrift.CfDef> |
loadCql3Defs(org.apache.cassandra.thrift.Cassandra.Client thriftClient,
org.apache.cassandra.thrift.KsDef thriftKs) |
static java.util.Map<java.lang.String,org.apache.cassandra.thrift.CfDef> |
loadCql3DefsUnchecked(org.apache.cassandra.thrift.Cassandra.Client thriftClient,
org.apache.cassandra.thrift.KsDef thriftKs) |
void |
printBanner() |
void |
setKeySpace(java.lang.String keySpace) |
void |
setUsername(java.lang.String username) |
public CliClient(CliSessionState cliSessionState, org.apache.cassandra.thrift.Cassandra.Client thriftClient)
public void printBanner()
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.nio.charset.CharacterCodingExceptionorg.apache.thrift.TExceptionorg.apache.cassandra.thrift.TimedOutExceptionorg.apache.cassandra.thrift.NotFoundExceptionjava.lang.NoSuchFieldExceptionorg.apache.cassandra.thrift.InvalidRequestExceptionorg.apache.cassandra.thrift.UnavailableExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic 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
org.apache.cassandra.thrift.NotFoundExceptionorg.apache.cassandra.thrift.InvalidRequestExceptionorg.apache.thrift.TExceptionpublic static java.util.Map<java.lang.String,org.apache.cassandra.thrift.CfDef> loadCql3Defs(org.apache.cassandra.thrift.Cassandra.Client thriftClient,
org.apache.cassandra.thrift.KsDef thriftKs)
public static java.util.Map<java.lang.String,org.apache.cassandra.thrift.CfDef> loadCql3DefsUnchecked(org.apache.cassandra.thrift.Cassandra.Client thriftClient,
org.apache.cassandra.thrift.KsDef thriftKs)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getKeySpace()
public void setKeySpace(java.lang.String keySpace)
throws org.apache.cassandra.thrift.NotFoundException,
org.apache.cassandra.thrift.InvalidRequestException,
org.apache.thrift.TException
org.apache.cassandra.thrift.NotFoundExceptionorg.apache.cassandra.thrift.InvalidRequestExceptionorg.apache.thrift.TExceptionpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
public static AbstractType<?> getTypeByFunction(java.lang.String functionName)
functionName - - name of the function e.g. utf8, integer, long etc.public java.nio.ByteBuffer getKeyAsBytes(java.lang.String columnFamily,
org.antlr.runtime.tree.Tree keyTree)
Copyright © 2014 The Apache Software Foundation