CassandraClient::send_insert PHP Method

send_insert() public method

public send_insert ( $keyspace, $key, $column_path, $value, $timestamp, $consistency_level )
    public function send_insert($keyspace, $key, $column_path, $value, $timestamp, $consistency_level)
    {
        $args = new cassandra_Cassandra_insert_args();
        $args->keyspace = $keyspace;
        $args->key = $key;
        $args->column_path = $column_path;
        $args->value = $value;
        $args->timestamp = $timestamp;
        $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_, 'insert', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
        } else {
            $this->output_->writeMessageBegin('insert', TMessageType::CALL, $this->seqid_);
            $args->write($this->output_);
            $this->output_->writeMessageEnd();
            $this->output_->getTransport()->flush();
        }
    }