@Test public void should_describe_table() throws Exception { String query = "DESCRIBE TABLE live_data.complex_table;"; final String expected = reformatHtml( readTestResource("/scalate/DescribeTable_live_data_complex_table.html")); final InterpreterResult actual = interpreter.interpret(query, intrContext); assertThat(actual.code()).isEqualTo(Code.SUCCESS); assertThat(reformatHtml(actual.message())).isEqualTo(expected); }
@Override public InterpreterResult interpret(String st, InterpreterContext context) { return helper.interpret(session, st, context); }
CassandraInterpreter extends Interpreter { @Override public InterpreterResult interpret(String st, InterpreterContext context) { return helper.interpret(session, st, context); } }
CassandraInterpreter extends Interpreter { @Override public InterpreterResult interpret(String st, InterpreterContext context) { return helper.interpret(session, st, context); } CassandraInterpreter(Properties properties); }
CassandraInterpreter extends Interpreter { @Override public InterpreterResult interpret(String st, InterpreterContext context) { return helper.interpret(session, st, context); } CassandraInterpreter(Properties properties); @Override void open(); @Override void close(); @Override InterpreterResult interpret(String st, InterpreterContext context); @Override void cancel(InterpreterContext context); @Override FormType getFormType(); @Override int getProgress(InterpreterContext context); @Override List<String> completion(String buf, int cursor); @Override Scheduler getScheduler(); @Override void destroy(); }
CassandraInterpreter extends Interpreter { @Override public InterpreterResult interpret(String st, InterpreterContext context) { return helper.interpret(session, st, context); } CassandraInterpreter(Properties properties); @Override void open(); @Override void close(); @Override InterpreterResult interpret(String st, InterpreterContext context); @Override void cancel(InterpreterContext context); @Override FormType getFormType(); @Override int getProgress(InterpreterContext context); @Override List<String> completion(String buf, int cursor); @Override Scheduler getScheduler(); @Override void destroy(); static final String CASSANDRA_INTERPRETER_PARALLELISM; static final String CASSANDRA_HOSTS; static final String CASSANDRA_PORT; static final String CASSANDRA_PROTOCOL_VERSION; static final String CASSANDRA_CLUSTER_NAME; static final String CASSANDRA_KEYSPACE_NAME; static final String CASSANDRA_COMPRESSION_PROTOCOL; static final String CASSANDRA_CREDENTIALS_USERNAME; static final String CASSANDRA_CREDENTIALS_PASSWORD; static final String CASSANDRA_LOAD_BALANCING_POLICY; static final String CASSANDRA_RETRY_POLICY; static final String CASSANDRA_RECONNECTION_POLICY; static final String CASSANDRA_SPECULATIVE_EXECUTION_POLICY; static final String CASSANDRA_MAX_SCHEMA_AGREEMENT_WAIT_SECONDS; static final String CASSANDRA_POOLING_NEW_CONNECTION_THRESHOLD_LOCAL; static final String CASSANDRA_POOLING_NEW_CONNECTION_THRESHOLD_REMOTE; static final String CASSANDRA_POOLING_MAX_CONNECTION_PER_HOST_LOCAL; static final String CASSANDRA_POOLING_MAX_CONNECTION_PER_HOST_REMOTE; static final String CASSANDRA_POOLING_CORE_CONNECTION_PER_HOST_LOCAL; static final String CASSANDRA_POOLING_CORE_CONNECTION_PER_HOST_REMOTE; static final String CASSANDRA_POOLING_MAX_REQUESTS_PER_CONNECTION_LOCAL; static final String CASSANDRA_POOLING_MAX_REQUESTS_PER_CONNECTION_REMOTE; static final String CASSANDRA_POOLING_IDLE_TIMEOUT_SECONDS; static final String CASSANDRA_POOLING_POOL_TIMEOUT_MILLIS; static final String CASSANDRA_POOLING_HEARTBEAT_INTERVAL_SECONDS; static final String CASSANDRA_QUERY_DEFAULT_CONSISTENCY; static final String CASSANDRA_QUERY_DEFAULT_SERIAL_CONSISTENCY; static final String CASSANDRA_QUERY_DEFAULT_FETCH_SIZE; static final String CASSANDRA_QUERY_DEFAULT_IDEMPOTENCE; static final String CASSANDRA_SOCKET_CONNECTION_TIMEOUT_MILLIS; static final String CASSANDRA_SOCKET_KEEP_ALIVE; static final String CASSANDRA_SOCKET_READ_TIMEOUT_MILLIS; static final String CASSANDRA_SOCKET_RECEIVED_BUFFER_SIZE_BYTES; static final String CASSANDRA_SOCKET_REUSE_ADDRESS; static final String CASSANDRA_SOCKET_SEND_BUFFER_SIZE_BYTES; static final String CASSANDRA_SOCKET_SO_LINGER; static final String CASSANDRA_SOCKET_TCP_NO_DELAY; static final String DEFAULT_HOST; static final String DEFAULT_PORT; static final String DEFAULT_CLUSTER; static final String DEFAULT_KEYSPACE; static final String DEFAULT_PROTOCOL_VERSION; static final String DEFAULT_COMPRESSION; static final String DEFAULT_CREDENTIAL; static final String DEFAULT_POLICY; static final String DEFAULT_PARALLELISM; static final String DEFAULT_IDLE_TIMEOUT; static final String DEFAULT_POOL_TIMEOUT; static final String DEFAULT_HEARTBEAT_INTERVAL; static final String DEFAULT_CONSISTENCY; static final String DEFAULT_SERIAL_CONSISTENCY; static final String DEFAULT_FETCH_SIZE; static final String DEFAULT_CONNECTION_TIMEOUT; static final String DEFAULT_READ_TIMEOUT; static final String DEFAULT_TCP_NO_DELAY; static final String DOWNGRADING_CONSISTENCY_RETRY; static final String FALLTHROUGH_RETRY; static final String LOGGING_DEFAULT_RETRY; static final String LOGGING_DOWNGRADING_RETRY; static final String LOGGING_FALLTHROUGH_RETRY; static final List<String> NO_COMPLETION; }