Class TracingCassandraClient

  • All Implemented Interfaces:
    com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient, CassandraClient, Closeable, AutoCloseable

    public class TracingCassandraClient
    extends Object
    implements com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void batch_mutate​(String kvsMethodName, Map<ByteBuffer,​Map<String,​List<org.apache.cassandra.thrift.Mutation>>> mutation_map, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      org.apache.cassandra.thrift.CASResult cas​(com.palantir.atlasdb.keyvalue.api.TableReference tableReference, ByteBuffer key, List<org.apache.cassandra.thrift.Column> expected, List<org.apache.cassandra.thrift.Column> updates, org.apache.cassandra.thrift.ConsistencyLevel serial_consistency_level, org.apache.cassandra.thrift.ConsistencyLevel commit_consistency_level)  
      CassandraClient delegate()  
      org.apache.cassandra.thrift.CqlResult execute_cql3_query​(CqlQuery cqlQuery, org.apache.cassandra.thrift.Compression compression, org.apache.cassandra.thrift.ConsistencyLevel consistency)  
      org.apache.cassandra.thrift.ColumnOrSuperColumn get​(com.palantir.atlasdb.keyvalue.api.TableReference tableReference, ByteBuffer key, byte[] column, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      List<org.apache.cassandra.thrift.KeySlice> get_range_slices​(String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.KeyRange range, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      Map<ByteBuffer,​List<List<org.apache.cassandra.thrift.ColumnOrSuperColumn>>> multiget_multislice​(String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, List<org.apache.cassandra.thrift.KeyPredicate> keyPredicates, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      Map<ByteBuffer,​List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> multiget_slice​(String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, List<ByteBuffer> keys, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      void remove​(String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, byte[] row, long timestamp, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)  
      • Methods inherited from interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient

        close, describe_keyspace, describe_keyspaces, describe_partitioner, describe_ring, describe_schema_versions, describe_snitch, describe_version, execute_prepared_cql3_query, getInputProtocol, getOutputProtocol, isValid, prepare_cql3_query, put_unless_exists, system_add_keyspace, system_drop_column_family, system_update_column_family, system_update_keyspace, trace_next_query, truncate
    • Constructor Detail

      • TracingCassandraClient

        public TracingCassandraClient​(CassandraClient client)
    • Method Detail

      • delegate

        public CassandraClient delegate()
        Specified by:
        delegate in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
      • multiget_slice

        public Map<ByteBuffer,​List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> multiget_slice​(String kvsMethodName,
                                                                                                          com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                                                                                                          List<ByteBuffer> keys,
                                                                                                          org.apache.cassandra.thrift.SlicePredicate predicate,
                                                                                                          org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                                                                                                   throws org.apache.cassandra.thrift.InvalidRequestException,
                                                                                                          org.apache.cassandra.thrift.UnavailableException,
                                                                                                          org.apache.cassandra.thrift.TimedOutException,
                                                                                                          org.apache.thrift.TException
        Specified by:
        multiget_slice in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        multiget_slice in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • multiget_multislice

        public Map<ByteBuffer,​List<List<org.apache.cassandra.thrift.ColumnOrSuperColumn>>> multiget_multislice​(String kvsMethodName,
                                                                                                                     com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                                                                                                                     List<org.apache.cassandra.thrift.KeyPredicate> keyPredicates,
                                                                                                                     org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                                                                                                              throws org.apache.cassandra.thrift.InvalidRequestException,
                                                                                                                     org.apache.cassandra.thrift.UnavailableException,
                                                                                                                     org.apache.cassandra.thrift.TimedOutException,
                                                                                                                     org.apache.thrift.TException
        Specified by:
        multiget_multislice in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        multiget_multislice in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • get_range_slices

        public List<org.apache.cassandra.thrift.KeySlice> get_range_slices​(String kvsMethodName,
                                                                           com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                                                                           org.apache.cassandra.thrift.SlicePredicate predicate,
                                                                           org.apache.cassandra.thrift.KeyRange range,
                                                                           org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                                                                    throws org.apache.cassandra.thrift.InvalidRequestException,
                                                                           org.apache.cassandra.thrift.UnavailableException,
                                                                           org.apache.cassandra.thrift.TimedOutException,
                                                                           org.apache.thrift.TException
        Specified by:
        get_range_slices in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        get_range_slices in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • remove

        public void remove​(String kvsMethodName,
                           com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                           byte[] row,
                           long timestamp,
                           org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                    throws org.apache.cassandra.thrift.InvalidRequestException,
                           org.apache.cassandra.thrift.UnavailableException,
                           org.apache.cassandra.thrift.TimedOutException,
                           org.apache.thrift.TException
        Specified by:
        remove in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        remove in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • batch_mutate

        public void batch_mutate​(String kvsMethodName,
                                 Map<ByteBuffer,​Map<String,​List<org.apache.cassandra.thrift.Mutation>>> mutation_map,
                                 org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                          throws org.apache.cassandra.thrift.InvalidRequestException,
                                 org.apache.cassandra.thrift.UnavailableException,
                                 org.apache.cassandra.thrift.TimedOutException,
                                 org.apache.thrift.TException
        Specified by:
        batch_mutate in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        batch_mutate in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • get

        public org.apache.cassandra.thrift.ColumnOrSuperColumn get​(com.palantir.atlasdb.keyvalue.api.TableReference tableReference,
                                                                   ByteBuffer key,
                                                                   byte[] column,
                                                                   org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
                                                            throws org.apache.cassandra.thrift.InvalidRequestException,
                                                                   org.apache.cassandra.thrift.NotFoundException,
                                                                   org.apache.cassandra.thrift.UnavailableException,
                                                                   org.apache.cassandra.thrift.TimedOutException,
                                                                   org.apache.thrift.TException
        Specified by:
        get in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        get in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.NotFoundException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • cas

        public org.apache.cassandra.thrift.CASResult cas​(com.palantir.atlasdb.keyvalue.api.TableReference tableReference,
                                                         ByteBuffer key,
                                                         List<org.apache.cassandra.thrift.Column> expected,
                                                         List<org.apache.cassandra.thrift.Column> updates,
                                                         org.apache.cassandra.thrift.ConsistencyLevel serial_consistency_level,
                                                         org.apache.cassandra.thrift.ConsistencyLevel commit_consistency_level)
                                                  throws org.apache.cassandra.thrift.InvalidRequestException,
                                                         org.apache.cassandra.thrift.UnavailableException,
                                                         org.apache.cassandra.thrift.TimedOutException,
                                                         org.apache.thrift.TException
        Specified by:
        cas in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        cas in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.thrift.TException
      • execute_cql3_query

        public org.apache.cassandra.thrift.CqlResult execute_cql3_query​(CqlQuery cqlQuery,
                                                                        org.apache.cassandra.thrift.Compression compression,
                                                                        org.apache.cassandra.thrift.ConsistencyLevel consistency)
                                                                 throws org.apache.cassandra.thrift.InvalidRequestException,
                                                                        org.apache.cassandra.thrift.UnavailableException,
                                                                        org.apache.cassandra.thrift.TimedOutException,
                                                                        org.apache.cassandra.thrift.SchemaDisagreementException,
                                                                        org.apache.thrift.TException
        Specified by:
        execute_cql3_query in interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
        Specified by:
        execute_cql3_query in interface CassandraClient
        Throws:
        org.apache.cassandra.thrift.InvalidRequestException
        org.apache.cassandra.thrift.UnavailableException
        org.apache.cassandra.thrift.TimedOutException
        org.apache.cassandra.thrift.SchemaDisagreementException
        org.apache.thrift.TException