header: De-bloat schema.hh
The header sits in many other headers, but there's a handy schema_fwd.hh that's tiny and contains needed declarations for other headers. So replace shema.hh with schema_fwd.hh in most of the headers (and remove completely from some). Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Message-Id: <20200303102050.18462-1-xemul@scylladb.com>
This commit is contained in:
committed by
Tomasz Grabiec
parent
f105f43008
commit
4fa12f2fb8
@@ -24,7 +24,7 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include "types.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "keys.hh"
|
||||
#include "rjson.hh"
|
||||
#include "utils/big_decimal.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "bytes.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "database_fwd.hh"
|
||||
#include "mutation_partition_visitor.hh"
|
||||
#include "mutation_partition_serializer.hh"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include "keys.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "range.hh"
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "position_in_partition.hh"
|
||||
#include <boost/icl/interval_set.hpp>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "query-request.hh"
|
||||
|
||||
namespace query {
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "collection_mutation.hh"
|
||||
|
||||
class atomic_cell;
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "cql3/selection/selectable.hh"
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "operator.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "column_identifier.hh"
|
||||
#include "variable_specifications.hh"
|
||||
#include "restrictions/restriction.hh"
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#include "cql3/query_options.hh"
|
||||
#include "types.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "index/secondary_index_manager.hh"
|
||||
#include "restriction.hh"
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "cartesian_product.hh"
|
||||
#include "cql3/restrictions/primary_key_restrictions.hh"
|
||||
#include "cql3/restrictions/single_column_restrictions.hh"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "cql3/term.hh"
|
||||
#include "cql3/abstract_marker.hh"
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "to_string.hh"
|
||||
#include "exceptions/exceptions.hh"
|
||||
#include "keys.hh"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "cql3/restrictions/restrictions.hh"
|
||||
#include "cql3/restrictions/single_column_restriction.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "types.hh"
|
||||
|
||||
namespace cql3 {
|
||||
|
||||
@@ -42,8 +42,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include "to_string.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "cql3/restrictions/restrictions.hh"
|
||||
#include "cql3/restrictions/primary_key_restrictions.hh"
|
||||
#include "cql3/restrictions/single_column_restrictions.hh"
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#include <vector>
|
||||
#include "enum_set.hh"
|
||||
#include "service/pager/paging_state.hh"
|
||||
#include "schema.hh"
|
||||
|
||||
#include "query-result-reader.hh"
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
#include "cql3/selection/selector.hh"
|
||||
#include "cql3/cql3_type.hh"
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "bytes.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "query-result-reader.hh"
|
||||
#include "cql3/column_specification.hh"
|
||||
#include "exceptions/exceptions.hh"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <vector>
|
||||
#include "cql3/assignment_testable.hh"
|
||||
#include "types.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "counters.hh"
|
||||
|
||||
namespace cql3 {
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
|
||||
#include "cql3/statements/property_definitions.hh"
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_builder.hh"
|
||||
#include "compaction_strategy.hh"
|
||||
#include "utils/UUID.hh"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "cql3/cql3_type.hh"
|
||||
|
||||
#include "service/migration_manager.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "gc_clock.hh"
|
||||
#include "timestamp.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "atomic_cell.hh"
|
||||
#include "tombstone.hh"
|
||||
#include "exceptions/exceptions.hh"
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
#include "db/commitlog/replay_position.hh"
|
||||
#include <limits>
|
||||
#include <cstddef>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "db/schema_features.hh"
|
||||
#include "gms/feature.hh"
|
||||
#include "timestamp.hh"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <optional>
|
||||
|
||||
#include "frozen_mutation.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
class commitlog_entry {
|
||||
std::optional<column_mapping> _mapping;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <seastar/core/distributed.hh>
|
||||
#include <seastar/core/weak_ptr.hh>
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "flat_mutation_reader.hh"
|
||||
#include "mutation_reader.hh"
|
||||
#include "frozen_mutation.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "system_keyspace.hh"
|
||||
|
||||
namespace sstables {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "mutation.hh"
|
||||
#include "cql3/functions/user_function.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "schema_features.hh"
|
||||
#include "hashing.hh"
|
||||
#include "schema_mutations.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "bytes.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "utils/UUID.hh"
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "utils/UUID.hh"
|
||||
#include "gms/inet_address.hh"
|
||||
#include "query-result-set.hh"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "mutation_fragment.hh"
|
||||
#include "mutation_reader.hh"
|
||||
#include "query-request.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "tracing/tracing.hh"
|
||||
|
||||
#include <boost/range/iterator_range.hpp>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <seastar/core/future.hh>
|
||||
|
||||
#include "db/timeout_clock.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "query-request.hh"
|
||||
#include "utils/estimated_histogram.hh"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "gc_clock.hh"
|
||||
#include "query-request.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
#include "flat_mutation_reader.hh"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
#include "sstables/shared_sstable.hh"
|
||||
#include "database.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "query-result.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "frozen_mutation.hh"
|
||||
|
||||
namespace db {
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "database_fwd.hh"
|
||||
#include "database.hh"
|
||||
#include "db/system_keyspace.hh"
|
||||
#include "db/timeout_clock.hh"
|
||||
#include "flat_mutation_reader.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
#include "mutation_reader.hh"
|
||||
#include "query-request.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "secondary_index_manager.hh"
|
||||
#include "tracing/tracing.hh"
|
||||
#include "view_info.hh"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <iosfwd>
|
||||
#include "database_fwd.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "encoding_stats.hh"
|
||||
#include "mutation_reader.hh"
|
||||
#include "db/commitlog/replay_position.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "database_fwd.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation_query.hh"
|
||||
#include "cache_temperature.hh"
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "mutation_partition.hh"
|
||||
#include "keys.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "hashing.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <seastar/core/bitset-iter.hh>
|
||||
#include <seastar/util/optimized_optional.hh>
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "tombstone.hh"
|
||||
#include "keys.hh"
|
||||
#include "position_in_partition.hh"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "flat_mutation_reader.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "utils/phased_barrier.hh"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "query-request.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
//
|
||||
// Fluent builder for query::partition_slice.
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
#include "query-request.hh"
|
||||
#include "query-result.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation.hh"
|
||||
|
||||
#include <optional>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "query-request.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
#include "partition_version.hh"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "db/consistency_level_type.hh"
|
||||
#include "seastar/core/sstring.hh"
|
||||
#include "seastar/net/socket_defs.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "service/client_state.hh"
|
||||
#include "auth/service.hh"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include "mutation.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "canonical_mutation.hh"
|
||||
|
||||
// Commutative representation of table schema
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
#include <seastar/core/timer.hh>
|
||||
#include <seastar/core/shared_future.hh>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "frozen_schema.hh"
|
||||
|
||||
namespace db {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <vector>
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "query-result.hh"
|
||||
#include "query-request.hh"
|
||||
#include "service/query_state.hh"
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <seastar/core/sstring.hh>
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "compound_compat.hh"
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <boost/range/algorithm/stable_partition.hpp>
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "sstables/types.hh"
|
||||
#include "utils/UUID.hh"
|
||||
#include "db/marshal/type_parser.hh"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "bytes.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include <seastar/core/future.hh>
|
||||
#include "database_fwd.hh"
|
||||
#include "keys.hh"
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "timestamp.hh"
|
||||
#include "gc_clock.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "row.hh"
|
||||
#include "clustering_ranges_walker.hh"
|
||||
#include "utils/data_input.hh"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <seastar/core/enum.hh>
|
||||
#include "compress.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation.hh"
|
||||
#include "utils/i_filter.hh"
|
||||
#include <seastar/core/stream.hh>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "sstables.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
#include "mutation_fragment.hh"
|
||||
|
||||
namespace sstables {
|
||||
|
||||
@@ -41,9 +41,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "database_fwd.hh"
|
||||
#include "schema.hh"
|
||||
#include <seastar/core/sstring.hh>
|
||||
#include "database_fwd.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
using namespace seastar;
|
||||
|
||||
namespace validation {
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "query-request.hh"
|
||||
#include "schema.hh"
|
||||
#include "schema_fwd.hh"
|
||||
|
||||
namespace cql3::statements {
|
||||
class select_statement;
|
||||
|
||||
Reference in New Issue
Block a user