CassandraClient::send_get PHP Method

send_get() public method

public send_get ( $keyspace, $key, $column_path, $consistency_level )
    public function send_get($keyspace, $key, $column_path, $consistency_level)
    {
        $args = new cassandra_Cassandra_get_args();
        $args->keyspace = $keyspace;
        $args->key = $key;
        $args->column_path = $column_path;
        $args->consistency_level = $consistency_level;
        $bin_accel = $this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_write_binary');
        if ($bin_accel) {
            thrift_protocol_write_binary($this->output_, 'get', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
        } else {
            $this->output_->writeMessageBegin('get', TMessageType::CALL, $this->seqid_);
            $args->write($this->output_);
            $this->output_->writeMessageEnd();
            $this->output_->getTransport()->flush();
        }
    }