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:
Pavel Emelyanov
2020-03-03 13:20:50 +03:00
committed by Tomasz Grabiec
parent f105f43008
commit 4fa12f2fb8
53 changed files with 56 additions and 56 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -24,7 +24,7 @@
#include <functional>
#include "keys.hh"
#include "schema.hh"
#include "schema_fwd.hh"
#include "range.hh"
/**

View File

@@ -21,7 +21,7 @@
#pragma once
#include "schema.hh"
#include "schema_fwd.hh"
#include "position_in_partition.hh"
#include <boost/icl/interval_set.hpp>

View File

@@ -23,7 +23,7 @@
#pragma once
#include "schema.hh"
#include "schema_fwd.hh"
#include "query-request.hh"
namespace query {

View File

@@ -21,7 +21,6 @@
#pragma once
#include "schema.hh"
#include "collection_mutation.hh"
class atomic_cell;

View File

@@ -43,7 +43,7 @@
#include "cql3/selection/selectable.hh"
#include "schema.hh"
#include "schema_fwd.hh"
#include <algorithm>
#include <functional>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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"

View File

@@ -45,7 +45,6 @@
#include <vector>
#include "enum_set.hh"
#include "service/pager/paging_state.hh"
#include "schema.hh"
#include "query-result-reader.hh"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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;

View File

@@ -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"

View File

@@ -22,7 +22,7 @@
#pragma once
#include <cstdint>
#include "schema.hh"
#include "schema_fwd.hh"
#include "system_keyspace.hh"
namespace sstables {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -22,7 +22,7 @@
#pragma once
#include "query-result.hh"
#include "schema.hh"
#include "schema_fwd.hh"
#include "frozen_mutation.hh"
namespace db {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -25,7 +25,7 @@
#include <vector>
#include "query-request.hh"
#include "schema.hh"
#include "schema_fwd.hh"
//
// Fluent builder for query::partition_slice.

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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>

View File

@@ -22,7 +22,7 @@
#pragma once
#include "sstables.hh"
#include "schema.hh"
#include "schema_fwd.hh"
#include "mutation_fragment.hh"
namespace sstables {

View File

@@ -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 {

View File

@@ -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;