Files
scylladb/query.cc
Gleb Natapov b7155ad862 pass partitions_ranges separately from from read_command
partitions_ranges will be manipulated upon to be split for different
destination, so provide it separately from read_command to not copy the
later for each destination.
2015-06-11 15:18:07 +03:00

28 lines
768 B
C++

/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
#include "query-request.hh"
#include "to_string.hh"
#include "bytes.hh"
namespace query {
std::ostream& operator<<(std::ostream& out, const partition_slice& ps) {
return out << "{"
<< "regular_cols=[" << join(", ", ps.regular_columns) << "]"
<< ", static_cols=[" << join(", ", ps.static_columns) << "]"
<< ", rows=[" << join(", ", ps.row_ranges) << "]"
<< ", options=" << sprint("%x", ps.options.mask()) // FIXME: pretty print options
<< "}";
}
std::ostream& operator<<(std::ostream& out, const read_command& r) {
return out << "read_command{"
<< "cf_id=" << r.cf_id
<< ", slice=" << r.slice << ""
<< ", limit=" << r.row_limit << "}";
}
}