|
OpenSDN source code
|
#include <cql_if_impl.h>

Classes | |
| struct | SessionState |
Public Member Functions | |
| CqlIfImpl (EventManager *evm, const std::vector< std::string > &cassandra_ips, int cassandra_port, const std::string &cassandra_user, const std::string &cassandra_password, bool use_ssl, const std::string &ca_certs_path, interface::CassLibrary *cci) | |
| virtual | ~CqlIfImpl () |
| bool | CreateKeyspaceIfNotExistsSync (const std::string &keyspace, const std::string &replication_factor, CassConsistency consistency) |
| bool | UseKeyspaceSync (const std::string &keyspace, CassConsistency consistency) |
| bool | UseKeyspaceSyncOnSchemaSession (const std::string &keyspace, CassConsistency consistency) |
| bool | CreateTableIfNotExistsSync (const GenDb::NewCf &cf, const std::string &compaction_strategy, CassConsistency consistency) |
| bool | CreateIndexIfNotExistsSync (const std::string &cfname, const std::string &column, const std::string &indexname, CassConsistency consistency, const GenDb::ColIndexMode::type index_mode) |
| bool | LocatePrepareInsertIntoTable (const GenDb::NewCf &cf) |
| bool | IsTablePresent (const std::string &table) |
| int | IsTableStatic (const std::string &table) |
| bool | IsTableDynamic (const std::string &table) |
| bool | InsertIntoTableSync (std::auto_ptr< GenDb::ColList > v_columns, CassConsistency consistency) |
| bool | InsertIntoTableAsync (std::auto_ptr< GenDb::ColList > v_columns, CassConsistency consistency, impl::CassAsyncQueryCallback cb) |
| bool | InsertIntoTablePrepareAsync (std::auto_ptr< GenDb::ColList > v_columns, CassConsistency consistency, impl::CassAsyncQueryCallback cb) |
| bool | IsInsertIntoTablePrepareSupported (const std::string &table) |
| bool | SelectFromTableSync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, CassConsistency consistency, GenDb::NewColVec *out) |
| bool | SelectFromTableSync (const std::string &cfname, CassConsistency consistency, GenDb::ColListVec *out) |
| bool | SelectFromTableClusteringKeyRangeSync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, const GenDb::ColumnNameRange &ck_range, CassConsistency consistency, GenDb::NewColVec *out) |
| bool | SelectFromTableClusteringKeyRangeFieldNamesSync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, const GenDb::ColumnNameRange &ck_range, CassConsistency consistency, const GenDb::FieldNamesToReadVec &read_vec, GenDb::NewColVec *out) |
| bool | SelectFromTableClusteringKeyRangeFieldNamesSync (const std::string &cfname, const std::vector< GenDb::DbDataValueVec > &rkeys, const GenDb::ColumnNameRange &ck_range, CassConsistency consistency, const GenDb::FieldNamesToReadVec &read_vec, GenDb::ColListVec *out) |
| bool | SelectFromTableAsync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, CassConsistency consistency, cass::cql::impl::CassAsyncQueryCallback cb) |
| bool | SelectFromTableClusteringKeyRangeAsync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, const GenDb::ColumnNameRange &ck_range, CassConsistency consistency, cass::cql::impl::CassAsyncQueryCallback cb) |
| bool | SelectFromTableClusteringKeyRangeAndIndexValueAsync (const std::string &cfname, const GenDb::DbDataValueVec &rkey, const GenDb::ColumnNameRange &ck_range, const GenDb::WhereIndexInfoVec &where_vec, const GenDb::FieldNamesToReadVec &read_vec, CassConsistency consistency, cass::cql::impl::CassAsyncQueryCallback cb) |
| bool | ConnectSync () |
| bool | ConnectSchemaSync () |
| bool | DisconnectSync () |
| bool | DisconnectSchemaSync () |
| void | SetRequestTimeout (uint32_t timeout_ms) |
| bool | GetMetrics (Metrics *metrics) const |
Private Types | |
| typedef boost::unordered_map< std::string, impl::CassPreparedPtr > | CassPreparedMapType |
Private Member Functions | |
| bool | InsertIntoTableInternal (std::auto_ptr< GenDb::ColList > v_columns, CassConsistency consistency, bool sync, impl::CassAsyncQueryCallback cb) |
| bool | GetPrepareInsertIntoTable (const std::string &table_name, impl::CassPreparedPtr *prepared) const |
| bool | PrepareInsertIntoTableSync (const GenDb::NewCf &cf, impl::CassPreparedPtr *prepared) |
| bool | InsertIntoTablePrepareInternal (std::auto_ptr< GenDb::ColList > v_columns, CassConsistency consistency, bool sync, impl::CassAsyncQueryCallback cb) |
Private Attributes | |
| EventManager * | evm_ |
| interface::CassLibrary * | cci_ |
| impl::CassClusterPtr | cluster_ |
| impl::CassSslPtr | ssl_ |
| impl::CassSessionPtr | session_ |
| impl::CassSessionPtr | schema_session_ |
| tbb::atomic< SessionState::type > | session_state_ |
| tbb::atomic< SessionState::type > | schema_session_state_ |
| std::string | schema_contact_point_ |
| std::string | keyspace_ |
| int | io_thread_count_ |
| CassPreparedMapType | insert_prepared_map_ |
| tbb::mutex | map_mutex_ |
Static Private Attributes | |
| static const char * | kQCreateKeyspaceIfNotExists |
| static const char * | kQUseKeyspace |
| static const char * | kTaskName |
| static const int | kTaskInstance = -1 |
Definition at line 234 of file cql_if_impl.h.
|
private |
Definition at line 354 of file cql_if_impl.h.
| cass::cql::CqlIfImpl::CqlIfImpl | ( | EventManager * | evm, |
| const std::vector< std::string > & | cassandra_ips, | ||
| int | cassandra_port, | ||
| const std::string & | cassandra_user, | ||
| const std::string & | cassandra_password, | ||
| bool | use_ssl, | ||
| const std::string & | ca_certs_path, | ||
| interface::CassLibrary * | cci | ||
| ) |
| bool cass::cql::CqlIfImpl::ConnectSchemaSync | ( | ) |
| bool cass::cql::CqlIfImpl::ConnectSync | ( | ) |
| bool cass::cql::CqlIfImpl::CreateIndexIfNotExistsSync | ( | const std::string & | cfname, |
| const std::string & | column, | ||
| const std::string & | indexname, | ||
| CassConsistency | consistency, | ||
| const GenDb::ColIndexMode::type | index_mode | ||
| ) |
| bool cass::cql::CqlIfImpl::CreateKeyspaceIfNotExistsSync | ( | const std::string & | keyspace, |
| const std::string & | replication_factor, | ||
| CassConsistency | consistency | ||
| ) |
| bool cass::cql::CqlIfImpl::CreateTableIfNotExistsSync | ( | const GenDb::NewCf & | cf, |
| const std::string & | compaction_strategy, | ||
| CassConsistency | consistency | ||
| ) |
| bool cass::cql::CqlIfImpl::DisconnectSchemaSync | ( | ) |
| bool cass::cql::CqlIfImpl::DisconnectSync | ( | ) |
| bool cass::cql::CqlIfImpl::GetMetrics | ( | Metrics * | metrics | ) | const |
|
private |
| bool cass::cql::CqlIfImpl::InsertIntoTableAsync | ( | std::auto_ptr< GenDb::ColList > | v_columns, |
| CassConsistency | consistency, | ||
| impl::CassAsyncQueryCallback | cb | ||
| ) |
|
private |
| bool cass::cql::CqlIfImpl::InsertIntoTablePrepareAsync | ( | std::auto_ptr< GenDb::ColList > | v_columns, |
| CassConsistency | consistency, | ||
| impl::CassAsyncQueryCallback | cb | ||
| ) |
|
private |
| bool cass::cql::CqlIfImpl::InsertIntoTableSync | ( | std::auto_ptr< GenDb::ColList > | v_columns, |
| CassConsistency | consistency | ||
| ) |
| bool cass::cql::CqlIfImpl::IsInsertIntoTablePrepareSupported | ( | const std::string & | table | ) |
| bool cass::cql::CqlIfImpl::IsTableDynamic | ( | const std::string & | table | ) |
| bool cass::cql::CqlIfImpl::IsTablePresent | ( | const std::string & | table | ) |
| int cass::cql::CqlIfImpl::IsTableStatic | ( | const std::string & | table | ) |
| bool cass::cql::CqlIfImpl::LocatePrepareInsertIntoTable | ( | const GenDb::NewCf & | cf | ) |
|
private |
| bool cass::cql::CqlIfImpl::SelectFromTableAsync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| CassConsistency | consistency, | ||
| cass::cql::impl::CassAsyncQueryCallback | cb | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableClusteringKeyRangeAndIndexValueAsync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| const GenDb::ColumnNameRange & | ck_range, | ||
| const GenDb::WhereIndexInfoVec & | where_vec, | ||
| const GenDb::FieldNamesToReadVec & | read_vec, | ||
| CassConsistency | consistency, | ||
| cass::cql::impl::CassAsyncQueryCallback | cb | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableClusteringKeyRangeAsync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| const GenDb::ColumnNameRange & | ck_range, | ||
| CassConsistency | consistency, | ||
| cass::cql::impl::CassAsyncQueryCallback | cb | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableClusteringKeyRangeFieldNamesSync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| const GenDb::ColumnNameRange & | ck_range, | ||
| CassConsistency | consistency, | ||
| const GenDb::FieldNamesToReadVec & | read_vec, | ||
| GenDb::NewColVec * | out | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableClusteringKeyRangeFieldNamesSync | ( | const std::string & | cfname, |
| const std::vector< GenDb::DbDataValueVec > & | rkeys, | ||
| const GenDb::ColumnNameRange & | ck_range, | ||
| CassConsistency | consistency, | ||
| const GenDb::FieldNamesToReadVec & | read_vec, | ||
| GenDb::ColListVec * | out | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableClusteringKeyRangeSync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| const GenDb::ColumnNameRange & | ck_range, | ||
| CassConsistency | consistency, | ||
| GenDb::NewColVec * | out | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableSync | ( | const std::string & | cfname, |
| CassConsistency | consistency, | ||
| GenDb::ColListVec * | out | ||
| ) |
| bool cass::cql::CqlIfImpl::SelectFromTableSync | ( | const std::string & | cfname, |
| const GenDb::DbDataValueVec & | rkey, | ||
| CassConsistency | consistency, | ||
| GenDb::NewColVec * | out | ||
| ) |
| void cass::cql::CqlIfImpl::SetRequestTimeout | ( | uint32_t | timeout_ms | ) |
| bool cass::cql::CqlIfImpl::UseKeyspaceSync | ( | const std::string & | keyspace, |
| CassConsistency | consistency | ||
| ) |
| bool cass::cql::CqlIfImpl::UseKeyspaceSyncOnSchemaSession | ( | const std::string & | keyspace, |
| CassConsistency | consistency | ||
| ) |
|
private |
Definition at line 343 of file cql_if_impl.h.
|
private |
Definition at line 344 of file cql_if_impl.h.
|
private |
Definition at line 342 of file cql_if_impl.h.
|
private |
Definition at line 355 of file cql_if_impl.h.
|
private |
Definition at line 352 of file cql_if_impl.h.
|
private |
Definition at line 351 of file cql_if_impl.h.
|
staticprivate |
Definition at line 329 of file cql_if_impl.h.
|
staticprivate |
Definition at line 330 of file cql_if_impl.h.
|
staticprivate |
Definition at line 332 of file cql_if_impl.h.
|
staticprivate |
Definition at line 331 of file cql_if_impl.h.
|
mutableprivate |
Definition at line 356 of file cql_if_impl.h.
|
private |
Definition at line 350 of file cql_if_impl.h.
|
private |
Definition at line 347 of file cql_if_impl.h.
|
private |
Definition at line 349 of file cql_if_impl.h.
|
private |
Definition at line 346 of file cql_if_impl.h.
|
private |
Definition at line 348 of file cql_if_impl.h.
|
private |
Definition at line 345 of file cql_if_impl.h.