private function insert(Session $session, Statement $statement, $key = null, $value = null, $timestamp = null)
{
// Create the parameters that make up the execution options
$parameters = array();
// Determine if the key and/or value should be added as arguments
if (isset($key) || isset($value)) {
// Create the arguments array for the parameters
$arguments = array();
if (isset($key)) {
$arguments["key"] = $key;
}
if (isset($value)) {
$arguments["value_int"] = $value;
}
// Assign the arguments to the parameters
$parameters["arguments"] = $arguments;
}
// Determine if the timestamp should be added
if (isset($timestamp)) {
$parameters["timestamp"] = $timestamp;
}
// Insert values into the table
$options = new ExecutionOptions($parameters);
$session->execute($statement, $options);
}