code: public synchronized ThriftClient getThriftClient()
      {
          if (mode.api != ConnectionAPI.THRIFT_SMART)
              return getSimpleThriftClient();
  
          if (tclient == null)
              tclient = getSmartThriftClient();
  
          return tclient;
      }
docs: Thrift client connection
  @return cassandra client connection