com.netflix.astyanax.thrift
Class ThriftCql3Statement

java.lang.Object
  extended by com.netflix.astyanax.thrift.ThriftCql3Statement
All Implemented Interfaces:
com.netflix.astyanax.cql.CqlStatement, com.netflix.astyanax.Execution<com.netflix.astyanax.cql.CqlStatementResult>

public class ThriftCql3Statement
extends java.lang.Object
implements com.netflix.astyanax.cql.CqlStatement


Constructor Summary
ThriftCql3Statement(ThriftKeyspaceImpl keyspace)
           
 
Method Summary
 com.netflix.astyanax.cql.CqlPreparedStatement asPreparedStatement()
           
 com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.cql.CqlStatementResult> execute()
           
 com.google.common.util.concurrent.ListenableFuture<com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.cql.CqlStatementResult>> executeAsync()
           
 com.netflix.astyanax.cql.CqlStatement withCompression(java.lang.Boolean flag)
           
 com.netflix.astyanax.cql.CqlStatement withConsistencyLevel(com.netflix.astyanax.model.ConsistencyLevel cl)
           
 com.netflix.astyanax.cql.CqlStatement withCql(java.lang.String cql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftCql3Statement

public ThriftCql3Statement(ThriftKeyspaceImpl keyspace)
Method Detail

execute

public com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.cql.CqlStatementResult> execute()
                                                                                                         throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
Specified by:
execute in interface com.netflix.astyanax.Execution<com.netflix.astyanax.cql.CqlStatementResult>
Throws:
com.netflix.astyanax.connectionpool.exceptions.ConnectionException

executeAsync

public com.google.common.util.concurrent.ListenableFuture<com.netflix.astyanax.connectionpool.OperationResult<com.netflix.astyanax.cql.CqlStatementResult>> executeAsync()
                                                                                                                                                                  throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
Specified by:
executeAsync in interface com.netflix.astyanax.Execution<com.netflix.astyanax.cql.CqlStatementResult>
Throws:
com.netflix.astyanax.connectionpool.exceptions.ConnectionException

withCql

public com.netflix.astyanax.cql.CqlStatement withCql(java.lang.String cql)
Specified by:
withCql in interface com.netflix.astyanax.cql.CqlStatement

withCompression

public com.netflix.astyanax.cql.CqlStatement withCompression(java.lang.Boolean flag)

withConsistencyLevel

public com.netflix.astyanax.cql.CqlStatement withConsistencyLevel(com.netflix.astyanax.model.ConsistencyLevel cl)
Specified by:
withConsistencyLevel in interface com.netflix.astyanax.cql.CqlStatement

asPreparedStatement

public com.netflix.astyanax.cql.CqlPreparedStatement asPreparedStatement()
Specified by:
asPreparedStatement in interface com.netflix.astyanax.cql.CqlStatement